C: Avoid incorrect warning for volatile in compound expressions [PR98260]
authorMartin Uecker <muecker@gwdg.de>
Wed, 16 Dec 2020 22:43:42 +0000 (23:43 +0100)
committerMartin Uecker <muecker@gwdg.de>
Wed, 16 Dec 2020 22:43:42 +0000 (23:43 +0100)
commitec13758ed41936bf803640f0dd8c259c034fe4b9
tree2cd876d31542cee9d6818f0151887fd3f6aea753
parent64a54505ec8249178b9767d1420354f8eb55de50
C: Avoid incorrect warning for volatile in compound expressions [PR98260]

2020-12-16  Martin Uecker  <muecker@gwdg.de>

gcc/c/
PR c/98260
* c-parser.c (c_parser_expression): Look into
nop expression when marking expressions as read.

gcc/testsuite/
PR c/98260
* gcc.dg/unused-9.c: New test.
gcc/c/c-parser.c
gcc/testsuite/gcc.dg/unused-9.c [new file with mode: 0644]