Commit 5c271071 authored by Götz Lindenmaier's avatar Götz Lindenmaier
Browse files

Code review to compile with -ansi

[r432]
parent 87f73fef
......@@ -9,3 +9,6 @@
/* Define to disable assertion checking. */
#undef NDEBUG
/* Define to value "inline" for gcc inlineing. */
#undef USE_GCC_INLINE
......@@ -9,6 +9,9 @@
/* Define to disable assertion checking. */
#undef NDEBUG
/* Define to value "inline" for gcc inlineing. */
#undef USE_GCC_INLINE
/* Define if you have the <gmp.h> header file. */
#undef HAVE_GMP_H
......
......@@ -25,6 +25,8 @@ ac_default_prefix=/usr/local
# Any additions from configure.in:
ac_help="$ac_help
--enable-debug enable assertions and additional debugging routines"
ac_help="$ac_help
--enable-gcc_inline enable gcc inline C-extension"
ac_help="$ac_help
--enable-profile enable profiling"
ac_help="$ac_help
......@@ -589,6 +591,20 @@ fi
# Check whether --enable-use_gcc_inline or --disable-use_gcc_inline was given.
if test "${enable_use_gcc_inline+set}" = set; then
enableval="$enable_use_gcc_inline"
if test "$enableval" = yes; then
cat >> confdefs.h <<\EOF
#define USE_GCC_INLINE 1
EOF
fi
fi
# Check whether --enable-profile or --disable-profile was given.
if test "${enable_profile+set}" = set; then
enableval="$enable_profile"
......@@ -618,7 +634,7 @@ fi
# Extract the first word of "gcc", so it can be a program name with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:622: checking for $ac_word" >&5
echo "configure:638: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -648,7 +664,7 @@ if test -z "$CC"; then
# Extract the first word of "cc", so it can be a program name with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:652: checking for $ac_word" >&5
echo "configure:668: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -699,7 +715,7 @@ fi
# Extract the first word of "cl", so it can be a program name with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:703: checking for $ac_word" >&5
echo "configure:719: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -731,7 +747,7 @@ fi
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
echo "configure:735: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
echo "configure:751: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
......@@ -742,12 +758,12 @@ cross_compiling=$ac_cv_prog_cc_cross
cat > conftest.$ac_ext << EOF
#line 746 "configure"
#line 762 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
if { (eval echo configure:751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_cv_prog_cc_works=yes
# If we can't run a trivial program, we are probably using a cross compiler.
if (./conftest; exit) 2>/dev/null; then
......@@ -773,12 +789,12 @@ if test $ac_cv_prog_cc_works = no; then
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:777: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "configure:793: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
echo "configure:782: checking whether we are using GNU C" >&5
echo "configure:798: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -787,7 +803,7 @@ else
yes;
#endif
EOF
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
ac_cv_prog_gcc=yes
else
ac_cv_prog_gcc=no
......@@ -806,7 +822,7 @@ ac_test_CFLAGS="${CFLAGS+set}"
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
echo "configure:810: checking whether ${CC-cc} accepts -g" >&5
echo "configure:826: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -845,7 +861,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
fi
echo $ac_n "checking host system type""... $ac_c" 1>&6
echo "configure:849: checking host system type" >&5
echo "configure:865: checking host system type" >&5
host_alias=$host
case "$host_alias" in
......@@ -866,7 +882,7 @@ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
echo "$ac_t""$host" 1>&6
echo $ac_n "checking build system type""... $ac_c" 1>&6
echo "configure:870: checking build system type" >&5
echo "configure:886: checking build system type" >&5
build_alias=$build
case "$build_alias" in
......@@ -893,7 +909,7 @@ if test -z "$LD" && test "$GCC" = yes; then
# Extract the first word of "${ac_tool_prefix}gld", so it can be a program name with args.
set dummy ${ac_tool_prefix}gld; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:897: checking for $ac_word" >&5
echo "configure:913: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -925,7 +941,7 @@ if test -n "$ac_tool_prefix"; then
# Extract the first word of "gld", so it can be a program name with args.
set dummy gld; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:929: checking for $ac_word" >&5
echo "configure:945: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -962,7 +978,7 @@ if test -z "$LD"; then
# Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
set dummy ${ac_tool_prefix}ld; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:966: checking for $ac_word" >&5
echo "configure:982: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -994,7 +1010,7 @@ fi
fi
echo $ac_n "checking whether $LD accepts -r""... $ac_c" 1>&6
echo "configure:998: checking whether $LD accepts -r" >&5
echo "configure:1014: checking whether $LD accepts -r" >&5
if eval "test \"`echo '$''{'libfirm_cv_prog_ld_r'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -1028,7 +1044,7 @@ fi
# Extract the first word of "ar", so it can be a program name with args.
set dummy ar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1032: checking for $ac_word" >&5
echo "configure:1048: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -1062,7 +1078,7 @@ fi
# Extract the first word of "tar", so it can be a program name with args.
set dummy tar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1066: checking for $ac_word" >&5
echo "configure:1082: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -1097,7 +1113,7 @@ fi
# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1101: checking for $ac_word" >&5
echo "configure:1117: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -1137,7 +1153,7 @@ fi
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# ./install, which can be erroneously created by make from ./install.sh.
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
echo "configure:1141: checking for a BSD compatible install" >&5
echo "configure:1157: checking for a BSD compatible install" >&5
if test -z "$INSTALL"; then
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
......@@ -1191,7 +1207,7 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
echo "configure:1195: checking whether ln -s works" >&5
echo "configure:1211: checking whether ln -s works" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -1216,7 +1232,7 @@ if test "$enable_auto_documentation" = yes; then
# Extract the first word of "robodoc", so it can be a program name with args.
set dummy robodoc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1220: checking for $ac_word" >&5
echo "configure:1236: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ROBODOC'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
......@@ -1250,7 +1266,7 @@ fi
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo "configure:1254: checking how to run the C preprocessor" >&5
echo "configure:1270: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
......@@ -1265,13 +1281,13 @@ else
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
#line 1269 "configure"
#line 1285 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
......@@ -1282,13 +1298,13 @@ else
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
#line 1286 "configure"
#line 1302 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
......@@ -1299,13 +1315,13 @@ else
rm -rf conftest*
CPP="${CC-cc} -nologo -E"
cat > conftest.$ac_ext <<EOF
#line 1303 "configure"
#line 1319 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
:
......@@ -1330,12 +1346,12 @@ fi
echo "$ac_t""$CPP" 1>&6
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
echo "configure:1334: checking for ANSI C header files" >&5
echo "configure:1350: checking for ANSI C header files" >&5
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1339 "configure"
#line 1355 "configure"
#include "confdefs.h"
#include <stdlib.h>
#include <stdarg.h>
......@@ -1343,7 +1359,7 @@ else
#include <float.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
......@@ -1360,7 +1376,7 @@ rm -f conftest*
if test $ac_cv_header_stdc = yes; then
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 1364 "configure"
#line 1380 "configure"
#include "confdefs.h"
#include <string.h>
EOF
......@@ -1378,7 +1394,7 @@ fi
if test $ac_cv_header_stdc = yes; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cat > conftest.$ac_ext <<EOF
#line 1382 "configure"
#line 1398 "configure"
#include "confdefs.h"
#include <stdlib.h>
EOF
......@@ -1399,7 +1415,7 @@ if test "$cross_compiling" = yes; then
:
else
cat > conftest.$ac_ext <<EOF
#line 1403 "configure"
#line 1419 "configure"
#include "confdefs.h"
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
......@@ -1410,7 +1426,7 @@ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
exit (0); }
EOF
if { (eval echo configure:1414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if { (eval echo configure:1430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
then
:
else
......@@ -1439,17 +1455,17 @@ for ac_hdr in math.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:1443: checking for $ac_hdr" >&5
echo "configure:1459: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1448 "configure"
#line 1464 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
......@@ -1486,17 +1502,17 @@ for ac_hdr in gmp.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:1490: checking for $ac_hdr" >&5
echo "configure:1506: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1495 "configure"
#line 1511 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
......@@ -1533,17 +1549,17 @@ for ac_hdr in obstack.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:1537: checking for $ac_hdr" >&5
echo "configure:1553: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1542 "configure"
#line 1558 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:1547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
{ (eval echo configure:1563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
......@@ -1578,7 +1594,7 @@ fi
echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6
echo "configure:1582: checking for main in -lgmp" >&5
echo "configure:1598: checking for main in -lgmp" >&5
ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
......@@ -1586,14 +1602,14 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lgmp $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1590 "configure"
#line 1606 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
if { (eval echo configure:1597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:1613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
......@@ -1620,7 +1636,7 @@ fi
echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
echo "configure:1624: checking for main in -lm" >&5
echo "configure:1640: checking for main in -lm" >&5
ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
......@@ -1628,14 +1644,14 @@ else
ac_save_LIBS="$LIBS"
LIBS="-lm $LIBS"
cat > conftest.$ac_ext <<EOF
#line 1632 "configure"
#line 1648 "configure"
#include "confdefs.h"
int main() {
main()
; return 0; }
EOF
if { (eval echo configure:1639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:1655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
......@@ -1666,12 +1682,12 @@ fi
echo $ac_n "checking for strerror""... $ac_c" 1>&6
echo "configure:1670: checking for strerror" >&5
echo "configure:1686: checking for strerror" >&5
if eval "test \"`echo '$''{'ac_cv_func_strerror'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 1675 "configure"
#line 1691 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char strerror(); below. */
......@@ -1694,7 +1710,7 @@ strerror();
; return 0; }
EOF
if { (eval echo configure:1698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:1714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_strerror=yes"
else
......@@ -1854,6 +1870,7 @@ s%@infodir@%$infodir%g
s%@mandir@%$mandir%g
s%@libfirm_conf_env@%$libfirm_conf_env%g
s%@enable_debug_libfirm@%$enable_debug_libfirm%g
s%@enable_gcc_inline@%$enable_gcc_inline%g
s%@enable_profile_libfirm@%$enable_profile_libfirm%g
s%@enable_auto_documentation@%$enable_auto_documentation%g
s%@CC@%$CC%g
......
......@@ -37,6 +37,14 @@ fi])
AC_SUBST(enable_debug_libfirm)
AC_ARG_ENABLE(use_gcc_inline,
[ --enable-gcc_inline enable gcc inline C-extension],
[if test "$enableval" = yes; then
AC_DEFINE(USE_GCC_INLINE)
fi])
AC_SUBST(enable_gcc_inline)
dnl set profiling
dnl -------------
AC_ARG_ENABLE(profile,
......
......@@ -19,6 +19,15 @@
#include "malloc.h"
#include "pdeq.h"
#ifndef INLINE
#ifdef USE_GCC_INLINE
#define INLINE inline
#else
#define INLINE
#endif
#endif
/* # of data items in block */
#define NDATA ((int)((PREF_MALLOC_SIZE - offsetof (pdeq, data)) / sizeof (void *)))
......@@ -47,7 +56,7 @@ pdeq *pdeq_block_cache[TUNE_NSAVED_PDEQS+1];
unsigned pdeqs_cached; /* # pdeqs in pdeq_store */
static inline void
static INLINE void
free_pdeq_block (pdeq *p)
{
#ifndef NDEBUG
......@@ -63,7 +72,7 @@ free_pdeq_block (pdeq *p)
}
static inline pdeq *
static INLINE pdeq *
alloc_pdeq_block (void)
{
pdeq *p;
......
......@@ -27,6 +27,15 @@
# include <config.h>
#endif
#ifdef USE_GCC_INLINE
#define INLINE inline
#else
#define INLINE
#endif
/* bcopy is not ISO C */
#define bcopy(X, Y, Z) memcpy((Y), (X), (Z))
#ifdef PSET
# define SET pset
# define PMANGLE(pre) pre##_pset
......@@ -107,7 +116,7 @@ MANGLEP(stats) (SET *table)
table->naccess, table->ncollision, table->nkey, table->ndups, table->max_chain_len, nfree);
}
static inline void
static INLINE void
stat_chain_len (SET *table, int chain_len)
{
table->ncollision += chain_len;
......@@ -209,7 +218,7 @@ PMANGLE(del) (SET *table)
}
static inline int
static INLINE int
iter_step (SET *table)
{
if (++table->iter_j >= SEGMENT_SIZE) {
......@@ -261,7 +270,7 @@ MANGLEP(break) (SET *table)
}
static inline unsigned
static INLINE unsigned
Hash (SET *table, unsigned h)
{
unsigned address;
......@@ -273,7 +282,7 @@ Hash (SET *table, unsigned h)
}
static inline int
static INLINE int
loaded (SET *table)
{
return ( ++table->nkey
......
......@@ -86,8 +86,8 @@ void collect_impls(entity *method, eset *set, int *size, bool *open) {
if (!eset_contains(set, method)) {
eset_insert(set, method);
++(*size);
//printf("Adding existent method %d ", *size); DDME(method);
//printf(" with owner "); DDMT(get_entity_owner(method));
/* printf("Adding existent method %d ", *size); DDME(method);
printf(" with owner "); DDMT(get_entity_owner(method)); */
}
}
}
......@@ -102,8 +102,8 @@ void collect_impls(entity *method, eset *set, int *size, bool *open) {
if (!eset_contains(set, impl_ent)) {
eset_insert(set, impl_ent);
++(*size);
// printf("Adding inherited method %d ", *size); DDME(impl_ent);
//printf(" with owner "); DDMT(get_entity_owner(impl_ent));
/* printf("Adding inherited method %d ", *size); DDME(impl_ent);
printf(" with owner "); DDMT(get_entity_owner(impl_ent)); */
}
}
}
......@@ -129,9 +129,6 @@ static entity ** get_impl_methods(entity * method) {
/** Collect all method entities that can be called here **/
collect_impls(method, set, &size, &open);
//printf("Size is %d \n\n", size);
/** Gefunden Entitaeten in ein Feld kopieren, ev. Unbekannten
Vorgaenger einfuegen. **/
if (size == 0 && !open) {
......
......@@ -118,8 +118,6 @@ void init_tmp_dom_info(ir_node *bl, tmp_dom_info *parent,
mark_Block_block_visited(bl);
set_Block_pre_num(bl, *used);
//printf(" used: %d ", *used); DDMN(bl);
tdi = &tdi_list[*used];
++(*used);
......@@ -154,7 +152,7 @@ dom_compress (tmp_dom_info *v)
/* if V is a root, return v, else return the vertex u, not being the
root, with minimum u->semi on the path from v to its root. */
inline static tmp_dom_info*
INLINE static tmp_dom_info*
dom_eval (tmp_dom_info *v)
{
if (!v->ancestor) return v;
......@@ -163,7 +161,7 @@ dom_eval (tmp_dom_info *v)
}