This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/34448] [4.3 Regression] ICE in declare_inline_vars, at tree-inline.c:3243
- From: "aldyh at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Dec 2007 21:00:18 -0000
- Subject: [Bug tree-optimization/34448] [4.3 Regression] ICE in declare_inline_vars, at tree-inline.c:3243
- References: <bug-34448-12387@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from aldyh at gcc dot gnu dot org 2007-12-13 21:00 -------
Shouldn't that be:
if (valid_const_initializer
&& num_nonzero_elements > 1
&& TREE_READONLY (object)
&& TREE_CODE (object) == VAR_DECL
&& !DECL_NAME(object) <---- here
since we won't create the "C" temporary unless !DECL_NAME(object)??
Even with this change (with the DECL_NAME check), the inline problem doesn't go
away. I'll look into it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34448