Add no-FPU ColdFire math_private.h.
commitd4c7e1d0fdd1b1ff97606f2368b6cdeb7c915734
authorJoseph Myers <joseph@codesourcery.com>
Wed, 24 Jan 2018 23:33:03 +0000 (24 23:33 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 24 Jan 2018 23:33:03 +0000 (24 23:33 +0000)
treee23ddbcd54a48b592eec99acc0d77ebe75810347
parent0cfe5be58faa2a9a67b1de734f356562c2f26eb6
Add no-FPU ColdFire math_private.h.

As with some other soft-float configurations, no-FPU ColdFire needs
various fenv.h functions and glibc-internal macros overridden in
math_private.h to avoid references to undefined FE_* macros when
building glibc.  This patch adds a suitable math_private.h, based on
the MicroBlaze one (Nios II and Tile also have similar files).

There's a case for having such a file in sysdeps/ieee754/soft-fp so
this logic is applied more generally to configurations without
exceptions and rounding modes, even when the relevant macros are
defined in fenv.h - the only case where that might be inappropriate is
ARM soft-float (where the fenv.h functions might or might not work at
runtime, depending on whether the processor used at runtime supports
VFP).  There's also a case that soft-float configurations (on
processors with both hard-float and soft-float) should more
consistently avoid defining FE_* macros in bits/fenv.h when not
actually supported.  But both of those are separate potential
cleanups.

This allows the no-FPU ColdFire build to get further (another fix is
needed to allow the build to complete).

* sysdeps/m68k/coldfire/nofpu/math_private.h: New file.  Based on
MicroBlaze file.
ChangeLog
sysdeps/m68k/coldfire/nofpu/math_private.h [new file with mode: 0644]