[ARC] Check if an input asm file is rf16 compliant
authorclaziss <claziss@synopsys.com>
Mon, 6 Aug 2018 13:41:32 +0000 (16:41 +0300)
committerClaudiu Zissulescu <claziss@gmail.com>
Mon, 6 Aug 2018 13:41:32 +0000 (16:41 +0300)
commit63741043bde141c20f0a08dada84ed7bdf333d99
tree9a0e24befeefd79f24b411eb80e54af928934e83
parent6af0448446f9212df4dc62e7618174d5d3f5e43e
[ARC] Check if an input asm file is rf16 compliant

Check if an input asm file is rf16 compliant; if not, and the tag says
otherwise, fix the tag and emit a warning.

gas/
2017-09-20  Claudiu Zissulescu <claziss@synopsys.com>

* config/tc-arc.c (rf16_only): New static variable.
(autodetect_attributes): Check if we are rf16 compliant.
(arc_set_public_attributes): Fix and emit the warning is required.
* testsuite/gas/arc/attr-rf16.d: New file.
* testsuite/gas/arc/attr-rf16.err: Likewise.
* testsuite/gas/arc/attr-rf16.s: Likewise.
gas/ChangeLog
gas/config/tc-arc.c
gas/testsuite/gas/arc/attr-rf16.d [new file with mode: 0644]
gas/testsuite/gas/arc/attr-rf16.err [new file with mode: 0644]
gas/testsuite/gas/arc/attr-rf16.s [new file with mode: 0644]