[kaffe] CVS kaffe (robilad): Require -no-cpp-precomp to fix problems with broken gcc cpp implementaitons usin
Kaffe CVS
cvs-commits at kaffe.org
Sun Feb 20 04:42:08 PST 2005
PatchSet 5581
Date: 2005/02/20 12:37:37
Author: robilad
Branch: HEAD
Tag: (none)
Log:
Require -no-cpp-precomp to fix problems with broken gcc cpp implementaitons using precompiled headers
2005-02-20 Dalibor Topic <robilad at kaffe.org>
* configure.ac: Require -no-cpp-precomp if available
to prevent Apple's gcc on old Darwin version to trip
over itself.
Reported by: Michael Franz <mvfranz at gmail.com>
Members:
ChangeLog:1.3625->1.3626
configure:1.428->1.429
configure.ac:1.118->1.119
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3625 kaffe/ChangeLog:1.3626
--- kaffe/ChangeLog:1.3625 Sun Feb 20 12:03:08 2005
+++ kaffe/ChangeLog Sun Feb 20 12:37:37 2005
@@ -1,5 +1,13 @@
2005-02-20 Dalibor Topic <robilad at kaffe.org>
+ * configure.ac: Require -no-cpp-precomp if available
+ to prevent Apple's gcc on old Darwin version to trip
+ over itself.
+
+ Reported by: Michael Franz <mvfranz at gmail.com>
+
+2005-02-20 Dalibor Topic <robilad at kaffe.org>
+
* developers/resync-classpath.sh: Added new
script to simplyfy resyncing with GNU Classpath.
Index: kaffe/configure
diff -u kaffe/configure:1.428 kaffe/configure:1.429
--- kaffe/configure:1.428 Mon Feb 14 06:51:36 2005
+++ kaffe/configure Sun Feb 20 12:37:39 2005
@@ -7864,6 +7864,104 @@
esac
+## required for old darwin versions because Apples'
+## gcc falls appart all over assembler statements
+## and produces a ton of false warnings otherwise.
+echo "$as_me:$LINENO: checking CFLAGS for gcc -no-cpp-precomp" >&5
+echo $ECHO_N "checking CFLAGS for gcc -no-cpp-precomp... $ECHO_C" >&6
+if test "${ac_cv_cflags_gcc_option__no_cpp_precomp+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+ ac_cv_cflags_gcc_option__no_cpp_precomp="no, unknown"
+
+
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ ac_save_CFLAGS="$CFLAGS"
+for ac_arg in "-pedantic % -no-cpp-precomp" #
+do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
+ cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h. */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h. */
+
+int
+main ()
+{
+return 0;
+ ;
+ return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+ (eval $ac_compile) 2>conftest.er1
+ ac_status=$?
+ grep -v '^ *+' conftest.er1 >conftest.err
+ rm -f conftest.er1
+ cat conftest.err >&5
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); } &&
+ { ac_try='test -z "$ac_c_werror_flag"
+ || test ! -s conftest.err'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; } &&
+ { ac_try='test -s conftest.$ac_objext'
+ { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+ (eval $ac_try) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+ ac_cv_cflags_gcc_option__no_cpp_precomp=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
+else
+ echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+ CFLAGS="$ac_save_CFLAGS"
+ ac_ext=c
+ac_cpp='$CPP $CPPFLAGS'
+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+fi
+echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__no_cpp_precomp" >&5
+echo "${ECHO_T}$ac_cv_cflags_gcc_option__no_cpp_precomp" >&6
+case ".$ac_cv_cflags_gcc_option__no_cpp_precomp" in
+ .ok|.ok,*) ;;
+ .|.no|.no,*) ;;
+ *)
+ if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__no_cpp_precomp " 2>&1 >/dev/null
+ then { (echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__no_cpp_precomp") >&5
+ (: CFLAGS does contain $ac_cv_cflags_gcc_option__no_cpp_precomp) 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+ else { (echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__no_cpp_precomp\"") >&5
+ (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__no_cpp_precomp") 2>&5
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }
+ CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__no_cpp_precomp"
+ fi
+ ;;
+esac
+
+
+
echo "$as_me:$LINENO: checking __attribute__((,,))" >&5
@@ -9953,7 +10051,7 @@
;;
*-*-irix6*)
# Find out which ABI we are using.
- echo '#line 9956 "configure"' > conftest.$ac_ext
+ echo '#line 10054 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
@@ -11310,7 +11408,7 @@
# Provide some information about the compiler.
-echo "$as_me:11313:" \
+echo "$as_me:11411:" \
"checking for Fortran 77 compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
@@ -12383,11 +12481,11 @@
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:12386: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:12484: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:12390: \$? = $ac_status" >&5
+ echo "$as_me:12488: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
@@ -12638,11 +12736,11 @@
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:12641: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:12739: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:12645: \$? = $ac_status" >&5
+ echo "$as_me:12743: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
@@ -12698,11 +12796,11 @@
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:12701: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:12799: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:12705: \$? = $ac_status" >&5
+ echo "$as_me:12803: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -14902,7 +15000,7 @@
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 14905 "configure"
+#line 15003 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -15000,7 +15098,7 @@
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 15003 "configure"
+#line 15101 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -17224,11 +17322,11 @@
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:17227: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:17325: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:17231: \$? = $ac_status" >&5
+ echo "$as_me:17329: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
@@ -17284,11 +17382,11 @@
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:17287: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:17385: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:17291: \$? = $ac_status" >&5
+ echo "$as_me:17389: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -18651,7 +18749,7 @@
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 18654 "configure"
+#line 18752 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -18749,7 +18847,7 @@
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 18752 "configure"
+#line 18850 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -19604,11 +19702,11 @@
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:19607: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:19705: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:19611: \$? = $ac_status" >&5
+ echo "$as_me:19709: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
@@ -19664,11 +19762,11 @@
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:19667: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:19765: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:19671: \$? = $ac_status" >&5
+ echo "$as_me:19769: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -21728,11 +21826,11 @@
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:21731: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:21829: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:21735: \$? = $ac_status" >&5
+ echo "$as_me:21833: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
@@ -21983,11 +22081,11 @@
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:21986: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:22084: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
- echo "$as_me:21990: \$? = $ac_status" >&5
+ echo "$as_me:22088: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
@@ -22043,11 +22141,11 @@
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
- (eval echo "\"\$as_me:22046: $lt_compile\"" >&5)
+ (eval echo "\"\$as_me:22144: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
- echo "$as_me:22050: \$? = $ac_status" >&5
+ echo "$as_me:22148: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@@ -24247,7 +24345,7 @@
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 24250 "configure"
+#line 24348 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -24345,7 +24443,7 @@
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 24348 "configure"
+#line 24446 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
Index: kaffe/configure.ac
diff -u kaffe/configure.ac:1.118 kaffe/configure.ac:1.119
--- kaffe/configure.ac:1.118 Mon Feb 14 06:51:34 2005
+++ kaffe/configure.ac Sun Feb 20 12:37:45 2005
@@ -176,6 +176,12 @@
AX_CFLAGS_GCC_OPTION([-Winline])
AX_CFLAGS_GCC_OPTION([-Wlong-long])
AX_CFLAGS_GCC_OPTION([-Wdisabled-optimization])
+
+## required for old darwin versions because Apples'
+## gcc falls appart all over assembler statements
+## and produces a ton of false warnings otherwise.
+AX_CFLAGS_GCC_OPTION([-no-cpp-precomp])
+
GCC_ATTRIBUTE_ALWAYS_INLINE
GCC_ATTRIBUTE_CONST
GCC_ATTRIBUTE_FORMAT
More information about the kaffe
mailing list