diff --git a/ChangeLog.alpha b/ChangeLog.alpha index 4e2eb5b844..948cdc69ab 100644 --- a/ChangeLog.alpha +++ b/ChangeLog.alpha @@ -1,3 +1,9 @@ +2010-03-26 Richard Henderson + + * sysdep/alpha/elf/configure.in (libc_cv_alpha_hidden_gprel) + Adjust the test for gcc 4.5. + * sysdep/alpha/elf/configure: Rebuild. + 2010-03-26 Richard Henderson * sysdeps/alpha/bits/atomic.h (__arch_exchange_8_int, diff --git a/sysdeps/alpha/elf/configure b/sysdeps/alpha/elf/configure index ea99e35416..1d594dc787 100644 --- a/sysdeps/alpha/elf/configure +++ b/sysdeps/alpha/elf/configure @@ -4,10 +4,10 @@ if test "$usetls" != no; then # Check for support of thread-local storage handling in assembler and # linker. -echo "$as_me:$LINENO: checking for Alpha TLS support" >&5 -echo $ECHO_N "checking for Alpha TLS support... $ECHO_C" >&6 +{ $as_echo "$as_me:$LINENO: checking for Alpha TLS support" >&5 +$as_echo_n "checking for Alpha TLS support... " >&6; } if test "${libc_cv_alpha_tls+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + $as_echo_n "(cached) " >&6 else cat > conftest.s <<\EOF .section ".tdata", "awT", @progbits @@ -47,7 +47,7 @@ if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then libc_cv_alpha_tls=yes else @@ -55,8 +55,8 @@ else fi rm -f conftest* fi -echo "$as_me:$LINENO: result: $libc_cv_alpha_tls" >&5 -echo "${ECHO_T}$libc_cv_alpha_tls" >&6 +{ $as_echo "$as_me:$LINENO: result: $libc_cv_alpha_tls" >&5 +$as_echo "$libc_cv_alpha_tls" >&6; } if test $libc_cv_alpha_tls = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_TLS_SUPPORT 1 @@ -65,19 +65,15 @@ _ACEOF fi fi -echo "$as_me:$LINENO: checking for GP relative module local relocs" >&5 -echo $ECHO_N "checking for GP relative module local relocs... $ECHO_C" >&6 +{ $as_echo "$as_me:$LINENO: checking for GP relative module local relocs" >&5 +$as_echo_n "checking for GP relative module local relocs... " >&6; } if test "${libc_cv_alpha_hidden_gprel+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 + $as_echo_n "(cached) " >&6 else cat > conftest.c <<\EOF -static int bar; +static volatile int bar; int baz __attribute__((visibility("hidden"))); - -int foo (void) -{ - return bar + baz; -} +int f(void) { return bar + baz; } EOF libc_cv_alpha_hidden_gprel=no @@ -85,7 +81,7 @@ if { ac_try='${CC-cc} -S $CFLAGS -O2 -fpic conftest.c 1>&5' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then if grep -q 'bar.*!gprel' conftest.s \ && grep -q 'baz.*!gprel' conftest.s \ @@ -96,8 +92,8 @@ if { ac_try='${CC-cc} -S $CFLAGS -O2 -fpic conftest.c 1>&5' fi rm -f conftest* fi -echo "$as_me:$LINENO: result: $libc_cv_alpha_hidden_gprel" >&5 -echo "${ECHO_T}$libc_cv_alpha_hidden_gprel" >&6 +{ $as_echo "$as_me:$LINENO: result: $libc_cv_alpha_hidden_gprel" >&5 +$as_echo "$libc_cv_alpha_hidden_gprel" >&6; } if test $libc_cv_alpha_hidden_gprel = yes; then cat >>confdefs.h <<\_ACEOF #define PI_STATIC_AND_HIDDEN 1 diff --git a/sysdeps/alpha/elf/configure.in b/sysdeps/alpha/elf/configure.in index 7986814548..3a479341e7 100644 --- a/sysdeps/alpha/elf/configure.in +++ b/sysdeps/alpha/elf/configure.in @@ -53,13 +53,9 @@ fi AC_CACHE_CHECK(for GP relative module local relocs, libc_cv_alpha_hidden_gprel, [dnl cat > conftest.c <<\EOF -static int bar; +static volatile int bar; int baz __attribute__((visibility("hidden"))); - -int foo (void) -{ - return bar + baz; -} +int f(void) { return bar + baz; } EOF dnl