diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2013-01-30 09:26:21 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2013-01-30 09:26:21 +0000 |
commit | 20804d96d131529e7f7f300458e02b7f1ed30d6c (patch) | |
tree | 8515fd046813cc90ae619e11c467f19cbd84522d /gcc/config | |
parent | 6690cb20df45ead8d49a0697b56b16b23476b2b9 (diff) | |
download | gcc-20804d96d131529e7f7f300458e02b7f1ed30d6c.zip gcc-20804d96d131529e7f7f300458e02b7f1ed30d6c.tar.gz gcc-20804d96d131529e7f7f300458e02b7f1ed30d6c.tar.bz2 |
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.
From-SVN: r195572
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/sparc/sparc.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 3d7db60..08c2894 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -9512,7 +9512,14 @@ sparc_solaris_elf_asm_named_section (const char *name, unsigned int flags, if (flags & SECTION_CODE) fputs (",#execinstr", asm_out_file); - /* ??? Handle SECTION_BSS. */ + /* Sun as only supports #nobits/#progbits since Solaris 10. */ + if (HAVE_AS_SPARC_NOBITS) + { + if (flags & SECTION_BSS) + fputs (",#nobits", asm_out_file); + else + fputs (",#progbits", asm_out_file); + } fputc ('\n', asm_out_file); } |