diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-01-17 02:08:51 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-01-17 02:08:51 +0000 |
commit | 59981e9b0df84aa91c52d21c54a7ed158a356aaa (patch) | |
tree | f49bb0bfd1bdaef1f26763b91ecf5760d28d4db4 /sysdeps/powerpc/fpu/bits | |
parent | cfa8054fbb6212e64d54a3d4926972a6a20e3498 (diff) | |
download | glibc-59981e9b0df84aa91c52d21c54a7ed158a356aaa.tar glibc-59981e9b0df84aa91c52d21c54a7ed158a356aaa.tar.gz glibc-59981e9b0df84aa91c52d21c54a7ed158a356aaa.tar.bz2 glibc-59981e9b0df84aa91c52d21c54a7ed158a356aaa.zip |
Adapt installed powerpc headers better for soft-float / no-FPRs.
Diffstat (limited to 'sysdeps/powerpc/fpu/bits')
-rw-r--r-- | sysdeps/powerpc/fpu/bits/fenvinline.h | 5 | ||||
-rw-r--r-- | sysdeps/powerpc/fpu/bits/mathinline.h | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/sysdeps/powerpc/fpu/bits/fenvinline.h b/sysdeps/powerpc/fpu/bits/fenvinline.h index 44b4d44f4c..0720795d54 100644 --- a/sysdeps/powerpc/fpu/bits/fenvinline.h +++ b/sysdeps/powerpc/fpu/bits/fenvinline.h @@ -16,7 +16,8 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ -#if defined __GNUC__ && !defined _SOFT_FLOAT && !defined __NO_MATH_INLINES +#if (defined __GNUC__ && !defined _SOFT_FLOAT && !defined __NO_FPRS__ \ + && !defined __NO_MATH_INLINES) /* Inline definition for fegetround. */ # define fegetround() \ @@ -56,4 +57,4 @@ : 0) \ : (feclearexcept) (__excepts)) -#endif /* __GNUC__ && !_SOFT_FLOAT */ +#endif /* __GNUC__ && !_SOFT_FLOAT && !__NO_FPRS__ */ diff --git a/sysdeps/powerpc/fpu/bits/mathinline.h b/sysdeps/powerpc/fpu/bits/mathinline.h index b0b1a96150..140fff08ef 100644 --- a/sysdeps/powerpc/fpu/bits/mathinline.h +++ b/sysdeps/powerpc/fpu/bits/mathinline.h @@ -26,7 +26,7 @@ # define __MATH_INLINE __extern_inline #endif /* __cplusplus */ -#if defined __GNUC__ && !defined _SOFT_FLOAT +#if defined __GNUC__ && !defined _SOFT_FLOAT && !defined __NO_FPRS__ #ifdef __USE_ISOC99 # if !__GNUC_PREREQ (2,97) @@ -127,4 +127,4 @@ __NTH (fdimf (float __x, float __y)) #endif /* __USE_ISOC99 */ #endif /* !__NO_MATH_INLINES && __OPTIMIZE__ */ -#endif /* __GNUC__ && !_SOFT_FLOAT */ +#endif /* __GNUC__ && !_SOFT_FLOAT && !__NO_FPRS__ */ |