This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/71210] [6/7 Regression] internal compiler error: in assign_temp, at function.c:961
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 20 May 2016 19:06:41 +0000
- Subject: [Bug c++/71210] [6/7 Regression] internal compiler error: in assign_temp, at function.c:961
- Auto-submitted: auto-generated
- References: <bug-71210-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71210
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri May 20 19:06:09 2016
New Revision: 236529
URL: https://gcc.gnu.org/viewcvs?rev=236529&root=gcc&view=rev
Log:
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.
Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/opt/pr71210-1.C
branches/gcc-6-branch/gcc/testsuite/g++.dg/opt/pr71210-2.C
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/gimple-fold.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog