middle-end/99122 - more VLA inlining fixes
authorRichard Biener <rguenther@suse.de>
Fri, 19 Feb 2021 08:38:52 +0000 (09:38 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 19 Feb 2021 13:20:24 +0000 (14:20 +0100)
commit1a2a7096e5e20d736c6138179470b21aa5a74864
treef7d3cbfeef170dce8f20c78ac5b770671ebf5545
parent1a132c4d7cdb22cbab85b8596418daa2c3157812
middle-end/99122 - more VLA inlining fixes

This avoids declaring a function with VLA arguments or return values
as inlineable.  IPA CP still ICEs, so the testcase has that disabled.

2021-02-19  Richard Biener  <rguenther@suse.de>

PR middle-end/99122
* tree-inline.c (inline_forbidden_p): Do not inline functions
with VLA arguments or return value.

* gcc.dg/pr99122-3.c: New testcase.
gcc/testsuite/gcc.dg/pr99122-3.c [new file with mode: 0644]
gcc/tree-inline.c