diff options
author | Maciej W. Rozycki <macro@ds2.pg.gda.pl> | 2000-08-21 16:35:29 +0200 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2000-08-21 08:35:29 -0600 |
commit | 120dc6cd25a52db6221ea7ccf1a07acea21d3a02 (patch) | |
tree | 336c75800513c642db2747ad986c8e2307345fc5 | |
parent | 93e2382f2cf48b874a5f2ff6359f134878498b69 (diff) | |
download | gcc-120dc6cd25a52db6221ea7ccf1a07acea21d3a02.zip gcc-120dc6cd25a52db6221ea7ccf1a07acea21d3a02.tar.gz gcc-120dc6cd25a52db6221ea7ccf1a07acea21d3a02.tar.bz2 |
linux.h (LINK_SPEC): Use %(endian_spec).
* mips/linux.h (LINK_SPEC): Use %(endian_spec).
* mips/mips.h: Change LINKER_ENDIAN_SPEC to ENDIAN_SPEC
and linker_endian_spec to endian_spec.
(ENDIAN_SPEC): Add %{EB} and %{EL}.
(LINK_SPEC): Remove %{EB} and %{EL}.
(ASM_SPEC): Likewise. Use %(endian_spec).
From-SVN: r35844
-rw-r--r-- | gcc/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/config/mips/linux.h | 4 | ||||
-rw-r--r-- | gcc/config/mips/mips.h | 16 |
3 files changed, 21 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5f289b4..2ef3cea 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2000-08-18 Maciej W. Rozycki <macro@ds2.pg.gda.pl> + + * mips/linux.h (LINK_SPEC): Use %(endian_spec). + + * mips/mips.h: Change LINKER_ENDIAN_SPEC to ENDIAN_SPEC + and linker_endian_spec to endian_spec. + (ENDIAN_SPEC): Add %{EB} and %{EL}. + (LINK_SPEC): Remove %{EB} and %{EL}. + (ASM_SPEC): Likewise. Use %(endian_spec). + 2000-08-21 Joseph S. Myers <jsm28@cam.ac.uk> * c-tree.h (flag_hosted): Move declaration from here... diff --git a/gcc/config/mips/linux.h b/gcc/config/mips/linux.h index da2f567..32b7685 100644 --- a/gcc/config/mips/linux.h +++ b/gcc/config/mips/linux.h @@ -154,7 +154,9 @@ Boston, MA 02111-1307, USA. */ /* Borrowed from sparc/linux.h */ #undef LINK_SPEC -#define LINK_SPEC "%{shared:-shared} \ +#define LINK_SPEC \ + "%(endian_spec) \ + %{shared:-shared} \ %{!shared: \ %{!ibcs: \ %{!static: \ diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index 06777ed..531af17 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -524,11 +524,11 @@ extern void sbss_section PARAMS ((void)); linker will default to using big-endian output files. The OUTPUT_FORMAT line must be in the linker script, otherwise -EB/-EL will not work. */ -#ifndef LINKER_ENDIAN_SPEC +#ifndef ENDIAN_SPEC #if TARGET_ENDIAN_DEFAULT == 0 -#define LINKER_ENDIAN_SPEC "%{!EB:%{!meb:-EL}}" +#define ENDIAN_SPEC "%{!EB:%{!meb:-EL}} %{EL} %{EB}" #else -#define LINKER_ENDIAN_SPEC "%{!EL:%{!mel:-EB}}" +#define ENDIAN_SPEC "%{!EL:%{!mel:-EB}} %{EB} %{EL}" #endif #endif @@ -826,7 +826,7 @@ while (0) /* ASM_SPEC is the set of arguments to pass to the assembler. */ #define ASM_SPEC "\ -%{!membedded-pic:%{G*}} %{EB} %{EL} %{mips1} %{mips2} %{mips3} %{mips4} \ +%{!membedded-pic:%{G*}} %(endian_spec) %{mips1} %{mips2} %{mips3} %{mips4} \ %{mips16:%{!mno-mips16:-mips16}} %{mno-mips16:-no-mips16} \ %(subtarget_asm_optimizing_spec) \ %(subtarget_asm_debugging_spec) \ @@ -881,9 +881,9 @@ while (0) #ifndef LINK_SPEC #define LINK_SPEC "\ -%{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} %{mips4} \ -%{bestGnum} %{shared} %{non_shared} \ -%(linker_endian_spec)" +%(endian_spec) \ +%{G*} %{mips1} %{mips2} %{mips3} %{mips4} \ +%{bestGnum} %{shared} %{non_shared}" #endif /* LINK_SPEC defined */ /* Specs for the compiler proper */ @@ -991,7 +991,7 @@ while (0) { "subtarget_asm_optimizing_spec", SUBTARGET_ASM_OPTIMIZING_SPEC }, \ { "subtarget_asm_debugging_spec", SUBTARGET_ASM_DEBUGGING_SPEC }, \ { "subtarget_asm_spec", SUBTARGET_ASM_SPEC }, \ - { "linker_endian_spec", LINKER_ENDIAN_SPEC }, \ + { "endian_spec", ENDIAN_SPEC }, \ SUBTARGET_EXTRA_SPECS #ifndef SUBTARGET_EXTRA_SPECS |