aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-09-20 20:16:24 +0000
committerIan Lance Taylor <ian@airs.com>1994-09-20 20:16:24 +0000
commite8d4d4758bc25849cc0613a27f31d5ff94b1fd9f (patch)
tree7509ef5a31d22bfb60bd78e968704bc770eccfc7 /gas
parentf90a2cdcb00d4b9b0ce048619208dccb4309de56 (diff)
downloadgdb-e8d4d4758bc25849cc0613a27f31d5ff94b1fd9f.zip
gdb-e8d4d4758bc25849cc0613a27f31d5ff94b1fd9f.tar.gz
gdb-e8d4d4758bc25849cc0613a27f31d5ff94b1fd9f.tar.bz2
* config/tc-mips.c (md_shortopts): Remove E.
(md_longopts): Add EB and EL. (md_parse_option): Handle -EB and -EL as separate options, rather than as a single -E option with an argument.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog7
-rw-r--r--gas/config/tc-mips.c50
2 files changed, 30 insertions, 27 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index aaa71e1..7e277e8 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,10 @@
+Tue Sep 20 16:13:18 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
+
+ * config/tc-mips.c (md_shortopts): Remove E.
+ (md_longopts): Add EB and EL.
+ (md_parse_option): Handle -EB and -EL as separate options, rather
+ than as a single -E option with an argument.
+
Mon Sep 19 12:42:05 1994 Jeff Law (law@snake.cs.utah.edu)
* config/tc-hppa.c (hppa_fix_adjustable): Reject reductions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 4033c4d..87ab780 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -4968,9 +4968,9 @@ md_number_to_chars (buf, val, n)
}
#ifdef GPOPT
-CONST char *md_shortopts = "E:O::g::G:";
+CONST char *md_shortopts = "O::g::G:";
#else
-CONST char *md_shortopts = "E:O::g::";
+CONST char *md_shortopts = "O::g::";
#endif
struct option md_longopts[] = {
#define OPTION_MIPS1 (OPTION_MD_BASE + 1)
@@ -4990,6 +4990,10 @@ struct option md_longopts[] = {
#define OPTION_BREAK (OPTION_MD_BASE + 9)
{"break", no_argument, NULL, OPTION_BREAK},
{"no-trap", no_argument, NULL, OPTION_BREAK},
+#define OPTION_EB (OPTION_MD_BASE + 10)
+ {"EB", no_argument, NULL, OPTION_EB},
+#define OPTION_EL (OPTION_MD_BASE + 11)
+ {"EL", no_argument, NULL, OPTION_EL},
#ifdef OBJ_ELF
#define OPTION_CALL_SHARED (OPTION_MD_BASE + 6)
@@ -5018,38 +5022,30 @@ md_parse_option (c, arg)
mips_trap = 0;
break;
- case 'E':
- if (arg[1] == 'B')
- byte_order = BIG_ENDIAN;
- else if (arg[1] == 'L')
- byte_order = LITTLE_ENDIAN;
- else
- {
- as_bad("invalid endianness -E%c", arg[1]);
- return 0;
- }
-
+ case OPTION_EB:
+ byte_order = BIG_ENDIAN;
#ifdef OBJ_AOUT
- if (arg[1] == 'B')
- mips_target_format = "a.out-mips-big";
- else
- mips_target_format = "a.out-mips-little";
+ mips_target_format = "a.out-mips-big";
#endif
#ifdef OBJ_ECOFF
- if (arg[1] == 'B')
- mips_target_format = "ecoff-bigmips";
- else
- mips_target_format = "ecoff-littlemips";
+ mips_target_format = "ecoff-bigmips";
#endif
#ifdef OBJ_ELF
- if (arg[1] == 'B')
- mips_target_format = "elf32-bigmips";
- else
- mips_target_format = "elf32-littlemips";
+ mips_target_format = "elf32-bigmips";
#endif
+ break;
- /* FIXME: This breaks -L -EL. */
- flag_keep_locals = 0;
+ case OPTION_EL:
+ byte_order = LITTLE_ENDIAN;
+#ifdef OBJ_AOUT
+ mips_target_format = "a.out-mips-little";
+#endif
+#ifdef OBJ_ECOFF
+ mips_target_format = "ecoff-littlemips";
+#endif
+#ifdef OBJ_ELF
+ mips_target_format = "elf32-littlemips";
+#endif
break;
case 'O':