aboutsummaryrefslogtreecommitdiff
path: root/gcc/c
diff options
context:
space:
mode:
authorMartin Uecker <uecker@tugraz.at>2023-02-08 15:02:43 +0100
committerMartin Uecker <uecker@tugraz.at>2023-02-18 10:37:03 +0100
commit3057d7928c0dbc78dbf748c9621ccd102e06beee (patch)
tree2ee1b3cfb2f04ac9329511ae156053b5c9e62d5e /gcc/c
parent017849d9d88f021770a90f12fffec9aa2425ed27 (diff)
downloadgcc-3057d7928c0dbc78dbf748c9621ccd102e06beee.zip
gcc-3057d7928c0dbc78dbf748c9621ccd102e06beee.tar.gz
gcc-3057d7928c0dbc78dbf748c9621ccd102e06beee.tar.bz2
Fix ICE related to implicit access attributes for VLA arguments [PR105660]
When constructing the specifier string when merging an access attribute that encodes information about VLA arguments, the string was constructed in random order by iterating through a hash table. Fix this by iterating though the list of arguments. gcc/c-family/Changelog: PR c/105660 * c-attribs.cc (append_access_attr): Use order of arguments when construction string. (append_access_attr_idxs): Rename and make static. * c-warn.cc (warn_parm_array_mismatch): Add assertion. gcc/testsuite/ChangeLog: PR c/105660 * gcc.dg/pr105660-1.c: New test. * gcc.dg/pr105660-2.c: New test.
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions