PatchSet 4589 Date: 2004/03/29 19:45:24 Author: dalibor Branch: HEAD Tag: (none) Log: Enabled checkig of __atribute__ in configure
Members: ChangeLog:1.2167->1.2168 Makefile.in:1.148->1.149 aclocal.m4:1.95->1.96 configure:1.299->1.300 configure.ac:1.2->1.3 config/Makefile.in:1.122->1.123 config/config.h.in:1.93->1.94 include/Makefile.in:1.148->1.149 kaffe/Makefile.in:1.105->1.106 kaffe/jvmpi/Makefile.in:1.27->1.28 kaffe/kaffe/Makefile.in:1.120->1.121 kaffe/kaffeh/Makefile.in:1.102->1.103 kaffe/kaffevm/Makefile.in:1.142->1.143 kaffe/kaffevm/gcj/Makefile.in:1.85->1.86 kaffe/kaffevm/intrp/Makefile.in:1.91->1.92 kaffe/kaffevm/jit/Makefile.in:1.97->1.98 kaffe/kaffevm/jit3/Makefile.in:1.67->1.68 kaffe/kaffevm/systems/Makefile.in:1.93->1.94 kaffe/kaffevm/systems/beos-native/Makefile.in:1.84->1.85 kaffe/kaffevm/systems/oskit-pthreads/Makefile.in:1.90->1.91 kaffe/kaffevm/systems/unix-jthreads/Makefile.in:1.93->1.94 kaffe/kaffevm/systems/unix-pthreads/Makefile.in:1.63->1.64 kaffe/man/Makefile.in:1.91->1.92 kaffe/scripts/Makefile.in:1.128->1.129 kaffe/scripts/bat/Makefile.in:1.84->1.85 kaffe/scripts/compat/Makefile.in:1.109->1.110 kaffe/xprof/Makefile.in:1.59->1.60 libraries/Makefile.in:1.88->1.89 libraries/clib/Makefile.in:1.96->1.97 libraries/clib/awt/Makefile.in:1.101->1.102 libraries/clib/awt/X/Makefile.in:1.91->1.92 libraries/clib/awt/qt/Makefile.in:1.46->1.47 libraries/clib/io/Makefile.in:1.94->1.95 libraries/clib/management/Makefile.in:1.103->1.104 libraries/clib/math/Makefile.in:1.99->1.100 libraries/clib/native/Makefile.in:1.127->1.128 libraries/clib/net/Makefile.in:1.107->1.108 libraries/clib/nio/Makefile.in:1.21->1.22 libraries/clib/security/Makefile.in:1.67->1.68 libraries/clib/zip/Makefile.in:1.101->1.102 libraries/extensions/Makefile.in:1.79->1.80 libraries/extensions/comm/Makefile.in:1.74->1.75 libraries/extensions/comm/javalib/Makefile.in:1.74->1.75 libraries/extensions/microsoft/Makefile.in:1.66->1.67 libraries/extensions/microsoft/clib/Makefile.in:1.69->1.70 libraries/extensions/microsoft/javalib/Makefile.in:1.67->1.68 libraries/extensions/pjava/Makefile.in:1.74->1.75 libraries/extensions/pjava/javalib/Makefile.in:1.74->1.75 libraries/extensions/servlet/Makefile.in:1.74->1.75 libraries/extensions/servlet/javalib/Makefile.in:1.74->1.75 libraries/extensions/sound/Makefile.in:1.42->1.43 libraries/extensions/sound/alsa/Makefile.in:1.44->1.45 libraries/extensions/sound/common/Makefile.in:1.44->1.45 libraries/extensions/sound/esd/Makefile.in:1.44->1.45 libraries/javalib/Makefile.am:1.177->1.178 libraries/javalib/Makefile.in:1.238->1.239 m4/gcc_attribute.m4:INITIAL->1.1 replace/Makefile.in:1.39->1.40 test/Makefile.in:1.94->1.95 test/internal/Makefile.in:1.52->1.53 test/regression/Makefile.in:1.163->1.164 test/regression/compile_time/Makefile.in:1.24->1.25 test/regression/compiler/Makefile.in:1.6->1.7 test/regression/run_time/Makefile.in:1.23->1.24 Index: kaffe/ChangeLog diff -u kaffe/ChangeLog:1.2167 kaffe/ChangeLog:1.2168 --- kaffe/ChangeLog:1.2167 Sat Mar 27 19:02:16 2004 +++ kaffe/ChangeLog Mon Mar 29 19:45:24 2004 @@ -1,3 +1,10 @@ +2004-03-29 Adam Heath <[EMAIL PROTECTED]> + + * configure.ac: + Enabled checking of __attribute__ inc onfigure. + + * m4/gcc_attribute.m4: New file. + 2004-03-27 Patrick Cernko <[EMAIL PROTECTED]> * kaffe/kaffevm/kaffe.def: Index: kaffe/Makefile.in diff -u kaffe/Makefile.in:1.148 kaffe/Makefile.in:1.149 --- kaffe/Makefile.in:1.148 Wed Mar 24 19:47:48 2004 +++ kaffe/Makefile.in Mon Mar 29 19:45:26 2004 @@ -58,13 +58,14 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/alsa.m4 \ $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \ $(top_srcdir)/m4/ax_cflags_warn_all.m4 $(top_srcdir)/m4/esd.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gnu-crypto.m4 \ - $(top_srcdir)/m4/gwqt.m4 $(top_srcdir)/m4/herrno.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/in6addr.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ - $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/sockaddrin6.m4 \ + $(top_srcdir)/m4/gcc_attribute.m4 $(top_srcdir)/m4/gettext.m4 \ + $(top_srcdir)/m4/gnu-crypto.m4 $(top_srcdir)/m4/gwqt.m4 \ + $(top_srcdir)/m4/herrno.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/in6addr.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ + $(top_srcdir)/m4/sockaddrin6.m4 \ $(top_srcdir)/m4/sockinttypes.m4 $(top_srcdir)/m4/valist.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ Index: kaffe/aclocal.m4 diff -u kaffe/aclocal.m4:1.95 kaffe/aclocal.m4:1.96 --- kaffe/aclocal.m4:1.95 Wed Mar 24 17:27:36 2004 +++ kaffe/aclocal.m4 Mon Mar 29 19:45:26 2004 @@ -984,6 +984,7 @@ m4_include([m4/ax_cflags_gcc_option.m4]) m4_include([m4/ax_cflags_warn_all.m4]) m4_include([m4/esd.m4]) +m4_include([m4/gcc_attribute.m4]) m4_include([m4/gettext.m4]) m4_include([m4/gnu-crypto.m4]) m4_include([m4/gwqt.m4]) Index: kaffe/configure diff -u kaffe/configure:1.299 kaffe/configure:1.300 --- kaffe/configure:1.299 Wed Mar 24 18:41:44 2004 +++ kaffe/configure Mon Mar 29 19:45:26 2004 @@ -5758,6 +5758,401 @@ esac + + + echo "$as_me:$LINENO: checking __attribute__((,,))" >&5 +echo $ECHO_N "checking __attribute__((,,))... $ECHO_C" >&6 + if test "${cv_c_gcc_attribute_supported+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ +extern int testfunction(int x) __attribute__((,,)) + ; + 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 + cv_c_gcc_attribute_supported=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +cv_c_gcc_attribute_supported=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + +fi + + if test "x$cv_c_gcc_attribute_supported" = xyes; then + true + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +cat >>confdefs.h <<\_ACEOF +#define HAVE_GNUC25_ATTRIB +_ACEOF + + + else + true + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + + fi + + + + + + + + + + + echo "$as_me:$LINENO: checking __attribute__((const))" >&5 +echo $ECHO_N "checking __attribute__((const))... $ECHO_C" >&6 + if test "${cv_c_gcc_attribute_const+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ +extern int testfunction(int x) __attribute__((const)) + ; + 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 + cv_c_gcc_attribute_const=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +cv_c_gcc_attribute_const=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + +fi + + if test "x$cv_c_gcc_attribute_const" = xyes; then + true + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +cat >>confdefs.h <<\_ACEOF +#define HAVE_GNUC25_CONST +_ACEOF + + + else + true + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + + fi + + + + + + + + + + echo "$as_me:$LINENO: checking __attribute__((noreturn))" >&5 +echo $ECHO_N "checking __attribute__((noreturn))... $ECHO_C" >&6 + if test "${cv_c_gcc_attribute_noreturn+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ +extern int testfunction(int x) __attribute__((noreturn)) + ; + 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 + cv_c_gcc_attribute_noreturn=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +cv_c_gcc_attribute_noreturn=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + +fi + + if test "x$cv_c_gcc_attribute_noreturn" = xyes; then + true + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +cat >>confdefs.h <<\_ACEOF +#define HAVE_GNUC25_NORETURN +_ACEOF + + + else + true + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + + fi + + + + + + + + + + echo "$as_me:$LINENO: checking __attribute__((unused))" >&5 +echo $ECHO_N "checking __attribute__((unused))... $ECHO_C" >&6 + if test "${cv_c_gcc_attribute_unused+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ +extern int testfunction(int x) __attribute__((unused)) + ; + 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 + cv_c_gcc_attribute_unused=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +cv_c_gcc_attribute_unused=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + +fi + + if test "x$cv_c_gcc_attribute_unused" = xyes; then + true + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +cat >>confdefs.h <<\_ACEOF +#define HAVE_GNUC25_UNUSED +_ACEOF + + + else + true + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + + fi + + + + + + + + + + echo "$as_me:$LINENO: checking __attribute__((format...))" >&5 +echo $ECHO_N "checking __attribute__((format...))... $ECHO_C" >&6 + if test "${cv_c_gcc_attribute_format+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ +extern int testfunction(char *y, ...) __attribute__((format(printf,1,2))) + ; + 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 + cv_c_gcc_attribute_format=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +cv_c_gcc_attribute_format=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + +fi + + if test "x$cv_c_gcc_attribute_format" = xyes; then + true + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + +cat >>confdefs.h <<\_ACEOF +#define HAVE_GNUC25_PRINTFFORMAT +_ACEOF + + + else + true + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + + fi + + + + + + if test "$GCC" != "yes"; then { { echo "$as_me:$LINENO: error: Kaffe can only build with GCC" >&5 echo "$as_me: error: Kaffe can only build with GCC" >&2;} @@ -6927,7 +7322,7 @@ ;; *-*-irix6*) # Find out which ABI we are using. - echo '#line 6930 "configure"' > conftest.$ac_ext + echo '#line 7325 "configure"' > conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -8277,7 +8672,7 @@ # Provide some information about the compiler. -echo "$as_me:8280:" \ +echo "$as_me:8675:" \ "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 @@ -9315,11 +9710,11 @@ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:9318: $lt_compile\"" >&5) + (eval echo "\"\$as_me:9713: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:9322: \$? = $ac_status" >&5 + echo "$as_me:9717: \$? = $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 @@ -9548,11 +9943,11 @@ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:9551: $lt_compile\"" >&5) + (eval echo "\"\$as_me:9946: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:9555: \$? = $ac_status" >&5 + echo "$as_me:9950: \$? = $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 @@ -9608,11 +10003,11 @@ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:9611: $lt_compile\"" >&5) + (eval echo "\"\$as_me:10006: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:9615: \$? = $ac_status" >&5 + echo "$as_me:10010: \$? = $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 @@ -11792,7 +12187,7 @@ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<EOF -#line 11795 "configure" +#line 12190 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11890,7 +12285,7 @@ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<EOF -#line 11893 "configure" +#line 12288 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -14073,11 +14468,11 @@ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14076: $lt_compile\"" >&5) + (eval echo "\"\$as_me:14471: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:14080: \$? = $ac_status" >&5 + echo "$as_me:14475: \$? = $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 @@ -14133,11 +14528,11 @@ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14136: $lt_compile\"" >&5) + (eval echo "\"\$as_me:14531: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:14140: \$? = $ac_status" >&5 + echo "$as_me:14535: \$? = $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 @@ -15494,7 +15889,7 @@ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<EOF -#line 15497 "configure" +#line 15892 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -15592,7 +15987,7 @@ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<EOF -#line 15595 "configure" +#line 15990 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -16419,11 +16814,11 @@ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:16422: $lt_compile\"" >&5) + (eval echo "\"\$as_me:16817: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:16426: \$? = $ac_status" >&5 + echo "$as_me:16821: \$? = $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 @@ -16479,11 +16874,11 @@ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:16482: $lt_compile\"" >&5) + (eval echo "\"\$as_me:16877: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:16486: \$? = $ac_status" >&5 + echo "$as_me:16881: \$? = $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 @@ -18517,11 +18912,11 @@ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:18520: $lt_compile\"" >&5) + (eval echo "\"\$as_me:18915: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:18524: \$? = $ac_status" >&5 + echo "$as_me:18919: \$? = $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 @@ -18750,11 +19145,11 @@ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:18753: $lt_compile\"" >&5) + (eval echo "\"\$as_me:19148: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:18757: \$? = $ac_status" >&5 + echo "$as_me:19152: \$? = $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 @@ -18810,11 +19205,11 @@ -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:18813: $lt_compile\"" >&5) + (eval echo "\"\$as_me:19208: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:18817: \$? = $ac_status" >&5 + echo "$as_me:19212: \$? = $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 @@ -20994,7 +21389,7 @@ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<EOF -#line 20997 "configure" +#line 21392 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -21092,7 +21487,7 @@ lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<EOF -#line 21095 "configure" +#line 21490 "configure" #include "confdefs.h" #if HAVE_DLFCN_H Index: kaffe/configure.ac diff -u kaffe/configure.ac:1.2 kaffe/configure.ac:1.3 --- kaffe/configure.ac:1.2 Wed Mar 24 18:41:47 2004 +++ kaffe/configure.ac Mon Mar 29 19:45:35 2004 @@ -116,7 +116,11 @@ AX_CFLAGS_GCC_OPTION([-Winline]) AX_CFLAGS_GCC_OPTION([-Wlong-long]) AX_CFLAGS_GCC_OPTION([-Wdisabled-optimization]) - +GCC_ATTRIBUTE_CONST +GCC_ATTRIBUTE_NORETURN +GCC_ATTRIBUTE_UNUSED +GCC_ATTRIBUTE_FORMAT + if test "$GCC" != "yes"; then AC_MSG_ERROR([Kaffe can only build with GCC]) fi Index: kaffe/config/Makefile.in diff -u kaffe/config/Makefile.in:1.122 kaffe/config/Makefile.in:1.123 --- kaffe/config/Makefile.in:1.122 Wed Mar 24 18:07:16 2004 +++ kaffe/config/Makefile.in Mon Mar 29 19:45:36 2004 @@ -53,13 +53,14 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/alsa.m4 \ $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \ $(top_srcdir)/m4/ax_cflags_warn_all.m4 $(top_srcdir)/m4/esd.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gnu-crypto.m4 \ - $(top_srcdir)/m4/gwqt.m4 $(top_srcdir)/m4/herrno.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/in6addr.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ - $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/sockaddrin6.m4 \ + $(top_srcdir)/m4/gcc_attribute.m4 $(top_srcdir)/m4/gettext.m4 \ + $(top_srcdir)/m4/gnu-crypto.m4 $(top_srcdir)/m4/gwqt.m4 \ + $(top_srcdir)/m4/herrno.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/in6addr.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ + $(top_srcdir)/m4/sockaddrin6.m4 \ $(top_srcdir)/m4/sockinttypes.m4 $(top_srcdir)/m4/valist.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ Index: kaffe/config/config.h.in diff -u kaffe/config/config.h.in:1.93 kaffe/config/config.h.in:1.94 --- kaffe/config/config.h.in:1.93 Wed Mar 24 18:07:16 2004 +++ kaffe/config/config.h.in Mon Mar 29 19:45:36 2004 @@ -153,6 +153,21 @@ /* Define to 1 if you have the <gmp.h> header file. */ #undef HAVE_GMP_H +/* Define if function attributes a la GCC 2.5 and higher are available. */ +#undef HAVE_GNUC25_ATTRIB + +/* Define if constant functions a la GCC 2.5 and higher are available. */ +#undef HAVE_GNUC25_CONST + +/* Define if nonreturning functions a la GCC 2.5 and higher are available. */ +#undef HAVE_GNUC25_NORETURN + +/* Define if printf-format argument lists a la GCC are available. */ +#undef HAVE_GNUC25_PRINTFFORMAT + +/* Define if unused variables la GCC 2.5 and higher are available. */ +#undef HAVE_GNUC25_UNUSED + /* Define to 1 if you have the `hstrerror' function. */ #undef HAVE_HSTRERROR @@ -746,3 +761,64 @@ /* Define to `int' if <sys/types.h> does not define. */ #undef ssize_t + +/* GNU C attributes. */ +#ifndef FUNCATTR +#ifdef HAVE_GNUC25_ATTRIB +#define FUNCATTR(x) __attribute__(x) +#else +#define FUNCATTR(x) +#endif +#endif + +/* GNU C constant functions, or null. */ +#ifndef ATTRCONST +#ifdef HAVE_GNUC25_CONST +#define ATTRCONST const +#else +#define ATTRCONST +#endif +#endif +#ifndef CONSTANT +#define CONSTANT FUNCATTR((ATTRCONST)) +#endif + +/* GNU C nonreturning functions, or null. */ +#ifndef ATTRNORETURN +#ifdef HAVE_GNUC25_NORETURN +#define ATTRNORETURN noreturn +#else /* ! HAVE_GNUC25_NORETURN */ +#define ATTRNORETURN +#endif /* HAVE_GNUC25_NORETURN */ +#endif /* ATTRNORETURN */ +#ifndef NONRETURNING +#define NONRETURNING FUNCATTR((ATTRNORETURN)) +#endif /* NONRETURNING */ + +/* GNU C unused functions, or null. */ +#ifndef ATTRUNUSED +#ifdef HAVE_GNUC25_UNUSED +#define ATTRUNUSED +#else +#define ATTRUNUSED +#endif +#endif +#ifndef UNUSED +#define UNUSED FUNCATTR((ATTRUNUSED)) +#endif + +/* GNU C printf formats, or null. */ +#ifndef ATTRPRINTF +#ifdef HAVE_GNUC25_PRINTFFORMAT +#define ATTRPRINTF(si,tc) format(printf,si,tc) +#else +#define ATTRPRINTF(si,tc) +#endif +#endif +#ifndef PRINTFFORMAT +#define PRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc))) +#endif + +#ifndef NONRETURNPRINTFFORMAT +#define NONRETURNPRINTFFORMAT(si,tc) FUNCATTR((ATTRPRINTF(si,tc),ATTRNORETURN)) +#endif Index: kaffe/include/Makefile.in diff -u kaffe/include/Makefile.in:1.148 kaffe/include/Makefile.in:1.149 --- kaffe/include/Makefile.in:1.148 Thu Mar 25 20:58:29 2004 +++ kaffe/include/Makefile.in Mon Mar 29 19:45:38 2004 @@ -53,13 +53,14 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/alsa.m4 \ $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \ $(top_srcdir)/m4/ax_cflags_warn_all.m4 $(top_srcdir)/m4/esd.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gnu-crypto.m4 \ - $(top_srcdir)/m4/gwqt.m4 $(top_srcdir)/m4/herrno.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/in6addr.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ - $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/sockaddrin6.m4 \ + $(top_srcdir)/m4/gcc_attribute.m4 $(top_srcdir)/m4/gettext.m4 \ + $(top_srcdir)/m4/gnu-crypto.m4 $(top_srcdir)/m4/gwqt.m4 \ + $(top_srcdir)/m4/herrno.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/in6addr.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ + $(top_srcdir)/m4/sockaddrin6.m4 \ $(top_srcdir)/m4/sockinttypes.m4 $(top_srcdir)/m4/valist.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ Index: kaffe/kaffe/Makefile.in diff -u kaffe/kaffe/Makefile.in:1.105 kaffe/kaffe/Makefile.in:1.106 --- kaffe/kaffe/Makefile.in:1.105 Wed Mar 24 18:07:16 2004 +++ kaffe/kaffe/Makefile.in Mon Mar 29 19:45:39 2004 @@ -48,13 +48,14 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/alsa.m4 \ $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \ $(top_srcdir)/m4/ax_cflags_warn_all.m4 $(top_srcdir)/m4/esd.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gnu-crypto.m4 \ - $(top_srcdir)/m4/gwqt.m4 $(top_srcdir)/m4/herrno.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/in6addr.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ - $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/sockaddrin6.m4 \ + $(top_srcdir)/m4/gcc_attribute.m4 $(top_srcdir)/m4/gettext.m4 \ + $(top_srcdir)/m4/gnu-crypto.m4 $(top_srcdir)/m4/gwqt.m4 \ + $(top_srcdir)/m4/herrno.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/in6addr.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ + $(top_srcdir)/m4/sockaddrin6.m4 \ $(top_srcdir)/m4/sockinttypes.m4 $(top_srcdir)/m4/valist.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ Index: kaffe/kaffe/jvmpi/Makefile.in diff -u kaffe/kaffe/jvmpi/Makefile.in:1.27 kaffe/kaffe/jvmpi/Makefile.in:1.28 --- kaffe/kaffe/jvmpi/Makefile.in:1.27 Wed Mar 24 18:07:18 2004 +++ kaffe/kaffe/jvmpi/Makefile.in Mon Mar 29 19:45:39 2004 @@ -43,13 +43,14 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/alsa.m4 \ $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \ $(top_srcdir)/m4/ax_cflags_warn_all.m4 $(top_srcdir)/m4/esd.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gnu-crypto.m4 \ - $(top_srcdir)/m4/gwqt.m4 $(top_srcdir)/m4/herrno.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/in6addr.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ - $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/sockaddrin6.m4 \ + $(top_srcdir)/m4/gcc_attribute.m4 $(top_srcdir)/m4/gettext.m4 \ + $(top_srcdir)/m4/gnu-crypto.m4 $(top_srcdir)/m4/gwqt.m4 \ + $(top_srcdir)/m4/herrno.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/in6addr.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ + $(top_srcdir)/m4/sockaddrin6.m4 \ $(top_srcdir)/m4/sockinttypes.m4 $(top_srcdir)/m4/valist.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ Index: kaffe/kaffe/kaffe/Makefile.in diff -u kaffe/kaffe/kaffe/Makefile.in:1.120 kaffe/kaffe/kaffe/Makefile.in:1.121 --- kaffe/kaffe/kaffe/Makefile.in:1.120 Wed Mar 24 18:07:18 2004 +++ kaffe/kaffe/kaffe/Makefile.in Mon Mar 29 19:45:40 2004 @@ -52,13 +52,14 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/alsa.m4 \ $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \ $(top_srcdir)/m4/ax_cflags_warn_all.m4 $(top_srcdir)/m4/esd.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gnu-crypto.m4 \ - $(top_srcdir)/m4/gwqt.m4 $(top_srcdir)/m4/herrno.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/in6addr.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ - $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/sockaddrin6.m4 \ + $(top_srcdir)/m4/gcc_attribute.m4 $(top_srcdir)/m4/gettext.m4 \ + $(top_srcdir)/m4/gnu-crypto.m4 $(top_srcdir)/m4/gwqt.m4 \ + $(top_srcdir)/m4/herrno.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/in6addr.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/nls.m4 \ + $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ + $(top_srcdir)/m4/sockaddrin6.m4 \ $(top_srcdir)/m4/sockinttypes.m4 $(top_srcdir)/m4/valist.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ Index: kaffe/kaffe/kaffeh/Makefile.in diff -u kaffe/kaffe/kaffeh/Makefile.in:1.102 kaffe/kaffe/kaffeh/Makefile.in:1.103 --- kaffe/kaffe/kaffeh/Makefile.in:1.102 Wed Mar 24 18:07:19 2004 +++ kaffe/kaffe/kaffeh/Makefile.in Mon Mar 29 19:45:40 2004 @@ -54,13 +54,14 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/alsa.m4 \ $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \ $(top_srcdir)/m4/ax_cflags_warn_all.m4 $(top_srcdir)/m4/esd.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/gnu-crypto.m4 \ - $(top_srcdir)/m4/gwqt.m4 $(top_srcdir)/m4/herrno.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/in6addr.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ - $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/sockaddrin6.m4 \ + $(top_srcdir)/m4/gcc_attribute.m4 $(top_srcdir)/m4/gettext.m4 \ + $(top_srcdir)/m4/gnu-crypto.m4 $(top_srcdir)/m4/gwqt.m4 \ *** Patch too long, truncated *** _______________________________________________ kaffe mailing list [EMAIL PROTECTED] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe