]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR middle-end/82564 (ICE at -O1 and above: in assign_stack_temp_for_type...
authorJakub Jelinek <jakub@redhat.com>
Fri, 30 Aug 2019 11:26:01 +0000 (13:26 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 30 Aug 2019 11:26:01 +0000 (13:26 +0200)
commitcaef3d1cbd20b0d77426fef2526e3b3f835cfb51
tree92b28d13404412514700c49e86ac8156111fceb9
parentf0ea2c335a3fc63cfce9754af00c1f0e5897a858
backport: re PR middle-end/82564 (ICE at -O1 and above: in assign_stack_temp_for_type, at function.c:783)

Backported from mainline
2019-01-05  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/82564
PR target/88620
* expr.c (expand_assignment): For calls returning VLA structures
if to_rtx is not a MEM, force it into a stack temporary.

* gcc.dg/nested-func-12.c: New test.
* gcc.c-torture/compile/pr82564.c: New test.

From-SVN: r275085
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr82564.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/nested-func-12.c [new file with mode: 0644]