This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/37568] [4.4 regression] ICE returning a struct
- From: "jason at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Sep 2008 18:14:22 -0000
- Subject: [Bug tree-optimization/37568] [4.4 regression] ICE returning a struct
- References: <bug-37568-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from jason at redhat dot com 2008-09-19 18:14 -------
Subject: Re: [4.4 regression] ICE returning
a struct
jakub at gcc dot gnu dot org wrote:
> IMHO either we relax the checking, allowing DECL_INITIAL to be error_mark_node
> even for !TREE_STATIC, or finalize_nrv_r would need to clear DECL_INITIAL.
> I don't know what consequences the latter might have though.
There is a general convention that DECL_INITIAL of error_mark_node means
"this is initialized by other code". But that doesn't seem to apply to
automatic variables; changing finalize_nrv_r to clear DECL_INITIAL
instead of setting it to error_mark_node shouldn't break anything.
Jason
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37568