diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2018-02-27 14:45:48 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2018-02-27 14:46:03 -0800 |
commit | 8f065d3b4a814b5a69b3f39700fea7034c79c492 (patch) | |
tree | a170e1535a729ac8e30224e1a941fe28f5fff564 /gas/read.c | |
parent | e05cac70d855cd404eae9aeea5fcfb83ce8aabcf (diff) | |
download | gdb-8f065d3b4a814b5a69b3f39700fea7034c79c492.zip gdb-8f065d3b4a814b5a69b3f39700fea7034c79c492.tar.gz gdb-8f065d3b4a814b5a69b3f39700fea7034c79c492.tar.bz2 |
gas: Rename .nop directive to .nops
Since directives of NO_PSEUDO_DOT targets don't have the leading '.'
and "nop" can be a valid instruction, rename .nop directive to .nops
to avoid conflict.
* NEWS: Rename .nop to .nops.
* doc/as.texinfo: Likewise.
* read.c (potable): Add "nops". Remove "nop".
(s_nop): Renamed to ...
(s_nops): This.
* read.h (s_nop): Renamed to ...
(s_nops): This.
* write.c (cvt_frag_to_fill): Rename .nop to .nops.
(md_generate_nops): Likewise.
(relax_segment): Likewise.
* testsuite/gas/i386/nop-1.d: Updated.
* testsuite/gas/i386/nop-1.s: Likewise.
* testsuite/gas/i386/nop-2.d: Likewise.
* testsuite/gas/i386/nop-2.s: Likewise.
* testsuite/gas/i386/nop-3.d: Likewise.
* testsuite/gas/i386/nop-3.s: Likewise.
* testsuite/gas/i386/nop-4.d: Likewise.
* testsuite/gas/i386/nop-4.s: Likewise.
* testsuite/gas/i386/nop-5.d: Likewise.
* testsuite/gas/i386/nop-5.s: Likewise.
* testsuite/gas/i386/nop-6.d: Likewise.
* testsuite/gas/i386/nop-6.s: Likewise.
* testsuite/gas/i386/nop-bad-1.l: Likewise.
* testsuite/gas/i386/nop-bad-1.s: Likewise.
* testsuite/gas/i386/x86-64-nop-1.d: Likewise.
* testsuite/gas/i386/x86-64-nop-2.d: Likewise.
* testsuite/gas/i386/x86-64-nop-3.d: Likewise.
* testsuite/gas/i386/x86-64-nop-4.d: Likewise.
* testsuite/gas/i386/x86-64-nop-5.d: Likewise.
* testsuite/gas/i386/x86-64-nop-6.d: Likewise.
Diffstat (limited to 'gas/read.c')
-rw-r--r-- | gas/read.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -417,6 +417,7 @@ static const pseudo_typeS potable[] = { {"noformat", s_ignore, 0}, {"nolist", listing_list, 0}, /* Turn listing off. */ {"nopage", listing_nopage, 0}, + {"nops", s_nops, 0}, {"octa", cons, 16}, {"offset", s_struct, 0}, {"org", s_org, 0}, @@ -442,7 +443,6 @@ static const pseudo_typeS potable[] = { /* size */ {"space", s_space, 0}, {"skip", s_space, 0}, - {"nop", s_nop, 0}, {"sleb128", s_leb128, 1}, {"spc", s_ignore, 0}, {"stabd", s_stab, 'd'}, @@ -3510,7 +3510,7 @@ s_space (int mult) } void -s_nop (int ignore ATTRIBUTE_UNUSED) +s_nops (int ignore ATTRIBUTE_UNUSED) { expressionS exp; expressionS val; @@ -3556,7 +3556,7 @@ s_nop (int ignore ATTRIBUTE_UNUSED) } } else - as_bad (_("unsupported variable nop control in .nop directive")); + as_bad (_("unsupported variable nop control in .nops directive")); demand_empty_rest_of_line (); } |