re PR c++/71210 (internal compiler error: in assign_temp, at function.c:961)
authorJakub Jelinek <jakub@redhat.com>
Fri, 20 May 2016 11:58:49 +0000 (13:58 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 20 May 2016 11:58:49 +0000 (13:58 +0200)
commit1895484016aa288d135e1e475eb3afaa04a4e7b6
treef40d460b0d22bea9c8d8b3aaed1d75663960dafa
parent6804797178f4c4c831fa43e94f51fdaaad4641f3
re PR c++/71210 (internal compiler error: in assign_temp, at function.c:961)

PR c++/71210
* gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
calls if the LHS is variable length or has addressable type.
If targets[0]->decl is a noreturn call with void return type and
zero arguments, adjust fntype and remove lhs in that case.

* g++.dg/opt/pr71210-1.C: New test.
* g++.dg/opt/pr71210-2.C: New test.

From-SVN: r236506
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr71210-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/opt/pr71210-2.C [new file with mode: 0644]