re PR c/92088 (aggregates with VLAs and nested functions are broken)
authorRichard Biener <rguenther@suse.de>
Wed, 20 Nov 2019 07:33:19 +0000 (07:33 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 20 Nov 2019 07:33:19 +0000 (07:33 +0000)
commit3e00ba47b932a13b57061b2d2c95c768ab811d1b
treebb2b932e36924ca3737f2da2a580c0a839e4b93a
parent54bf2539c55b886ea60d407a7ef2f56f0a19e861
re PR c/92088 (aggregates with VLAs and nested functions are broken)

2019-11-20  Richard Biener  <rguenther@suse.de>

PR c/92088
c/
* c-decl.c (grokdeclarator): Prevent inlining of nested
function with VLA arguments.

* builtins.c (compute_objsize): Deal with VLAs.

* gcc.dg/torture/pr92088-1.c: New testcase.
* gcc.dg/torture/pr92088-2.c: Likewise.

From-SVN: r278477
gcc/ChangeLog
gcc/builtins.c
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr92088-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr92088-2.c [new file with mode: 0644]