Allow more kinds of invariant addresses in GIMPLE FE
authorRichard Biener <rguenther@suse.de>
Tue, 5 Oct 2021 12:18:09 +0000 (14:18 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 5 Oct 2021 14:37:39 +0000 (16:37 +0200)
commitd4f6dbe18374385b8199ca3d6121e37a1189b589
tree8e01be04ec6f9a594838cb39051fd6307f08274b
parentf3930418cb82000fae3cb4e98e870428800cf295
Allow more kinds of invariant addresses in GIMPLE FE

The gimple FE is too restrictive in what it accepts as
literals, the following makes it also accept &a[10] for example.

2021-10-05  Richard Biener  <rguenther@suse.de>

PR c/102605
gcc/c/
* gimple-parser.c (c_parser_gimple_postfix_expression):
Accept more address _Literals.

gcc/testsuite/
* gcc.dg/gimplefe-46.c: New testcase.
gcc/c/gimple-parser.c
gcc/testsuite/gcc.dg/gimplefe-46.c [new file with mode: 0644]