This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/17483] [4.0 regression] ICE at -O3 when passing a reference.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Sep 2004 03:27:44 -0000
- Subject: [Bug tree-optimization/17483] [4.0 regression] ICE at -O3 when passing a reference.
- References: <20040914200117.17483.reichelt@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-16 03:27 -------
The problem comes from the tree optimizations happen for foo so the TREE_ADDRESSABLE bit is unset
but since we don't do inlining from that trees we get the orginal code where we take the address. So
this is really a tree problem where we don't reset the addressable flags after doing the optimizations on
the tree. If we did the inlining from the optimizated code, we would not have this problem in fact we
don't have to do the optimizations twice on the code (which can reduce the compile time :) ).
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|pinskia at gcc dot gnu dot |unassigned at gcc dot gnu
|org |dot org
Status|ASSIGNED |NEW
Keywords|patch |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17483