1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the linux/parisc floating point code
4#
5
6# See arch/parisc/math-emu/README
7ccflags-y := -Wno-parentheses -Wno-implicit-function-declaration \
8	-Wno-uninitialized -Wno-strict-prototypes -Wno-return-type \
9	-Wno-implicit-int -Wno-missing-prototypes -Wno-missing-declarations \
10	-Wno-old-style-definition -Wno-unused-but-set-variable
11
12obj-y	 := frnd.o driver.o decode_exc.o fpudispatch.o denormal.o \
13		dfmpy.o sfmpy.o sfsqrt.o dfsqrt.o dfadd.o fmpyfadd.o \
14		sfadd.o dfsub.o sfsub.o fcnvfxt.o fcnvff.o fcnvxf.o \
15		fcnvfx.o fcnvuf.o fcnvfu.o fcnvfut.o dfdiv.o sfdiv.o \
16		dfrem.o sfrem.o dfcmp.o sfcmp.o
17
18# Math emulation code beyond the FRND is required for 712/80i and
19# other very old or stripped-down PA-RISC CPUs -- not currently supported
20
21obj-$(CONFIG_MATH_EMULATION)	+= unimplemented-math-emulation.o
22CFLAGS_REMOVE_fpudispatch.o	= -Wimplicit-fallthrough
23