Fix the AVR assembler so that it will correctly issue warnings about skipped instruct...
authorNick Clifton <nickc@redhat.com>
Thu, 19 Oct 2017 15:21:51 +0000 (16:21 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 19 Oct 2017 15:21:51 +0000 (16:21 +0100)
commit95e42ad4425f0ab0ebfb90035a891be576f9fca4
tree4f9234a3fcdc5a4c40c49dc8e50a27d09b7edc8c
parenta75868f50ba72e9aa906702ae038fa29feda7743
Fix the AVR assembler so that it will correctly issue warnings about skipped instructions even if subsections are used.

PR 21621
* config/tc-avr.h (struct avr_frag_data): Add prev_opcode field.
(TC_FRAG_INIT): Define.
(avr_frag_init): Add prototype.
* config/tc-avr.c (avr_frag_init): New function.
(avr_operands): Replace static local 'prev' variable with
prev_opcode field in current frag.
* testsuite/gas/avr/pr21621.s: New test source file.
* testsuite/gas/avr/pr21621.d: New test driver file.
* testsuite/gas/avr/pr21621.s: New test error output file.
gas/ChangeLog
gas/config/tc-avr.c
gas/config/tc-avr.h
gas/testsuite/gas/avr/pr21621.d [new file with mode: 0644]
gas/testsuite/gas/avr/pr21621.l [new file with mode: 0644]
gas/testsuite/gas/avr/pr21621.s [new file with mode: 0644]