gimple-parser.c (c_parser_gimple_postfix_expression): Support _Literal (int *) &x...
authorRichard Biener <rguenther@suse.de>
Wed, 10 Jul 2019 13:24:32 +0000 (13:24 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 10 Jul 2019 13:24:32 +0000 (13:24 +0000)
commit8389386c6d55d57afc3ae01f71546ac4468f7926
tree3c0df90f570091edafcdd5fb8f152cfb54ee4388
parentf861d731ca497443702f78b78d5090063c17539d
gimple-parser.c (c_parser_gimple_postfix_expression): Support _Literal (int *) &x for address literals.

2019-07-10  Richard Biener  <rguenther@suse.de>

c/
* gimple-parser.c (c_parser_gimple_postfix_expression): Support
_Literal (int *) &x for address literals.

* tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
LHS whenever possible.

* gcc.dg/torture/ssa-fre-5.c: New testcase.
* gcc.dg/torture/ssa-fre-6.c: Likewise.
* gcc.dg/torture/ssa-fre-7.c: Likewise.

From-SVN: r273354
gcc/ChangeLog
gcc/c/ChangeLog
gcc/c/gimple-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/ssa-fre-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/ssa-fre-6.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/ssa-fre-7.c [new file with mode: 0644]
gcc/tree-ssa-sccvn.c