diff options
author | Michael Matz <matz@suse.de> | 2023-07-13 17:58:19 +0200 |
---|---|---|
committer | Michael Matz <matz@suse.de> | 2023-07-17 16:59:26 +0200 |
commit | c684d6c4e3cd299f7e10576eafe9e4b86521e3d0 (patch) | |
tree | 1d3cc7b6a70f5bf8262bda9a2a48c062f034d50e /ld/ldlex.l | |
parent | b26b06dd42fbd9a75eebb4c943bf55a88562b81f (diff) | |
download | gdb-c684d6c4e3cd299f7e10576eafe9e4b86521e3d0.zip gdb-c684d6c4e3cd299f7e10576eafe9e4b86521e3d0.tar.gz gdb-c684d6c4e3cd299f7e10576eafe9e4b86521e3d0.tar.bz2 |
Also support '^=' in linker script expressions
this requires also changes in ldgram.y and ldexp.c, unlike
accepting '^' only. But let's do this anyway, if only for
symmetry.
Diffstat (limited to 'ld/ldlex.l')
-rw-r--r-- | ld/ldlex.l | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -233,6 +233,7 @@ V_IDENTIFIER [*?.$_a-zA-Z\[\]\-\!\^\\]([*?.$_a-zA-Z0-9\[\]\-\!\^\\]|::)* <SCRIPT,EXPRESSION,MRI,WILD>"/=" { RTOKEN(DIVEQ); } <SCRIPT,EXPRESSION,MRI,WILD>"&=" { RTOKEN(ANDEQ); } <SCRIPT,EXPRESSION,MRI,WILD>"|=" { RTOKEN(OREQ); } +<SCRIPT,EXPRESSION,MRI,WILD>"^=" { RTOKEN(XOREQ); } <EXPRESSION,MRI>"&&" { RTOKEN(ANDAND); } <SCRIPT,EXPRESSION,MRI>">" { RTOKEN('>'); } <SCRIPT,EXPRESSION,MRI,INPUTLIST>"," { RTOKEN(','); } |