re PR java/44095 (massive java failures due to -findirect-dispatch breakage on sparc6...
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 22 Sep 2010 21:14:50 +0000 (21:14 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 22 Sep 2010 21:14:50 +0000 (21:14 +0000)
PR java/44095
* config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
is specified and the suffix of the file isn't ".c".
* config/sparc/linux64.h (ASM_SPEC): Likewise.

From-SVN: r164534

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

index 688f0ed..b1ded0d 100644 (file)
@@ -1,4 +1,11 @@
-2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR java/44095
+       * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
+       is specified and the suffix of the file isn't ".c".
+       * config/sparc/linux64.h (ASM_SPEC): Likewise.
+
+2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * doc/contrib.texi (Contributors): Allow URL to wrap in PDF
        output.
index 530a6ae..1272d2a 100644 (file)
@@ -107,7 +107,8 @@ along with GCC; see the file COPYING3.  If not see
 %{Ym,*} \
 %{Wa,*:%*} \
 -s \
-%{fpic|fPIC|fpie|fPIE|findirect-dispatch:-K PIC} \
+%{fpic|fPIC|fpie|fPIE:-K PIC} \
+%{!.c:%{findirect-dispatch:-K PIC}} \
 %(asm_cpu) %(asm_relax)"
 
 #undef ASM_OUTPUT_ALIGNED_LOCAL
index 369c13c..d8a2427 100644 (file)
@@ -236,7 +236,8 @@ along with GCC; see the file COPYING3.  If not see
 %{Ym,*} \
 %{Wa,*:%*} \
 -s \
-%{fpic|fPIC|fpie|fPIE|findirect-dispatch:-K PIC} \
+%{fpic|fPIC|fpie|fPIE:-K PIC} \
+%{!.c:%{findirect-dispatch:-K PIC}} \
 %{mlittle-endian:-EL} \
 %(asm_cpu) %(asm_arch) %(asm_relax)"