Fix Aarch64 bug in warning filtering.
authorTamar Christina <tamar.christina@arm.com>
Tue, 18 Sep 2018 13:36:37 +0000 (14:36 +0100)
committerTamar Christina <tamar.christina@arm.com>
Tue, 18 Sep 2018 13:37:56 +0000 (14:37 +0100)
commitaf81c43b51e17c597c8eb5bfaa02fa7f5f6dbe72
tree3c76ecc819ae09edb217730a44b56d6c0b93bdc3
parent206c1947c1cb8e4ac6abb8e6803c762200167cde
Fix Aarch64 bug in warning filtering.

This fixes a small bug with the warning filtering code, which when a line has
generated a warning and a template decode error (due to the way templates are
resolved) which would not have been emitted and warnings are being suppressed
with -W it would erroneously emit the error.

I have no testcase for this because the only places we generate warnings during
encoding/decoding now is using msr/mrs and system registers.  They don't have a
template that would trigger this.

However an upcoming patch series will have tests in it which would expose this bug.

gas/ChangeLog:

* config/tc-aarch64.c (output_operand_error_report): Apply filtering to
current instead of head message.
gas/ChangeLog
gas/config/tc-aarch64.c
This page took 0.0252830000000001 seconds and 4 git commands to generate.