Skip to content
Snippets Groups Projects
Commit 32934a4f authored by Martin Uecker's avatar Martin Uecker
Browse files

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.
parent d62586ee
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment