This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug lto/56570] ICE when streaming a TREE_BLOCK


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]