This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/40464] [4.5 Regression] FAIL: g++.dg/torture/pr34099.C -O1 (internal compiler error) at -O1 and above
- From: "jamborm at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Aug 2009 17:31:29 -0000
- Subject: [Bug tree-optimization/40464] [4.5 Regression] FAIL: g++.dg/torture/pr34099.C -O1 (internal compiler error) at -O1 and above
- References: <bug-40464-276@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from jamborm at gcc dot gnu dot org 2009-08-06 17:31 -------
Created an attachment (id=18311)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18311&action=view)
workaround patch
I still believe that the gimplifier should not do this substitution
this late in the compilation. However, since I do not have time nor
am I brave enough to attempt to fix it there, I at least tried to make
sure that SRA does not create situations which lead to this error and
the attached patch is the result of that effort. I am currently
bootstrapping it on an x86_64.
However, it should be noted that it comes at a slight cost, both in
run time as this leads to less structure copy propagation (and at
least java uses DECL_VALUE_EXPR even on x86_64, I believe) and compile
time, as we have to check for it everywhere. Moreover, every single
user of force_gimple_operand is still at risk of running into a
problem like this.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40464