aboutsummaryrefslogtreecommitdiff
path: root/gas/doc/c-arm.texi
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-04-30 11:17:55 +0100
committerNick Clifton <nickc@redhat.com>2015-04-30 11:17:55 +0100
commit8b2d793ce5ee03336d6c1d1f30b8d296cbe443de (patch)
tree7583cf0babfe49436be56b4759c7f703bfd59ec3 /gas/doc/c-arm.texi
parent7ce98c164ed42df085c1b3e08c5261e02320149b (diff)
downloadbinutils-8b2d793ce5ee03336d6c1d1f30b8d296cbe443de.zip
binutils-8b2d793ce5ee03336d6c1d1f30b8d296cbe443de.tar.gz
binutils-8b2d793ce5ee03336d6c1d1f30b8d296cbe443de.tar.bz2
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.
Diffstat (limited to 'gas/doc/c-arm.texi')
-rw-r--r--gas/doc/c-arm.texi6
1 files changed, 6 insertions, 0 deletions
diff --git a/gas/doc/c-arm.texi b/gas/doc/c-arm.texi
index f07aa62..d31ba02 100644
--- a/gas/doc/c-arm.texi
+++ b/gas/doc/c-arm.texi
@@ -394,6 +394,12 @@ features. The default is to warn.
@item -mccs
Turns on CodeComposer Studio assembly syntax compatibility mode.
+@cindex @code{-mwarn-syms} command line option, ARM
+@item -mwarn-syms
+@itemx -mno-warn-syms
+Enable or disable warnings about symbols that match the names of ARM
+instructions. The default is to warn.
+
@end table