* 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
+2007-05-22 Nathan Sidwell <nathan@codesourcery.com>
+
+ * 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.
+
2007-05-21 David Daney <ddaney@avtrex.com>
* doc/install.texi (Building a cross compiler): Add requirements
/* Add %(asm_cpu_spec) to the svr4.h definition of ASM_SPEC. */
#undef ASM_SPEC
-#define ASM_SPEC \
- "%(asm_cpu_spec) %{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*}"
+#define ASM_SPEC "%(asm_cpu_spec) %(asm_pcrel_spec) \
+ %{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*}"
/* for 68k machines this only needs to be TRUE for the 68000 */
the Free Software Foundation, 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA. */
-#undef ASM_SPEC
-#define ASM_SPEC "%(asm_cpu_spec) %{fPIC:--pcrel} %{fpic:--pcrel} \
- %{msep-data:--pcrel} %{mid-shared-library:--pcrel}"
%{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