This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/56570] ICE when streaming a TREE_BLOCK
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 08 Mar 2013 12:05:41 +0000
- Subject: [Bug lto/56570] ICE when streaming a TREE_BLOCK
- Auto-submitted: auto-generated
- References: <bug-56570-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56570
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> 2013-03-08 12:05:41 UTC ---
It's the DECL_DEBUG_EXPRs created by SRA, supposedly we can fix it by
Index: tree-sra.c
===================================================================
--- tree-sra.c (revision 196487)
+++ tree-sra.c (working copy)
@@ -1917,7 +1917,7 @@ create_access_replacement (struct access
&& !DECL_ARTIFICIAL (access->base))
{
char *pretty_name = make_fancy_name (access->expr);
- tree debug_expr = unshare_expr (access->expr), d;
+ tree debug_expr = unshare_expr_without_location (access->expr), d;
bool fail = false;
DECL_NAME (repl) = get_identifier (pretty_name);
but we should fix the reason why it doesn't survive inlining properly.
Reducing a file from libgcc instead.