Fix AArch64 unintialized variable which can cause diagnostic failures.
authorTamar Christina <tamar.christina@arm.com>
Thu, 7 Jun 2018 10:53:13 +0000 (11:53 +0100)
committerTamar Christina <tamar.christina@arm.com>
Thu, 7 Jun 2018 10:54:11 +0000 (11:54 +0100)
commit2a9b2c1abe29e1063240604d2464b8de9a46011f
treec522d8fbc38066701367b25f7ed792b72849da57
parent63bad7b636870e3a0af4fc97cc2b8ec5c2603a41
Fix AArch64 unintialized variable which can cause diagnostic failures.

This patch fixes an uninitialized memory issue that can under certain
circumstances turn an error into a warning because non_fatal was not initialised
in all cases.

Verified using valgrind.

gas/config/tc-aarch64.c

PR binutils/21446
* tc-aarch64.c (record_operand_error, record_operand_error_with_data):
  Initialize non_fatal.
gas/ChangeLog
gas/config/tc-aarch64.c