diff options
author | Alan Modra <amodra@gmail.com> | 2021-08-13 17:20:10 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-08-13 22:46:54 +0930 |
commit | f400c8d27e11477d79ba67ca930ca7e7511b9ee5 (patch) | |
tree | fbd9c16ee72af6d80da8fc283a63b2379d129295 /ld/ldgram.y | |
parent | b325429b2fcc53f5823d5b4a1974597c11b8dcf9 (diff) | |
download | gdb-f400c8d27e11477d79ba67ca930ca7e7511b9ee5.zip gdb-f400c8d27e11477d79ba67ca930ca7e7511b9ee5.tar.gz gdb-f400c8d27e11477d79ba67ca930ca7e7511b9ee5.tar.bz2 |
ld lexer tidy, possibly break the world
This tidies the states in which ld lexer rules are enabled.
This change will quite likely trip over issues similar to those
mentioned in the new ldlex.l comments, so please test it out.
* ldgram.y (wildcard_name): Remove now unnecessary components.
* ldlex.l: Restrict many rules' states. Remove -l expression
state rule. Comment on lookahead state madness and need for
/DISCARD/ in expression state.
Diffstat (limited to 'ld/ldgram.y')
-rw-r--r-- | ld/ldgram.y | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/ld/ldgram.y b/ld/ldgram.y index 24979de..1f6c44a 100644 --- a/ld/ldgram.y +++ b/ld/ldgram.y @@ -421,21 +421,11 @@ statement_anywhere: lang_add_assignment (exp_assert ($4, $6)); } ; -/* The '*' and '?' cases are there because the lexer returns them as - separate tokens rather than as NAME. */ wildcard_name: NAME { $$ = $1; } - | '*' - { - $$ = "*"; - } - | '?' - { - $$ = "?"; - } ; wildcard_maybe_exclude: |