This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34459] [4.1/4.3 Regression] incorrect code when compiled with optimization (-O1)
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Dec 2007 20:49:55 -0000
- Subject: [Bug c++/34459] [4.1/4.3 Regression] incorrect code when compiled with optimization (-O1)
- References: <bug-34459-15519@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from jakub at gcc dot gnu dot org 2007-12-19 20:49 -------
I have bootstrapped/regtested this patch on x86_64-linux with:
{
record_voperand_set (dse_gd->stores, &bd->stores, ann->uid);
return;
}
replaced with gcc_unreachable () to see where it hits. It bootstrapped fine,
the
only regression was the newly added tests (which works with the original patch,
obviously with that gcc_unreachable () ICEs) and gcc.dg/uninit-E.c reports
the warning on line 8 rather than expected 7 (because the i = i; statement
is optimized out by the gimplify.c hunk). So perhaps the gimplify.c hunk in
that patch isn't a good idea and we should eliminate the nop moves later on
(either during DCE, or some other pass, suggestions? But that can be left
for a separate patch, keeping just tree-ssa-dse.c (dse_optimize_stmt) hunk
together with the new 20071219-1.c test as the fix for this PR.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34459