diff options
author | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-16 17:16:29 +0000 |
---|---|---|
committer | aph <aph@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-16 17:16:29 +0000 |
commit | b77139bb5ee71f08571091ed88c66f88fa5a40fe (patch) | |
tree | 248bf8a2373dbbe00cae78359832d11a2aab7c06 /boehm-gc | |
parent | 7d709f85c1f63f6300998f5645bf2caddab95369 (diff) | |
download | gcc-b77139bb5ee71f08571091ed88c66f88fa5a40fe.tar.gz |
2004-01-16 Andrew Haley <aph@redhat.com>
* configure.in (NO_EXECUTE_PERMISSION): Remove global declaration;
add for ia64; remove for MIPS.
* configure: Regnerated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75981 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'boehm-gc')
-rw-r--r-- | boehm-gc/ChangeLog | 6 | ||||
-rwxr-xr-x | boehm-gc/configure | 102 | ||||
-rw-r--r-- | boehm-gc/configure.in | 9 |
3 files changed, 66 insertions, 51 deletions
diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog index 89c05e0b12e..b590a1ff725 100644 --- a/boehm-gc/ChangeLog +++ b/boehm-gc/ChangeLog @@ -1,3 +1,9 @@ +2004-01-16 Andrew Haley <aph@redhat.com> + + * configure.in (NO_EXECUTE_PERMISSION): Remove global declaration; + add for ia64; remove for MIPS. + * configure: Regnerated. + 2004-01-14 Kelley Cook <kcook@gcc.gnu.org> * configure.in: Add in AC_PREREQ(2.13) diff --git a/boehm-gc/configure b/boehm-gc/configure index 5cce0e9fd59..3f8c583118c 100755 --- a/boehm-gc/configure +++ b/boehm-gc/configure @@ -1865,6 +1865,7 @@ cygwin* | mingw* |pw32*) ;; darwin* | rhapsody*) + # this will be overwritten by pass_all, but leave it in just in case lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' lt_cv_file_magic_cmd='/usr/bin/file -L' case "$host_os" in @@ -1875,6 +1876,7 @@ darwin* | rhapsody*) lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' ;; esac + lt_cv_deplibs_check_method=pass_all ;; freebsd* ) @@ -1999,13 +2001,13 @@ file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method echo $ac_n "checking for object suffix""... $ac_c" 1>&6 -echo "configure:2003: checking for object suffix" >&5 +echo "configure:2005: checking for object suffix" >&5 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else rm -f conftest* echo 'int i = 1;' > conftest.$ac_ext -if { (eval echo configure:2009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:2011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then for ac_file in conftest.*; do case $ac_file in *.c) ;; @@ -2029,7 +2031,7 @@ case $deplibs_check_method in file_magic*) if test "$file_magic_cmd" = '$MAGIC_CMD'; then echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6 -echo "configure:2033: checking for ${ac_tool_prefix}file" >&5 +echo "configure:2035: checking for ${ac_tool_prefix}file" >&5 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2091,7 +2093,7 @@ fi if test -z "$lt_cv_path_MAGIC_CMD"; then if test -n "$ac_tool_prefix"; then echo $ac_n "checking for file""... $ac_c" 1>&6 -echo "configure:2095: checking for file" >&5 +echo "configure:2097: checking for file" >&5 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2162,7 +2164,7 @@ esac # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2166: checking for $ac_word" >&5 +echo "configure:2168: 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 @@ -2194,7 +2196,7 @@ if test -n "$ac_tool_prefix"; then # 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:2198: checking for $ac_word" >&5 +echo "configure:2200: 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 @@ -2229,7 +2231,7 @@ fi # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2233: checking for $ac_word" >&5 +echo "configure:2235: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2261,7 +2263,7 @@ if test -n "$ac_tool_prefix"; then # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2265: checking for $ac_word" >&5 +echo "configure:2267: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2328,8 +2330,8 @@ test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" case $host in *-*-irix6*) # Find out which ABI we are using. - echo '#line 2332 "configure"' > conftest.$ac_ext - if { (eval echo configure:2333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + echo '#line 2334 "configure"' > conftest.$ac_ext + if { (eval echo configure:2335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then if test "$lt_cv_prog_gnu_ld" = yes; then case `/usr/bin/file conftest.$ac_objext` in *32-bit*) @@ -2362,7 +2364,7 @@ case $host in ia64-*-hpux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext - if { (eval echo configure:2366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + if { (eval echo configure:2368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then case "`/usr/bin/file conftest.o`" in *ELF-32*) HPUX_IA64_MODE="32" @@ -2378,7 +2380,7 @@ ia64-*-hpux*) x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) # Find out which ABI we are using. echo 'int i;' > conftest.$ac_ext - if { (eval echo configure:2382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then + if { (eval echo configure:2384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then case "`/usr/bin/file conftest.o`" in *32-bit*) case $host in @@ -2422,7 +2424,7 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -belf" echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 -echo "configure:2426: checking whether the C compiler needs -belf" >&5 +echo "configure:2428: checking whether the C compiler needs -belf" >&5 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2435,14 +2437,14 @@ ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$a cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext <<EOF -#line 2439 "configure" +#line 2441 "configure" #include "confdefs.h" int main() { ; return 0; } EOF -if { (eval echo configure:2446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* lt_cv_cc_needs_belf=yes else @@ -2472,7 +2474,7 @@ echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 esac echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 -echo "configure:2476: checking how to run the C++ preprocessor" >&5 +echo "configure:2478: checking how to run the C++ preprocessor" >&5 if test -z "$CXXCPP"; then if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2485,12 +2487,12 @@ ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftes cross_compiling=$ac_cv_prog_cxx_cross CXXCPP="${CXX-g++} -E" cat > conftest.$ac_ext <<EOF -#line 2489 "configure" +#line 2491 "configure" #include "confdefs.h" #include <stdlib.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:2496: \"$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 : @@ -2637,7 +2639,7 @@ fi echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 -echo "configure:2641: checking whether to enable maintainer-specific portions of Makefiles" >&5 +echo "configure:2643: checking whether to enable maintainer-specific portions of Makefiles" >&5 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then enableval="$enable_maintainer_mode" @@ -2670,7 +2672,7 @@ if false; then echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 -echo "configure:2674: checking for executable suffix" >&5 +echo "configure:2676: checking for executable suffix" >&5 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -2680,7 +2682,7 @@ else rm -f conftest* echo 'int main () { return 0; }' > conftest.$ac_ext ac_cv_exeext= - if { (eval echo configure:2684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then + if { (eval echo configure:2686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then for file in conftest.*; do case $file in *.c | *.o | *.obj) ;; @@ -2703,7 +2705,7 @@ ac_exeext=$EXEEXT fi echo $ac_n "checking for thread model used by GCC""... $ac_c" 1>&6 -echo "configure:2707: checking for thread model used by GCC" >&5 +echo "configure:2709: checking for thread model used by GCC" >&5 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'` if test -z "$THREADS"; then THREADS=no @@ -2937,7 +2939,7 @@ case "$host" in *-*-darwin*) ;; *) echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 -echo "configure:2941: checking for dlopen in -ldl" >&5 +echo "configure:2943: checking for dlopen in -ldl" >&5 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -2945,7 +2947,7 @@ else ac_save_LIBS="$LIBS" LIBS="-ldl $LIBS" cat > conftest.$ac_ext <<EOF -#line 2949 "configure" +#line 2951 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 @@ -2956,7 +2958,7 @@ int main() { dlopen() ; return 0; } EOF -if { (eval echo configure:2960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:2962: \"$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 @@ -3035,7 +3037,7 @@ fi # Configuration of shared libraries # echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6 -echo "configure:3039: checking whether to build shared libraries" >&5 +echo "configure:3041: checking whether to build shared libraries" >&5 # Check whether --enable-shared or --disable-shared was given. if test "${enable_shared+set}" = set; then enableval="$enable_shared" @@ -3072,8 +3074,14 @@ esac # Configuration of machine-dependent code # +# We don't set NO_EXECUTE_PERMISSION by default because gcj (and +# anything else that creates trampolines in gc-allocated memory) +# always needs exec permission. The exception to this is IA-64 and +# some variations of Power PC, where trampolines don't contain +# executable code. +# echo $ac_n "checking which machine-dependent code should be used""... $ac_c" 1>&6 -echo "configure:3077: checking which machine-dependent code should be used" >&5 +echo "configure:3085: checking which machine-dependent code should be used" >&5 machdep= case "$host" in alpha*-*-openbsd*) @@ -3111,10 +3119,6 @@ EOF ;; mips-*-*) machdep="mips_sgi_mach_dep.lo" - cat >> confdefs.h <<\EOF -#define NO_EXECUTE_PERMISSION 1 -EOF - ;; sparc-*-netbsd*) machdep="sparc_netbsd_mach_dep.lo" @@ -3130,6 +3134,10 @@ EOF machdep="sparc_mach_dep.lo" ;; ia64-*-*) + cat >> confdefs.h <<\EOF +#define NO_EXECUTE_PERMISSION 1 +EOF + machdep="mach_dep.lo ia64_save_regs_in_stack.lo" ;; esac @@ -3153,10 +3161,10 @@ addobjs="$addobjs $machdep" # Check for AViiON Machines running DGUX # echo $ac_n "checking if host is AViiON running DGUX""... $ac_c" 1>&6 -echo "configure:3157: checking if host is AViiON running DGUX" >&5 +echo "configure:3165: checking if host is AViiON running DGUX" >&5 ac_is_dgux=no echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:3160: checking how to run the C preprocessor" >&5 +echo "configure:3168: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= @@ -3171,13 +3179,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 3175 "configure" +#line 3183 "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:3181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3189: \"$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 : @@ -3188,13 +3196,13 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext <<EOF -#line 3192 "configure" +#line 3200 "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:3198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3206: \"$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 : @@ -3205,13 +3213,13 @@ else rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext <<EOF -#line 3209 "configure" +#line 3217 "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:3215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3223: \"$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 : @@ -3237,17 +3245,17 @@ echo "$ac_t""$CPP" 1>&6 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 -echo "configure:3241: checking for sys/dg_sys_info.h" >&5 +echo "configure:3249: checking for sys/dg_sys_info.h" >&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 3246 "configure" +#line 3254 "configure" #include "confdefs.h" #include <sys/dg_sys_info.h> EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } +{ (eval echo configure:3259: \"$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* @@ -3307,7 +3315,7 @@ if false; then echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 -echo "configure:3311: checking for executable suffix" >&5 +echo "configure:3319: checking for executable suffix" >&5 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -3317,7 +3325,7 @@ else rm -f conftest* echo 'int main () { return 0; }' > conftest.$ac_ext ac_cv_exeext= - if { (eval echo configure:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then + if { (eval echo configure:3329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then for file in conftest.*; do case $file in *.c | *.o | *.obj) ;; @@ -3340,7 +3348,7 @@ ac_exeext=$EXEEXT fi echo $ac_n "checking whether Solaris gcc optimization fix is necessary""... $ac_c" 1>&6 -echo "configure:3344: checking whether Solaris gcc optimization fix is necessary" >&5 +echo "configure:3352: checking whether Solaris gcc optimization fix is necessary" >&5 case "$host" in sparc-sun-solaris2*|*aix*) if test "$GCC" = yes; then @@ -3375,10 +3383,6 @@ cat >> confdefs.h <<\EOF EOF cat >> confdefs.h <<\EOF -#define NO_EXECUTE_PERMISSION 1 -EOF - -cat >> confdefs.h <<\EOF #define ALL_INTERIOR_POINTERS 1 EOF diff --git a/boehm-gc/configure.in b/boehm-gc/configure.in index 08c623ce20f..ba5ccb9678d 100644 --- a/boehm-gc/configure.in +++ b/boehm-gc/configure.in @@ -246,6 +246,12 @@ esac # Configuration of machine-dependent code # +# We don't set NO_EXECUTE_PERMISSION by default because gcj (and +# anything else that creates trampolines in gc-allocated memory) +# always needs exec permission. The exception to this is IA-64 and +# some variations of Power PC, where trampolines don't contain +# executable code. +# AC_MSG_CHECKING(which machine-dependent code should be used) machdep= case "$host" in @@ -275,7 +281,6 @@ case "$host" in ;; mips-*-*) machdep="mips_sgi_mach_dep.lo" - AC_DEFINE(NO_EXECUTE_PERMISSION) ;; sparc-*-netbsd*) machdep="sparc_netbsd_mach_dep.lo" @@ -288,6 +293,7 @@ case "$host" in machdep="sparc_mach_dep.lo" ;; ia64-*-*) + AC_DEFINE(NO_EXECUTE_PERMISSION) machdep="mach_dep.lo ia64_save_regs_in_stack.lo" ;; esac @@ -377,7 +383,6 @@ dnl Include defines that have become de facto standard. dnl ALL_INTERIOR_POINTERS can be overridden in startup code. AC_DEFINE(SILENT) AC_DEFINE(NO_SIGNALS) -AC_DEFINE(NO_EXECUTE_PERMISSION) AC_DEFINE(ALL_INTERIOR_POINTERS) dnl By default, make the library as general as possible. |