diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2013-01-30 09:26:21 +0000 |
---|---|---|
committer | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2013-01-30 09:26:21 +0000 |
commit | 26f0dc1729e343e38cb5e1e43bdeb2c63c3f4421 (patch) | |
tree | 8515fd046813cc90ae619e11c467f19cbd84522d /gcc/configure | |
parent | 1adc84853a8b2684ec458d0abcd456c4db142567 (diff) |
Properly set progbits/nobits for Solaris/SPARC as
* configure.ac (HAVE_AS_SPARC_NOBITS): New test.
* configure: Regenerate.
* config.in: Regenerate.
* config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
#nobits/#progbits if supported.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@195572 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure')
-rwxr-xr-x | gcc/configure | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gcc/configure b/gcc/configure index 5730c9d4517..6711c0feb5f 100755 --- a/gcc/configure +++ b/gcc/configure @@ -23927,6 +23927,39 @@ $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for #nobits" >&5 +$as_echo_n "checking assembler for #nobits... " >&6; } +if test "${gcc_cv_as_sparc_nobits+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + gcc_cv_as_sparc_nobits=no + if test x$gcc_cv_as != x; then + $as_echo '.section "nobits",#alloc,#write,#nobits + .section "progbits",#alloc,#write,#progbits' > conftest.s + if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 + (eval $ac_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; } + then + gcc_cv_as_sparc_nobits=yes + else + echo "configure: failed program was" >&5 + cat conftest.s >&5 + fi + rm -f conftest.o conftest.s + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_nobits" >&5 +$as_echo "$gcc_cv_as_sparc_nobits" >&6; } + + +cat >>confdefs.h <<_ACEOF +#define HAVE_AS_SPARC_NOBITS `if test $gcc_cv_as_sparc_nobits = yes; then echo 1; else echo 0; fi` +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5 $as_echo_n "checking assembler for -relax option... " >&6; } if test "${gcc_cv_as_sparc_relax+set}" = set; then : |