Use -D options in building MIPS syscall.h.

This commit is contained in:
Steve Ellcey 2012-05-23 18:48:24 +00:00 committed by Joseph Myers
parent d44f3a3855
commit 46bd63802a
2 changed files with 11 additions and 3 deletions

View File

@ -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> 2012-05-23 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/mips/bits/mman.h (MADV_DONTDUMP): * sysdeps/unix/sysv/linux/mips/bits/mman.h (MADV_DONTDUMP):

View File

@ -7,13 +7,14 @@ sysdep_routines += cachectl cacheflush sysmips _test_and_set
sysdep_headers += sys/cachectl.h sys/sysmips.h sys/tas.h 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-variants := o32 n32 n64
syscall-list-includes := sgidefs.h 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-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-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 syscall-list-n64-condition := _MIPS_SIM == _MIPS_SIM_ABI64
endif endif