diff options
author | Alan Modra <amodra@gmail.com> | 2022-07-07 21:41:17 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-07-09 21:00:09 +0930 |
commit | d3be5dab558ab91789800a03fc2c1dc3c529eaf5 (patch) | |
tree | edf29f13752e5285589f10ce89a26d6740c760ea /gas/testsuite | |
parent | b95830931fc30c85bd3ca3d00a8578e03c39ba7e (diff) | |
download | gdb-d3be5dab558ab91789800a03fc2c1dc3c529eaf5.zip gdb-d3be5dab558ab91789800a03fc2c1dc3c529eaf5.tar.gz gdb-d3be5dab558ab91789800a03fc2c1dc3c529eaf5.tar.bz2 |
gas: arm -mwarn-syms duplicates
arm gas is only supposed to warn once per symbol for -mwarn-syms, but
doesn't because the str_hash_find added with commit 629310abec88
always returns NULL. That's so because the str_hash_insert inserts a
NULL value for the key,value pair. Let str_hash_insert do the job
instead.
* config/tc-arm.c (arm_tc_equal_in_insn): Correct already_warned
logic.
* testsuite/gas/arm/pr18347.s: Modify to generate duplicate
warning without this patch.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/gas/arm/pr18347.s | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gas/testsuite/gas/arm/pr18347.s b/gas/testsuite/gas/arm/pr18347.s index 591d69b..64a16cb 100644 --- a/gas/testsuite/gas/arm/pr18347.s +++ b/gas/testsuite/gas/arm/pr18347.s @@ -1,5 +1,6 @@ MOV r1, r0 LDR =garbage // no destination register + LDR =garbage // and it should only warn once MOV r2, r3 // The warning should only be triggered by a "foo = bar" |