summaryrefslogtreecommitdiffstats
path: root/libjava/configure.in
diff options
context:
space:
mode:
authorgreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>2000-01-22 21:15:58 +0000
committergreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>2000-01-22 21:15:58 +0000
commitfe32b79d7c46e7606192e5c990715d9aa956c5c3 (patch)
treee0328abef61471b26aa18eeb003790121af2a0bc /libjava/configure.in
parentcfe5bc2d32ae547c0eac0699335130746b1b507a (diff)
downloadppe42-gcc-fe32b79d7c46e7606192e5c990715d9aa956c5c3.tar.gz
ppe42-gcc-fe32b79d7c46e7606192e5c990715d9aa956c5c3.zip
* include/config.h.in: Rebuilt.
* acconfig.h: Add undef for __NO_MATH_INLINES. * configure: Rebuilt. * configure.in: Add test for `g++ -O2 -ffloat-store' bug. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31566 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/configure.in')
-rw-r--r--libjava/configure.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/libjava/configure.in b/libjava/configure.in
index ed6e1a40af4..e8f17e87b81 100644
--- a/libjava/configure.in
+++ b/libjava/configure.in
@@ -624,6 +624,16 @@ AC_MSG_RESULT($use_fuse)
AC_SUBST(AM_RUNTESTFLAGS)
+dnl Work around a g++ bug. Reported to gcc-bugs@gcc.gnu.org on Jan 22, 2000.
+AC_MSG_CHECKING([for g++ -ffloat-store bug])
+save_CFLAGS="$CFLAGS"
+CFLAGS="-x c++ -O2 -ffloat-store"
+AC_TRY_COMPILE([#include <math.h>], ,
+ [AC_MSG_RESULT(no)],
+ [AC_DEFINE(__NO_MATH_INLINES)
+ AC_MSG_RESULT(yes)])
+CFLAGS="$save_CFLAGS"
+
dnl We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
dnl On that system, sys/ioctl.h will not include sys/filio.h unless
dnl BSD_COMP is defined; just including sys/filio.h is simpler.
OpenPOWER on IntegriCloud