diff options
author | Martin Sebor <msebor@redhat.com> | 2021-06-04 10:35:27 -0600 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2021-06-04 10:36:28 -0600 |
commit | c6503fa93b5565c922f76611a55b0a53cd940a5f (patch) | |
tree | 9f6839ac642ddc2d8d3322e5b57823917abdba1b /gcc/tree-ssa-uninit.c | |
parent | 1b51f038cf027fdc1bf00240cacee59dd5cbe458 (diff) | |
download | gcc-c6503fa93b5565c922f76611a55b0a53cd940a5f.zip gcc-c6503fa93b5565c922f76611a55b0a53cd940a5f.tar.gz gcc-c6503fa93b5565c922f76611a55b0a53cd940a5f.tar.bz2 |
PR c/100719 - missing -Wvla-parameter on a mismatch in second parameter
gcc/ChangeLog:
* attribs.c (init_attr_rdwr_indices): Use VLA bounds in the expected
order.
(attr_access::vla_bounds): Also handle VLA bounds.
gcc/c-family/ChangeLog:
* c-warn.c (warn_parm_array_mismatch): Check TREE_PURPOSE to test
for element presence.
gcc/testsuite/ChangeLog:
* gcc.dg/Wvla-parameter-10.c: New test.
* gcc.dg/Wvla-parameter-11.c: New test.
Diffstat (limited to 'gcc/tree-ssa-uninit.c')
0 files changed, 0 insertions, 0 deletions