OSDN Git Service

* config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Mar 2003 23:31:01 +0000 (23:31 +0000)
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Mar 2003 23:31:01 +0000 (23:31 +0000)
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

gcc/ChangeLog
gcc/config/mips/linux64.h

index 30263cb..87214e3 100644 (file)
@@ -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.
index ef30146..db1d4e0 100644 (file)
@@ -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 "\