diff options
author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-21 05:31:33 +0000 |
---|---|---|
committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-07-21 05:31:33 +0000 |
commit | 8b3b32fbf47bbf0302ca996ac7d603688663cce5 (patch) | |
tree | c36efa3263124cc352e13d6db6d70e14e7a1a505 /gcc/config | |
parent | 475d4118f6b6cddaba30b7570f00ad89f8fc0bcf (diff) | |
download | ppe42-gcc-8b3b32fbf47bbf0302ca996ac7d603688663cce5.tar.gz ppe42-gcc-8b3b32fbf47bbf0302ca996ac7d603688663cce5.zip |
* config.gcc (i[34567]86-*-solaris2*): Add usegas.h to $tm_file
if the target assembler is GNU binutils' gas.
* config/i386/sol2-10.h (ASM_SPEC): Check USE_GAS to determine
whether to pass GNU gas or native as command line options.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115638 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/i386/sol2-10.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/config/i386/sol2-10.h b/gcc/config/i386/sol2-10.h index e120aa1b762..af51b4cb376 100644 --- a/gcc/config/i386/sol2-10.h +++ b/gcc/config/i386/sol2-10.h @@ -22,9 +22,17 @@ Boston, MA 02110-1301, USA. */ #undef ASM_COMMENT_START #define ASM_COMMENT_START "/" +/* binutils' GNU as understands --32 and --64, but the native Solaris + assembler requires -xarch=generic or -xarch=generic64 instead. */ #undef ASM_SPEC +#ifdef USE_GAS #define ASM_SPEC "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} " \ "%{Wa,*:%*} %{m32:--32} %{m64:--64} -s %(asm_cpu)" +#else +#define ASM_SPEC "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} " \ + "%{Wa,*:%*} %{m32:-xarch=generic} %{m64:-xarch=generic64} " \ + "-s %(asm_cpu)" +#endif #undef NO_PROFILE_COUNTERS |