summaryrefslogtreecommitdiff
path: root/gcc/config/mips/mips.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/mips/mips.h')
-rw-r--r--gcc/config/mips/mips.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h
index 1de2e25564d..e50bc8a171d 100644
--- a/gcc/config/mips/mips.h
+++ b/gcc/config/mips/mips.h
@@ -77,21 +77,20 @@ enum processor_type {
/* Recast the cpu class to be the cpu attribute. */
#define mips_cpu_attr ((enum attr_cpu)mips_cpu)
-/* Which ABI to use. This is only used by the Irix 6 port currently. */
+/* Which ABI to use. These are constants because abi64.h must check their
+ value at preprocessing time. */
-enum mips_abi_type {
- ABI_32,
- ABI_N32,
- ABI_64,
- ABI_EABI
-};
+#define ABI_32 0
+#define ABI_N32 1
+#define ABI_64 2
+#define ABI_EABI 3
#ifndef MIPS_ABI_DEFAULT
/* We define this away so that there is no extra runtime cost if the target
doesn't support multiple ABIs. */
#define mips_abi ABI_32
#else
-extern enum mips_abi_type mips_abi;
+extern int mips_abi;
#endif
/* Whether to emit abicalls code sequences or not. */