diff options
author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-11 23:31:01 +0000 |
---|---|---|
committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-11 23:31:01 +0000 |
commit | 71ed59f56e738c8fa11de17cd501bbc08d8f5049 (patch) | |
tree | 262dd063956234d7e0615fcaee3ea0d673c96ea0 /gcc | |
parent | 05c621bf95748fddc1eb4c395a0ad7f3027c6b52 (diff) | |
download | ppe42-gcc-71ed59f56e738c8fa11de17cd501bbc08d8f5049.tar.gz ppe42-gcc-71ed59f56e738c8fa11de17cd501bbc08d8f5049.zip |
* config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
Default to -mips3 on -mabi=64. Don't add -mips* flag if -march is
specified.
(SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
DRIVER_SELF_SPECS.
(LINK_SPEC): Let endian options affect the linker emulation name.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64201 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/config/mips/linux64.h | 14 |
2 files changed, 17 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 30263cb154d..87214e308da 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +Tue Mar 11 20:20:14 2003 Alexandre Oliva <aoliva@redhat.com> + + * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec. + Default to -mips3 on -mabi=64. Don't add -mips* flag if -march is + specified. + (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by + DRIVER_SELF_SPECS. + (LINK_SPEC): Let endian options affect the linker emulation name. + Tue Mar 11 22:35:39 2003 J"orn Rennecke <joern.rennecke@superh.com> * sh.md (reload_inqi): Fix mode for source in second set. diff --git a/gcc/config/mips/linux64.h b/gcc/config/mips/linux64.h index ef30146c988..db1d4e0cc40 100644 --- a/gcc/config/mips/linux64.h +++ b/gcc/config/mips/linux64.h @@ -25,12 +25,15 @@ Boston, MA 02111-1307, USA. */ time, we also need t-linux64 to get the build-time specs in line with the setting in config.gcc. */ #define DRIVER_DEFAULT_ABI_SELF_SPEC "%{!mabi=*:-mabi=n32}" +#undef SUBTARGET_EXTRA_SPECS #define SUBTARGET_EXTRA_SPECS \ { "driver_default_abi_self_spec", DRIVER_DEFAULT_ABI_SELF_SPEC }, #define DRIVER_SELF_SPECS \ +"%{!EB:%{!EL:%(endian_spec)}}", \ "%{mabi-fake-default:%{!mabi=*:-mabi=32}}", \ "%(driver_default_abi_self_spec)", \ -"%{!mips*:%{mabi=32:-mips1}%{mabi=n32:-mips3}%{mabi=64:-mips4}}" +"%{!mips*:%{!march=*:%{mabi=32:-mips1}%{mabi=n32|mabi=64:-mips3}}}" + #undef SUBTARGET_TARGET_SWITCHES #define SUBTARGET_TARGET_SWITCHES \ { "abi-fake-default", 0, N_("Same as -mabi=32, just trickier") }, @@ -39,8 +42,7 @@ Boston, MA 02111-1307, USA. */ #define SUBTARGET_ASM_SPEC "\ %{!fno-PIC:%{!fno-pic:-KPIC}} \ %{fno-PIC:-non_shared} %{fno-pic:-non_shared} \ -%{mabi=64:-64} %{mabi=n32:-n32} \ -%{!mips*: %{mabi=n32|mabi=32:-mips3} %{mabi=64:-mips4}}" +%{mabi=64:-64} %{mabi=n32:-n32}" #undef LIB_SPEC #define LIB_SPEC "\ @@ -65,9 +67,9 @@ Boston, MA 02111-1307, USA. */ %{mabi=64: -dynamic-linker /lib64/ld.so.1} \ %{mabi=32: -dynamic-linker /lib/ld.so.1}}} \ %{static:-static}}} \ -%{mabi=n32: -melf32btsmipn32} \ -%{mabi=64: -melf64btsmip} \ -%{mabi=32: -melf32btsmip}" +%{mabi=n32:-melf32%{EB:b}%{EL:l}tsmipn32} \ +%{mabi=64:-melf64%{EB:b}%{EL:l}tsmip} \ +%{mabi=32:-melf32%{EB:b}%{EL:l}tsmip}" #undef STARTFILE_PREFIX_SPEC #define STARTFILE_PREFIX_SPEC "\ |