]> gcc.gnu.org Git - gcc.git/commit
C: Drop qualifiers during lvalue conversion [PR97702]
authorMartin Uecker <muecker@gwdg.de>
Fri, 20 Nov 2020 06:21:40 +0000 (07:21 +0100)
committerMartin Uecker <muecker@gwdg.de>
Fri, 20 Nov 2020 06:34:11 +0000 (07:34 +0100)
commit32934a4f45a72144cdcd0712cc294fe88c36f13d
tree022f80ca6020cfb841771515910a9f920abf6829
parentd62586ee567bbbdab9fe8bb5829f032431d57098
C: Drop qualifiers during lvalue conversion [PR97702]

2020-11-20  Martin Uecker  <muecker@gwdg.de>

gcc/
* gimplify.c (gimplify_modify_expr_rhs): Optimizie
NOP_EXPRs that contain compound literals.

gcc/c/
* c-typeck.c (convert_lvalue_to_rvalue): Drop qualifiers.

gcc/testsuite/
* gcc.dg/cond-constqual-1.c: Adapt test.
* gcc.dg/lvalue-11.c: New test.
* gcc.dg/pr60195.c: Add warning.
gcc/c/c-typeck.c
gcc/gimplify.c
gcc/testsuite/gcc.dg/cond-constqual-1.c
gcc/testsuite/gcc.dg/lvalue-11.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr60195.c
This page took 0.057083 seconds and 5 git commands to generate.