]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
S12Z: gas: Fix bug when a symbol name was the single letter 'c'.
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 14 Jan 2019 15:55:17 +0000 (16:55 +0100)
committerJohn Darrington <john@darrington.wattle.id.au>
Wed, 16 Jan 2019 18:35:05 +0000 (19:35 +0100)
commite7b47f2e68c6eaff916ea4d1202a77e15730f48f
treefd28ffb0f1b591cf32469b7959be0de03965d11f
parent77fdb0e00bd47c564c4e32726fc6020d9441d4a7
S12Z: gas: Fix bug when a symbol name was the single letter 'c'.

The assembler incorrectly recognised "c" as a register name, and
refused to allow it where it expected a symbol/label.

gas/
* config/tc-s12z.c (lex_reg_name): Compare the length of the strings
before the contents.
* testsuite/gas/s12z/labels.d: New file.
* testsuite/gas/s12z/labels.s: New file.
* testsuite/gas/s12z/s12z.exp: Add them.
gas/ChangeLog
gas/config/tc-s12z.c
gas/testsuite/gas/s12z/labels.d [new file with mode: 0644]
gas/testsuite/gas/s12z/labels.s [new file with mode: 0644]
gas/testsuite/gas/s12z/s12z.exp