diff options
author | Jozef Lawrynowicz <jozef.l@mittosystems.com> | 2020-11-12 19:10:18 +0000 |
---|---|---|
committer | Jozef Lawrynowicz <jozef.l@mittosystems.com> | 2020-11-12 19:27:04 +0000 |
commit | 1de037a0c526a3e034ca11020cf4dd89785487c3 (patch) | |
tree | 36d8a900ad577098b63fb6898ac86723cfc6f964 /gas/config | |
parent | 10c19fadfd45da5262d2f8b9624be71c274ff15d (diff) | |
download | gdb-1de037a0c526a3e034ca11020cf4dd89785487c3.zip gdb-1de037a0c526a3e034ca11020cf4dd89785487c3.tar.gz gdb-1de037a0c526a3e034ca11020cf4dd89785487c3.tar.bz2 |
MSP430: gas: Ignore -md option required for GCC backward compatibility
The redundant -md option was removed in e4ae357fe8, but it is required
for backwards compatibility with GCC 10, which passes it to the
assembler implicitly in certain situations.
It is now silently ignored.
gas/ChangeLog:
* config/tc-msp430.c (OPTION_MOVE_DATA): Define.
(md_parse_option): Ignore OPTION_MOVE_DATA.
(md_longopts): Handle -md option.
* testsuite/gas/msp430/msp430.exp: Run new test.
* testsuite/gas/msp430/empty.s: New test.
* testsuite/gas/msp430/ignore-md.d: New test.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-msp430.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gas/config/tc-msp430.c b/gas/config/tc-msp430.c index 6d18032..322ad7c 100644 --- a/gas/config/tc-msp430.c +++ b/gas/config/tc-msp430.c @@ -690,6 +690,9 @@ static bfd_boolean upper_data_region_in_use = FALSE; /* The default is to use the lower region only. */ static bfd_boolean lower_data_region_only = TRUE; +/* Deprecated option, silently ignore it for compatibility with GCC <= 10. */ +#define OPTION_MOVE_DATA 'd' + enum { OPTION_SILICON_ERRATA = OPTION_MD_BASE, @@ -1465,6 +1468,10 @@ md_parse_option (int c, const char * arg) do_unknown_interrupt_nops = FALSE; return 1; + case OPTION_MOVE_DATA: + /* Silently ignored. */ + return 1; + case OPTION_DATA_REGION: if (strcmp (arg, "upper") == 0 || strcmp (arg, "either") == 0) @@ -1750,6 +1757,7 @@ struct option md_longopts[] = {"my", no_argument, NULL, OPTION_WARN_INTR_NOPS}, {"mu", no_argument, NULL, OPTION_UNKNOWN_INTR_NOPS}, {"mU", no_argument, NULL, OPTION_NO_UNKNOWN_INTR_NOPS}, + {"md", no_argument, NULL, OPTION_MOVE_DATA}, {"mdata-region", required_argument, NULL, OPTION_DATA_REGION}, {NULL, no_argument, NULL, 0} }; |