From: Eric Botcazou Date: Mon, 7 Dec 2009 23:31:01 +0000 (+0000) Subject: linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch. X-Git-Tag: releases/gcc-4.5.0~1743 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1141be7e561b8a157cf4c72e84a675329e29174f;p=thirdparty%2Fgcc.git linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch. * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch. * config/sparc/linux64.h (ASM_SPEC): Likewise. From-SVN: r155065 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a10b2880f954..b91b6383faf1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-12-07 Eric Botcazou + + * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch. + * config/sparc/linux64.h (ASM_SPEC): Likewise. + 2009-12-07 Richard Henderson PR debug/42299 diff --git a/gcc/config/sparc/linux.h b/gcc/config/sparc/linux.h index 6dcce78bcbb1..b12c881ebed0 100644 --- a/gcc/config/sparc/linux.h +++ b/gcc/config/sparc/linux.h @@ -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) \ diff --git a/gcc/config/sparc/linux64.h b/gcc/config/sparc/linux64.h index 9d0799f9347a..c2e78d726def 100644 --- a/gcc/config/sparc/linux64.h +++ b/gcc/config/sparc/linux64.h @@ -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)"