Toggle default ELF section syntax on SPARC
Eric Botcazou
ebotcazou@adacore.com
Tue Mar 2 11:37:00 GMT 2010
As a follow-up to David's patch, I'm proposing that we toggle the default ELF
section syntax on SPARC for GCC 4.5 and above, using the Sun syntax only on
Solaris and only with Sun as.
I've tested the attached patch on Solaris 8/9/10 with GNU as 2.19.1+Sun ld and
the results are the same as without it.
2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
* config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
(sparc64-*-linux*): Likewise.
* config/sparc/gas.h: Delete.
* config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
* config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
* config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sparc_gas.diff
Type: text/x-diff
Size: 3095 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100302/d0111891/attachment.bin>
More information about the Gcc-patches
mailing list