mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-31 14:04:12 +00:00
* 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.
This commit is contained in:
parent
f90a2cdcb0
commit
e8d4d4758b
@ -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)
|
Mon Sep 19 12:42:05 1994 Jeff Law (law@snake.cs.utah.edu)
|
||||||
|
|
||||||
* config/tc-hppa.c (hppa_fix_adjustable): Reject reductions
|
* config/tc-hppa.c (hppa_fix_adjustable): Reject reductions
|
||||||
|
@ -4968,9 +4968,9 @@ md_number_to_chars (buf, val, n)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef GPOPT
|
#ifdef GPOPT
|
||||||
CONST char *md_shortopts = "E:O::g::G:";
|
CONST char *md_shortopts = "O::g::G:";
|
||||||
#else
|
#else
|
||||||
CONST char *md_shortopts = "E:O::g::";
|
CONST char *md_shortopts = "O::g::";
|
||||||
#endif
|
#endif
|
||||||
struct option md_longopts[] = {
|
struct option md_longopts[] = {
|
||||||
#define OPTION_MIPS1 (OPTION_MD_BASE + 1)
|
#define OPTION_MIPS1 (OPTION_MD_BASE + 1)
|
||||||
@ -4990,6 +4990,10 @@ struct option md_longopts[] = {
|
|||||||
#define OPTION_BREAK (OPTION_MD_BASE + 9)
|
#define OPTION_BREAK (OPTION_MD_BASE + 9)
|
||||||
{"break", no_argument, NULL, OPTION_BREAK},
|
{"break", no_argument, NULL, OPTION_BREAK},
|
||||||
{"no-trap", 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
|
#ifdef OBJ_ELF
|
||||||
#define OPTION_CALL_SHARED (OPTION_MD_BASE + 6)
|
#define OPTION_CALL_SHARED (OPTION_MD_BASE + 6)
|
||||||
@ -5018,38 +5022,30 @@ md_parse_option (c, arg)
|
|||||||
mips_trap = 0;
|
mips_trap = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'E':
|
case OPTION_EB:
|
||||||
if (arg[1] == 'B')
|
byte_order = BIG_ENDIAN;
|
||||||
byte_order = BIG_ENDIAN;
|
|
||||||
else if (arg[1] == 'L')
|
|
||||||
byte_order = LITTLE_ENDIAN;
|
|
||||||
else
|
|
||||||
{
|
|
||||||
as_bad("invalid endianness -E%c", arg[1]);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef OBJ_AOUT
|
#ifdef OBJ_AOUT
|
||||||
if (arg[1] == 'B')
|
mips_target_format = "a.out-mips-big";
|
||||||
mips_target_format = "a.out-mips-big";
|
|
||||||
else
|
|
||||||
mips_target_format = "a.out-mips-little";
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef OBJ_ECOFF
|
#ifdef OBJ_ECOFF
|
||||||
if (arg[1] == 'B')
|
mips_target_format = "ecoff-bigmips";
|
||||||
mips_target_format = "ecoff-bigmips";
|
|
||||||
else
|
|
||||||
mips_target_format = "ecoff-littlemips";
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef OBJ_ELF
|
#ifdef OBJ_ELF
|
||||||
if (arg[1] == 'B')
|
mips_target_format = "elf32-bigmips";
|
||||||
mips_target_format = "elf32-bigmips";
|
|
||||||
else
|
|
||||||
mips_target_format = "elf32-littlemips";
|
|
||||||
#endif
|
#endif
|
||||||
|
break;
|
||||||
|
|
||||||
/* FIXME: This breaks -L -EL. */
|
case OPTION_EL:
|
||||||
flag_keep_locals = 0;
|
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;
|
break;
|
||||||
|
|
||||||
case 'O':
|
case 'O':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user