[Bug c++/70272] [5 Regression] -flifetime-dse miscompilation starting with r217967
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 30 12:43:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70272
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Mar 30 12:42:43 2016
New Revision: 234564
URL: https://gcc.gnu.org/viewcvs?rev=234564&root=gcc&view=rev
Log:
Backported from mainline
2016-03-17 Jakub Jelinek <jakub@redhat.com>
PR c++/70272
* decl.c (begin_destructor_body): Don't insert clobber if
is_empty_class (current_class_type).
* g++.dg/opt/flifetime-dse6.C: New test.
* g++.dg/tree-ssa/ehcleanup-1.C: Adjust unreachable count.
Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/opt/flifetime-dse6.C
Modified:
branches/gcc-5-branch/gcc/cp/ChangeLog
branches/gcc-5-branch/gcc/cp/decl.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog
branches/gcc-5-branch/gcc/testsuite/g++.dg/tree-ssa/ehcleanup-1.C
More information about the Gcc-bugs
mailing list