]> git.ipfire.org Git - thirdparty/gcc.git/commit
c/101512 - fix missing address-taking in c_common_mark_addressable_vec
authorRichard Biener <rguenther@suse.de>
Wed, 21 Jul 2021 07:14:24 +0000 (09:14 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 29 Jul 2021 06:13:29 +0000 (08:13 +0200)
commite63d76234d18cac731c4f3610d513bd8b39b5520
tree2756a25fa6e99a59105ff653df8d5e8d7bf4bdc7
parent841548f0f7d375c5b7022e19d588061cda3acfa6
c/101512 - fix missing address-taking in c_common_mark_addressable_vec

c_common_mark_addressable_vec fails to look through C_MAYBE_CONST_EXPR
in the case it isn't at the toplevel.

2021-07-21  Richard Biener  <rguenther@suse.de>

PR c/101512
gcc/c-family/
* c-common.c (c_common_mark_addressable_vec): Look through
C_MAYBE_CONST_EXPR even if not at the toplevel.

gcc/testsuite/
* gcc.dg/torture/pr101512.c: New testcase.
gcc/c-family/c-common.c
gcc/testsuite/gcc.dg/torture/pr101512.c [new file with mode: 0644]