This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/42386] [4.5 Regression] ICE in ipcp_iterate_stage, at ipa-cp.c:766
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Dec 2009 17:30:53 -0000
- Subject: [Bug tree-optimization/42386] [4.5 Regression] ICE in ipcp_iterate_stage, at ipa-cp.c:766
- References: <bug-42386-10406@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from hjl dot tools at gmail dot com 2009-12-16 17:30 -------
(In reply to comment #6)
> Created an attachment (id=19322)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19322&action=view) [edit]
> gcc45-pr42386.patch
>
> Fix for this testcase. If we already at maybe_clone_body time know that
> the ctor or dtor will not be emitted in the current TU, we shouldn't create any
> same_body/same_comdat_group relations between the symbols.
> The question is if for DECL_DEFER_OUTPUT we might decide later on that it is
> really DECL_EXTERNAL (i.e. not clear DECL_EXTERNAL on it).
> Alternatively same_comdat_group could be only considered for !DECL_EXTERNAL
> decls.
>
Do we need those
# 1 "types.h" 1
# 15 "CodingSystem.h" 1
in testcase?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42386