This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26957] [4.0/4.1/4.2 regression] ICE in make_decl_rtl, at varasm.c:871
- From: "sje at cup dot hp dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jun 2006 21:12:45 -0000
- Subject: [Bug c++/26957] [4.0/4.1/4.2 regression] ICE in make_decl_rtl, at varasm.c:871
- References: <bug-26957-581@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from sje at cup dot hp dot com 2006-06-08 21:12 -------
I do not think my patch is correct. The variable causing the problem is
created in gimplify_parameters by a call to create_tmp_var. This local
variable is only created on systems that pass structures by pointers and which
are callee copied.
I think this variable should be a local stack variable but I think that is what
we have now. Then we run into the gcc_assert in make_decl_rtl, if I just
comment out that assert I run into one in expand_expr_real_1.
It may be that the function context is not set when creating this temporary,
that would explain the expand_expr_real_1 assert.
--
sje at cup dot hp dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sje at cup dot hp dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26957