Re: PR28217, Syntax error when memory region contains a hyphen
authorAlan Modra <amodra@gmail.com>
Fri, 13 Aug 2021 07:51:14 +0000 (17:21 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 13 Aug 2021 08:53:35 +0000 (18:23 +0930)
commit3bb17dfb6b4f869e2850329be710176b7ff0cb84
treeba6febe0e1b42a8670ee1850fa317d30cee2aefd
parent1374be23274d0d569ca160b8172b2c02fc37becc
Re: PR28217, Syntax error when memory region contains a hyphen

I discovered some more errors when tightening up the lexer rules.
Just because we INCLUDE a file doesn't mean we've switched states.

PR 28217
* ldgram.y (statement): Don't switch lexer state on INCLUDE.
(mri_script_command, ifile_p1, memory_spec, section): Likewise.
ld/ldgram.y