This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/44182] [4.5/4.6 Regression] -fcompare-debug failure (length) with -O1
- From: "rth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 May 2010 15:44:00 -0000
- Subject: [Bug tree-optimization/44182] [4.5/4.6 Regression] -fcompare-debug failure (length) with -O1
- References: <bug-44182-14164@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from rth at gcc dot gnu dot org 2010-05-27 15:44 -------
The context in which stmt_can_throw_internal is being called is different
pre- and post-inlining, so of course the answer could be different. This
is neither surprising nor a bug.
I even tend to doubt (without checking of course) whether this is a regression
with the EH rewrite, since I would expect the same new EH edge to have appeared
with the old EH code -- anything less would have been a bug in the old EH code.
However, in order to see the bug one also needs the VTA code present, which
means looking at the redhat-4.4 branch.
So yes, Jakub, I think the inliner needs to do something to clean up the debug
statement that would appear alone in that new block. I suppose such debug
statements would have to be dropped to avoid changing the code due to changes
in the CFG.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44182