linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch.
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 7 Dec 2009 23:31:01 +0000 (23:31 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 7 Dec 2009 23:31:01 +0000 (23:31 +0000)
* config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch.
* config/sparc/linux64.h (ASM_SPEC): Likewise.

From-SVN: r155065

gcc/ChangeLog
gcc/config/sparc/linux.h
gcc/config/sparc/linux64.h

index a10b2880f954108acbfa538de851a52d9ca30c9f..b91b6383faf1d71c67bf694f126691394db02bc0 100644 (file)
@@ -1,3 +1,8 @@
+2009-12-07  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch.
+       * config/sparc/linux64.h (ASM_SPEC): Likewise.
+
 2009-12-07  Richard Henderson  <rth@redhat.com>
 
        PR debug/42299
index 6dcce78bcbb167d0a8fe73f856e379c25ba76ecf..b12c881ebed0bdcefddf0deaf54b47c9bc2b6d6f 100644 (file)
@@ -98,9 +98,17 @@ along with GCC; see the file COPYING3.  If not see
 /* The sun bundled assembler doesn't accept -Yd, (and neither does gas).
    It's safe to pass -s always, even if -g is not used.  */
 #undef ASM_SPEC
-#define ASM_SPEC \
-  "%{V} %{v:%{!V:-V}} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Wa,*:%*} -s \
-   %{fpic|fPIC|fpie|fPIE:-K PIC} %(asm_cpu) %(asm_relax)"
+#define ASM_SPEC "\
+%{V} \
+%{v:%{!V:-V}} \
+%{!Qn:-Qy} \
+%{n} \
+%{T} \
+%{Ym,*} \
+%{Wa,*:%*} \
+-s \
+%{fpic|fPIC|fpie|fPIE|findirect-dispatch:-K PIC} \
+%(asm_cpu) %(asm_relax)"
 
 #undef ASM_OUTPUT_ALIGNED_LOCAL
 #define ASM_OUTPUT_ALIGNED_LOCAL(FILE, NAME, SIZE, ALIGN)              \
index 9d0799f9347a3a36d8c0e98ba8bd087b93fc64b8..c2e78d726defdc1e803e0166cc9eaf949e3c8c2a 100644 (file)
@@ -235,7 +235,8 @@ along with GCC; see the file COPYING3.  If not see
 %{T} \
 %{Ym,*} \
 %{Wa,*:%*} \
--s %{fpic|fPIC|fpie|fPIE:-K PIC} \
+-s \
+%{fpic|fPIC|fpie|fPIE|findirect-dispatch:-K PIC} \
 %{mlittle-endian:-EL} \
 %(asm_cpu) %(asm_arch) %(asm_relax)"