From 30f553f6a7597e8084704b84876dea2af493d6fe Mon Sep 17 00:00:00 2001 From: Jing Yu Date: Mon, 18 Jan 2010 13:38:25 -0800 Subject: Bring gcc-4.4.0 to up-to-date. --- gcc-4.4.0/libmudflap/configure | 40 ++++++++++++++++------ .../testsuite/libmudflap.c++/pass41-frag.cxx | 4 +++ 2 files changed, 33 insertions(+), 11 deletions(-) (limited to 'gcc-4.4.0/libmudflap') diff --git a/gcc-4.4.0/libmudflap/configure b/gcc-4.4.0/libmudflap/configure index ae1be92e2..1576f895f 100755 --- a/gcc-4.4.0/libmudflap/configure +++ b/gcc-4.4.0/libmudflap/configure @@ -7808,7 +7808,22 @@ fi; # Check whether --with-pic or --without-pic was given. if test "${with_pic+set}" = set; then withval="$with_pic" - pic_mode="$withval" + p=${PACKAGE-default} + case "$withval" in + yes|no) pic_mode="$withval" ;; + *) + pic_mode=default + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in "$withval"; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + pic_mode=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac else pic_mode=default fi; @@ -8232,11 +8247,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8235: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8250: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:8239: \$? = $ac_status" >&5 + echo "$as_me:8254: \$? = $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 other than the usual output. @@ -8571,11 +8586,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8574: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8589: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:8578: \$? = $ac_status" >&5 + echo "$as_me:8593: \$? = $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 other than the usual output. @@ -8676,11 +8691,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8679: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8694: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:8683: \$? = $ac_status" >&5 + echo "$as_me:8698: \$? = $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 @@ -8731,11 +8746,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:8734: $lt_compile\"" >&5) + (eval echo "\"\$as_me:8749: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:8738: \$? = $ac_status" >&5 + echo "$as_me:8753: \$? = $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 @@ -11543,7 +11558,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11546 "configure" +#line 11561 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11639,7 +11654,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11642 "configure" +#line 11657 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -13624,6 +13639,9 @@ ac_configure_args="${multilib_arg} ${ac_configure_args}" multi_basedir="$multi_basedir" CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} CC="$CC" +CXX="$CXX" +GFORTRAN="$GFORTRAN" +GCJ="$GCJ" AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" diff --git a/gcc-4.4.0/libmudflap/testsuite/libmudflap.c++/pass41-frag.cxx b/gcc-4.4.0/libmudflap/testsuite/libmudflap.c++/pass41-frag.cxx index d15b98f1c..62bd9b4e7 100644 --- a/gcc-4.4.0/libmudflap/testsuite/libmudflap.c++/pass41-frag.cxx +++ b/gcc-4.4.0/libmudflap/testsuite/libmudflap.c++/pass41-frag.cxx @@ -1,3 +1,7 @@ +/* This test fails for x86 + x86_64 (-m32/-m64) with optimization levels + other than -O. There's no way to xfail this for certaion optimization + levels, so we force optimization to -O1 to make this pass. */ +/* { dg-options "-O" { target i?86-*-* x86_64-*-* } } */ #include #include -- cgit v1.2.3