mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-12 12:07:12 +08:00
3de1043772
[BZ #2749] * sysdeps/powerpc/nofpu/Makefile [subdirs-soft-fp] (sysdep_routines): Remove gcc-quad-routines. [subdirs-math] (CPPFLAGS): Add -I../soft-fp. [subdirs-math] (CFLAGS-e_powl.c): Add -fno-builtin-fabsl. [subdirs-math] (CFLAGS-s_ccoshl.c): Likewise. [subdirs-math] (CFLAGS-s_csinhl.c): Likewise. [subdirs-math] (CFLAGS-s_clogl.c): Likewise. [subdirs-math] (CFLAGS-s_clog10l.c): Likewise. [subdirs-math] (CFLAGS-s_csinl.c): Likewise. [subdirs-math] (CFLAGS-s_csqrtl.c): Likewise. * sysdeps/powerpc/nofpu/Versions (GLIBC_2.3.2): Remove __fixtfdi, __fixtfsi, and __trunctfsf2. (GLIBC_2.4): Remove __floatunditf, __floatunsitf, and __unordtf2. Add __nedf2, __nesf2, __gtdf2, __gtsf2, __ltdf2, __ltsf2. * sysdeps/powerpc/nofpu/libm-test-ulps: Update for soft-fp. * sysdeps/powerpc/soft-fp/sfp-machine.h: New file. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: New file. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S: New file. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S: New file. * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S: New file.
25 lines
864 B
Makefile
25 lines
864 B
Makefile
# Makefile fragment for PowerPC with no FPU.
|
|
|
|
ifeq ($(subdir),soft-fp)
|
|
sysdep_routines += $(gcc-single-routines) $(gcc-double-routines) \
|
|
sim-full
|
|
endif
|
|
|
|
ifeq ($(subdir),math)
|
|
libm-support += fenv_const fe_nomask
|
|
CPPFLAGS += -I../soft-fp/
|
|
# The follow CFLAGS are a work around for GCC Bugzilla Bug 29253
|
|
# "expand_abs wrong default code for floating point"
|
|
# As this is not a regression, a fix is not likely to go into
|
|
# gcc-4.1.1 and may be too late for gcc-4.2. So we need these flags
|
|
# until the fix in a gcc release and glibc drops support for earlier
|
|
# versions of gcc.
|
|
CFLAGS-e_powl.c += -fno-builtin-fabsl
|
|
CFLAGS-s_ccoshl.c += -fno-builtin-fabsl
|
|
CFLAGS-s_csinhl.c += -fno-builtin-fabsl
|
|
CFLAGS-s_clogl.c += -fno-builtin-fabsl
|
|
CFLAGS-s_clog10l.c += -fno-builtin-fabsl
|
|
CFLAGS-s_csinl.c += -fno-builtin-fabsl
|
|
CFLAGS-s_csqrtl.c += -fno-builtin-fabsl
|
|
endif
|