From 641da3ca1184d9951d5cf91538524a345bf5f271 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 21 Jan 2003 04:11:26 +0000 Subject: [PATCH] gcc's optimiser is broken at -02 for ultrasparc --- configure | 21 ++++++++++++++++----- configure.in | 13 ++++++++++++- 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/configure b/configure index 55fb9d112e..3fdf637df0 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 1.335 . +# From configure.in Revision: 1.336 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.53. # @@ -2692,6 +2692,17 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu +# +# gcc's optimiser is broken at -02 for ultrasparc +# +if test "$ac_env_CFLAGS_set" != set -a "X$GCC" = "Xyes"; then + case "$host" in + sparc-*-solaris*) + CCFLAGS="-g -O1" + ;; + esac +fi + # # OSF 5.0: recv/send are only avaliable with -D_POSIX_PII_SOCKET or # -D_XOPEN_SOURCE_EXTENDED. @@ -7594,7 +7605,7 @@ test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes case $host in *-*-irix6*) # Find out which ABI we are using. - echo '#line 7597 "configure"' > conftest.$ac_ext + echo '#line 7608 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -8144,7 +8155,7 @@ chmod -w . save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" compiler_c_o=no -if { (eval echo configure:8147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then +if { (eval echo configure:8158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings if test -s out/conftest.err; then @@ -10011,7 +10022,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < conftest.$ac_ext <