summaryrefslogtreecommitdiff
path: root/gcc/config/m68k/m68k.h
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2007-05-22 06:55:27 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2007-05-22 06:55:27 +0000
commitbebb3a98ce0bc52e797e70e16cb1796dfd40998c (patch)
tree7e58274f27fe1fab5b2663b402df612ae0e375d2 /gcc/config/m68k/m68k.h
parentc076e75f302976d9c9befa9951242b70f0604ace (diff)
downloadgcc-bebb3a98ce0bc52e797e70e16cb1796dfd40998c.tar.gz
linux.h (ASM_SPEC): Add asm_pcrel_spec.
* config/m68k/linux.h (ASM_SPEC): Add asm_pcrel_spec. * config/m68k/m68k-none.h (ASM_SPEC): Don't override here. * config/m68k/m68k.h (ASM_PCREL_SPEC): New. (ASM_SPEC): Add asm_pcrel_spec. (EXTRA_SPECS): Add asm_pcrel_spec. From-SVN: r124937
Diffstat (limited to 'gcc/config/m68k/m68k.h')
-rw-r--r--gcc/config/m68k/m68k.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/config/m68k/m68k.h b/gcc/config/m68k/m68k.h
index 1b19b4c8095..6591380b2d2 100644
--- a/gcc/config/m68k/m68k.h
+++ b/gcc/config/m68k/m68k.h
@@ -48,11 +48,15 @@ Boston, MA 02110-1301, USA. */
%{m68060}%{mcpu32}%{m68332}%{m5200}%{m5206e}%{m528x}%{m5307}%{m5407}%{mcfv4e}\
%{mcpu=*:-mcpu=%*}%{march=*:-march=%*}\
"
+#define ASM_PCREL_SPEC "%{fPIC|fpic|mpcrel:--pcrel} \
+ %{msep-data|mid-shared-library:--pcrel} \
+"
-#define ASM_SPEC "%(asm_cpu_spec)"
+#define ASM_SPEC "%(asm_cpu_spec) %(asm_pcrel_spec)"
#define EXTRA_SPECS \
{ "asm_cpu_spec", ASM_CPU_SPEC }, \
+ { "asm_pcrel_spec", ASM_PCREL_SPEC }, \
SUBTARGET_EXTRA_SPECS
#define SUBTARGET_EXTRA_SPECS