aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/mips/linux64.h
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2003-03-11 23:31:01 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2003-03-11 23:31:01 +0000
commitc0a579df905166cfe926b8d96c63a3bf63d80962 (patch)
tree262dd063956234d7e0615fcaee3ea0d673c96ea0 /gcc/config/mips/linux64.h
parent0c33daffa33ccd49807e44865b6d96d79c74cfe8 (diff)
downloadgcc-c0a579df905166cfe926b8d96c63a3bf63d80962.zip
gcc-c0a579df905166cfe926b8d96c63a3bf63d80962.tar.gz
gcc-c0a579df905166cfe926b8d96c63a3bf63d80962.tar.bz2
linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
* 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. From-SVN: r64201
Diffstat (limited to 'gcc/config/mips/linux64.h')
-rw-r--r--gcc/config/mips/linux64.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/gcc/config/mips/linux64.h b/gcc/config/mips/linux64.h
index ef30146..db1d4e0 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 "\