aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-06-18 07:25:18 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1996-06-18 07:25:18 -0400
commitd6c46142185a09abfa7fef9bdcb6fe00c5c655ab (patch)
treeb06f1659254bf2e9b7878a88afb04327f08ca609 /gcc
parent9d699bf813b9b9f192d39a9d217609ebfb6257fe (diff)
downloadgcc-d6c46142185a09abfa7fef9bdcb6fe00c5c655ab.zip
gcc-d6c46142185a09abfa7fef9bdcb6fe00c5c655ab.tar.gz
gcc-d6c46142185a09abfa7fef9bdcb6fe00c5c655ab.tar.bz2
(override_options): Treat -o32 as -32 and -n64 same as -64.
From-SVN: r12299
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/mips/mips.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 64c6ce7..736e640 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -201,7 +201,7 @@ enum mips_abi_type mips_abi;
/* Strings to hold which cpu and instruction set architecture to use. */
char *mips_cpu_string; /* for -mcpu=<xxx> */
char *mips_isa_string; /* for -mips{1,2,3,4} */
-char *mips_abi_string; /* for -mabi={32,n32,64} */
+char *mips_abi_string; /* for -mabi={o32,32,n32,n64,64} */
/* If TRUE, we split addresses into their high and low parts in the RTL. */
int mips_split_addresses;
@@ -3300,11 +3300,13 @@ override_options ()
/* Get the ABI to use. Currently this code is only used for Irix 6. */
if (mips_abi_string == (char *) 0)
mips_abi = MIPS_ABI_DEFAULT;
- else if (! strcmp (mips_abi_string, "32"))
+ else if (! strcmp (mips_abi_string, "32")
+ || ! strcmp (mips_abi_string, "o32"))
mips_abi = ABI_32;
else if (! strcmp (mips_abi_string, "n32"))
mips_abi = ABI_N32;
- else if (! strcmp (mips_abi_string, "64"))
+ else if (! strcmp (mips_abi_string, "64")
+ || ! strcmp (mips_abi_string, "n64"))
mips_abi = ABI_64;
else
error ("bad value (%s) for -mabi= switch", mips_abi_string);