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
This commit is contained in:
Nathan Sidwell 2007-05-22 06:55:27 +00:00 committed by Nathan Sidwell
parent c076e75f30
commit bebb3a98ce
4 changed files with 15 additions and 6 deletions

View File

@ -1,3 +1,11 @@
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

View File

@ -25,8 +25,8 @@ Boston, MA 02110-1301, USA. */
/* 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 */

View File

@ -18,6 +18,3 @@ along with GCC; see the file COPYING. If not, write to
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}"

View File

@ -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