re PR middle-end/82564 (ICE at -O1 and above: in assign_stack_temp_for_type, at funct...
authorJakub Jelinek <jakub@redhat.com>
Sat, 5 Jan 2019 11:14:12 +0000 (12:14 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 5 Jan 2019 11:14:12 +0000 (12:14 +0100)
commit23141e52419417d34eab8a2976fe417a6041e15e
tree21f0ab12fe14cd100df4f2cdc94277ffc8c9cb28
parent4a3e7df872be0bb7198fed02746ff5e96ff1d584
re PR middle-end/82564 (ICE at -O1 and above: in assign_stack_temp_for_type, at function.c:783)

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: r267595
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]