]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
GAS ARM: Warn if the user creates a symbol with the same name as an instruction.
authorNick Clifton <nickc@redhat.com>
Thu, 30 Apr 2015 10:17:55 +0000 (11:17 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 30 Apr 2015 10:17:55 +0000 (11:17 +0100)
commit8b2d793ce5ee03336d6c1d1f30b8d296cbe443de
tree7583cf0babfe49436be56b4759c7f703bfd59ec3
parent7ce98c164ed42df085c1b3e08c5261e02320149b
GAS ARM: Warn if the user creates a symbol with the same name as an instruction.

PR gas/18347
gas * config/tc-arm.c (md_undefined_symbol): Issue a warning message
(if enabled) when the user creates a symbol with the same name as
an ARM instruction.
(flag_warn_syms): New static variable.
(arm_opts): Add mwarn-syms and mno-warn-syms.
* doc/c-arm.texi (ARM Options): Document the -m[no-]warn-syms
options.

tests * gas/arm/pr18347.s: New file: Test case.
* gas/arm/pr18347.l: New file: Expected assembler output.
* gas/arm/pr18347.d: New file: Test driver.
gas/ChangeLog
gas/config/tc-arm.c
gas/doc/c-arm.texi
gas/testsuite/ChangeLog
gas/testsuite/gas/arm/pr18347.d [new file with mode: 0644]
gas/testsuite/gas/arm/pr18347.l [new file with mode: 0644]
gas/testsuite/gas/arm/pr18347.s [new file with mode: 0644]