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/testsuite | |
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/testsuite')
-rw-r--r-- | gas/testsuite/gas/msp430/empty.s | 4 | ||||
-rw-r--r-- | gas/testsuite/gas/msp430/ignore-md.d | 8 | ||||
-rw-r--r-- | gas/testsuite/gas/msp430/msp430.exp | 1 |
3 files changed, 13 insertions, 0 deletions
diff --git a/gas/testsuite/gas/msp430/empty.s b/gas/testsuite/gas/msp430/empty.s new file mode 100644 index 0000000..910559d --- /dev/null +++ b/gas/testsuite/gas/msp430/empty.s @@ -0,0 +1,4 @@ +.text +.global foo +foo: +.word 0 diff --git a/gas/testsuite/gas/msp430/ignore-md.d b/gas/testsuite/gas/msp430/ignore-md.d new file mode 100644 index 0000000..2e55f22 --- /dev/null +++ b/gas/testsuite/gas/msp430/ignore-md.d @@ -0,0 +1,8 @@ +#name: Silently Ignore -md Option +#source: empty.s +#as: -md --fatal-warnings +#DUMPPROG: nm + +#... +.*foo.* +#pass diff --git a/gas/testsuite/gas/msp430/msp430.exp b/gas/testsuite/gas/msp430/msp430.exp index 624867f..ae9499c 100644 --- a/gas/testsuite/gas/msp430/msp430.exp +++ b/gas/testsuite/gas/msp430/msp430.exp @@ -53,4 +53,5 @@ if [expr [istarget "msp430-*-*"]] then { run_dump_test "attr-430x-large-any-bad" run_dump_test "attr-430x-large-any-good" run_dump_test "reloc-lo-430x" + run_dump_test "ignore-md" } |