public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/62026] [4.9/5 Regression] Crash in lto_get_decl_name_mapping
Date: Sat, 04 Oct 2014 22:00:00 -0000	[thread overview]
Message-ID: <bug-62026-4-UFuL6yViD4@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-62026-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62026

--- Comment #14 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
I am testing the following for 4.9-branch:
Index: cgraphclones.c
===================================================================
--- cgraphclones.c      (revision 215890)
+++ cgraphclones.c      (working copy)
@@ -310,6 +310,8 @@ duplicate_thunk_for_node (cgraph_node *t
   if (thunk_of->thunk.thunk_p)
     node = duplicate_thunk_for_node (thunk_of, node);

+  cgraph_get_body (thunk);
+
   struct cgraph_edge *cs;
   for (cs = node->callers; cs; cs = cs->next_caller)
     if (cs->caller->thunk.thunk_p
Index: lto-streamer-out.c
===================================================================
--- lto-streamer-out.c  (revision 215890)
+++ lto-streamer-out.c  (working copy)
@@ -2077,7 +2077,10 @@ lto_output (void)
 #endif
              decl_state = lto_new_out_decl_state ();
              lto_push_out_decl_state (decl_state);
-             if (gimple_has_body_p (node->decl) || !flag_wpa)
+             if (gimple_has_body_p (node->decl) || !flag_wpa
+                 /* Thunks have no body but they may be synthetized
+                    at WPA time.  */
+                 || DECL_ARGUMENTS (node->decl))
                output_function (node);
              else
                copy_function (node);


  parent reply	other threads:[~2014-10-04 22:00 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-62026-4@http.gcc.gnu.org/bugzilla/>
2014-08-05 19:30 ` [Bug lto/62026] [4.9/4.10 " d.g.gorbachev at gmail dot com
2014-08-06  8:58 ` rguenth at gcc dot gnu.org
2014-08-09 14:55 ` trippels at gcc dot gnu.org
2014-08-17  5:27 ` [Bug lto/62026] [4.9/5 " d.g.gorbachev at gmail dot com
2014-08-29  8:40 ` trippels at gcc dot gnu.org
2014-08-29  9:46 ` smf.linux at ntlworld dot com
2014-08-29 10:06 ` trippels at gcc dot gnu.org
2014-08-29 12:54 ` smf.linux at ntlworld dot com
2014-09-03 11:57 ` jamborm at gcc dot gnu.org
2014-09-14 14:57 ` smf.linux at ntlworld dot com
2014-09-14 14:59 ` smf.linux at ntlworld dot com
2014-09-14 15:42 ` trippels at gcc dot gnu.org
2014-09-23 11:21 ` jamborm at gcc dot gnu.org
2014-09-23 11:38 ` trippels at gcc dot gnu.org
2014-10-04 22:00 ` hubicka at gcc dot gnu.org [this message]
2014-10-05  2:53 ` [Bug lto/62026] [5 " hubicka at gcc dot gnu.org
2014-10-15 17:00 ` trippels at gcc dot gnu.org
2014-10-15 17:01 ` hubicka at gcc dot gnu.org
2014-10-15 17:18 ` trippels at gcc dot gnu.org
2014-10-15 18:06 ` trippels at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-62026-4-UFuL6yViD4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).