aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Ellcey <sellcey@mips.com>2012-05-23 18:48:24 +0000
committerJoseph Myers <joseph@codesourcery.com>2012-05-23 18:48:24 +0000
commit46bd63802a11d40bc0201091c203a28935e76aa8 (patch)
treea8f966bc3893238a06a3e24bbe787b425f38c145
parentd44f3a3855f710a968006c95bc10e38a7b968fb2 (diff)
downloadglibc-46bd63802a11d40bc0201091c203a28935e76aa8.tar.xz
glibc-46bd63802a11d40bc0201091c203a28935e76aa8.zip
Use -D options in building MIPS syscall.h.
-rw-r--r--ChangeLog.mips7
-rw-r--r--sysdeps/unix/sysv/linux/mips/Makefile7
2 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog.mips b/ChangeLog.mips
index 493514bb99..c341c74b4e 100644
--- a/ChangeLog.mips
+++ b/ChangeLog.mips
@@ -1,3 +1,10 @@
+2012-05-23 Steve Ellcey <sellcey@mips.com>
+
+ * sysdeps/unix/sysv/linux/mips/Makefile
+ (syscall-list-o32-options): Use -D_MIPS_SIM=1.
+ (syscall-list-n32-options): Use -D_MIPS_SIM=2.
+ (syscall-list-n64-options): Use -D_MIPS_SIM=3.
+
2012-05-23 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/mips/bits/mman.h (MADV_DONTDUMP):
diff --git a/sysdeps/unix/sysv/linux/mips/Makefile b/sysdeps/unix/sysv/linux/mips/Makefile
index 41e92581a7..2aaf63c3e3 100644
--- a/sysdeps/unix/sysv/linux/mips/Makefile
+++ b/sysdeps/unix/sysv/linux/mips/Makefile
@@ -7,13 +7,14 @@ sysdep_routines += cachectl cacheflush sysmips _test_and_set
sysdep_headers += sys/cachectl.h sys/sysmips.h sys/tas.h
+# _MIPS_SIM_ABI32 == 1, _MIPS_SIM_ABIN32 == 2, _MIPS_SIM_ABI64 == 3
syscall-list-variants := o32 n32 n64
syscall-list-includes := sgidefs.h
-syscall-list-o32-options := -mabi=32
+syscall-list-o32-options := -D_MIPS_SIM=1
syscall-list-o32-condition := _MIPS_SIM == _MIPS_SIM_ABI32
-syscall-list-n32-options := -mabi=n32
+syscall-list-n32-options := -D_MIPS_SIM=2
syscall-list-n32-condition := _MIPS_SIM == _MIPS_SIM_ABIN32
-syscall-list-n64-options := -mabi=64
+syscall-list-n64-options := -D_MIPS_SIM=3
syscall-list-n64-condition := _MIPS_SIM == _MIPS_SIM_ABI64
endif