diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2018-01-26 08:32:21 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2018-01-26 08:32:21 +0000 |
commit | af2e3244f56152d94a18c1339a18a4c0b0e33060 (patch) | |
tree | 957b816c25e791bc435d9375088bd5091c75fe96 /gcc/configure | |
parent | aad36c569d14bada8f278fcdb9eb78056ae6b6ac (diff) | |
download | gcc-af2e3244f56152d94a18c1339a18a4c0b0e33060.zip gcc-af2e3244f56152d94a18c1339a18a4c0b0e33060.tar.gz gcc-af2e3244f56152d94a18c1339a18a4c0b0e33060.tar.bz2 |
Configure USE_HIDDEN_LINKONCE on Solaris/x86
gcc/testsuite:
* gcc.target/i386/mcount_pic.c: Only xfail get_pc_thunk scan on
Solaris 10.
* gcc.target/i386/pr63620.c: Likewise.
gcc:
* config/i386/sol2.h (USE_HIDDEN_LINKONCE): Remove.
* configure.ac (hidden_linkonce): New test.
* configure: Regenerate.
* config.in: Regenerate.
From-SVN: r257076
Diffstat (limited to 'gcc/configure')
-rwxr-xr-x | gcc/configure | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gcc/configure b/gcc/configure index 376d341..f3695ad 100755 --- a/gcc/configure +++ b/gcc/configure @@ -23798,6 +23798,35 @@ cat >>confdefs.h <<_ACEOF _ACEOF +# Restrict this test to Solaris/x86: other targets define this statically. +case "${target}" in + i?86-*-solaris2* | x86_64-*-solaris2*) + { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for hidden thunks in linkonce sections" >&5 +$as_echo_n "checking support for hidden thunks in linkonce sections... " >&6; } + if test $in_tree_ld = yes || echo "$ld_ver" | grep GNU > /dev/null; then + hidden_linkonce=yes + else + case "${target}" in + # Full support for hidden thunks in linkonce sections only appeared in + # Solaris 11/OpenSolaris. + *-*-solaris2.1[1-9]*) + hidden_linkonce=yes + ;; + *) + hidden_linkonce=no + ;; + esac + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hidden_linkonce" >&5 +$as_echo "$hidden_linkonce" >&6; } + +cat >>confdefs.h <<_ACEOF +#define USE_HIDDEN_LINKONCE `if test $hidden_linkonce = yes; then echo 1; else echo 0; fi` +_ACEOF + + ;; +esac + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5 $as_echo_n "checking assembler for line table discriminator support... " >&6; } if test "${gcc_cv_as_discriminator+set}" = set; then : |