summaryrefslogtreecommitdiff
path: root/gcc/config/mips/openbsd.h
diff options
context:
space:
mode:
authorechristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-11 07:26:38 +0000
committerechristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-11 07:26:38 +0000
commitfa2b69907e1caffe4dbd2d2837ebc3467ead18d7 (patch)
tree2ea040c9b17cac66a710dc8a6cb3d1dc506ef59c /gcc/config/mips/openbsd.h
parentc5e5b3cc40d45bb6c0945823f8bad7567c6207b7 (diff)
downloadgcc-fa2b69907e1caffe4dbd2d2837ebc3467ead18d7.tar.gz
2002-06-11 Eric Christopher <echristo@redhat.com>
* doc/tm.texi (Run-time Target): Add comment about flag_iso and strict ANSI. * config/mips/ecoff.h (CPP_PREDEFINES): Remove. * config/mips/ecoffl.h: Ditto. * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove. (CPP_PREDEFINES): Ditto. * config/mips/elfl64.h: Ditto. * config/mips/elfl.h: Ditto. * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0 out until irix header consolidation. * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace with SUBTARGET_OS_CPP_BUILTINS. * config/mips/iris6.h: Ditto. (CPLUSPLUS_CPP_SPEC): Remove. * config/mips/linux.h: Ditto. * config/mips/netbsd.h: Ditto. * config/mips/openbsd.h: Ditto. * config/mips/rtems.h: Ditto. * config/mips/rtems64.h: Ditto. * config/mips/sni-svr4.h: Ditto. * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4, ISA_MIPS32, ISA_MIPS64): New defines. (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS, ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB, ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use. (TARGET_CPU_CPP_BUILTINS): Define. (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove. * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64. (movdicc): Remove check for ISA_MIPS32. (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle, sunordered_df, sunordered_sf, sordered_df, sordered_sf, sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df, sunge_sf, sunle_df, sunle_sf): New patterns. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54493 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/mips/openbsd.h')
-rw-r--r--gcc/config/mips/openbsd.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/gcc/config/mips/openbsd.h b/gcc/config/mips/openbsd.h
index 6ed34403e9e..02a8f224e57 100644
--- a/gcc/config/mips/openbsd.h
+++ b/gcc/config/mips/openbsd.h
@@ -53,16 +53,17 @@ Boston, MA 02111-1307, USA. */
support. */
#undef SET_ASM_OP
-/* Run-time target specifications. */
-#if TARGET_ENDIAN_DEFAULT != 0
-#define CPP_PREDEFINES "-D__SYSTYPE_BSD__ -D__NO_LEADING_UNDERSCORES__ \
--D__GP_SUPPORT__ -D__MIPSEB__ -D__unix__ -D__OpenBSD__ -D__mips__ \
--Asystem=unix -Asystem=OpenBSD -Acpu=mips -Amachine=mips -Aendian=big"
-#else
-#define CPP_PREDEFINES "-D__SYSTYPE_BSD__ -D__NO_LEADING_UNDERSCORES__ \
--D__GP_SUPPORT__ -D__MIPSEL__ -D__unix__ -D__OpenBSD__ -D__mips__ \
--Asystem=unix -Asystem=OpenBSD -Acpu=mips -Amachine=mips -Aendian=little"
-#endif
+#define TARGET_OS_CPP_BUILTINS() \
+ do { \
+ builtin_define ("__unix__"); \
+ builtin_define ("__SYSTYPE_BSD__"); \
+ builtin_define ("__NO_LEADING_UNDERSCORES__"); \
+ builtin_define ("__GP_SUPPORT__"); \
+ builtin_define ("__OpenBSD__"); \
+ builtin_assert ("system=unix"); \
+ builtin_assert ("system=OpenBSD"); \
+ builtin_assert ("machine=mips"); \
+} while (0)
/* Layout of source language data types. */