public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: gcc-patches@gcc.gnu.org
Cc: Andi Kleen <ak@linux.intel.com>
Subject: [PATCH 5/5] workaround for PR70427
Date: Sat, 21 May 2016 16:37:00 -0000	[thread overview]
Message-ID: <1463848586-19259-6-git-send-email-andi@firstfloor.org> (raw)
In-Reply-To: <1463848586-19259-5-git-send-email-andi@firstfloor.org>

From: Andi Kleen <ak@linux.intel.com>

This makes autofdo bootstrap not crash.

This is probably not the right fix, but for now it works for me.
Not for submission.
---
 gcc/ipa-profile.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gcc/ipa-profile.c b/gcc/ipa-profile.c
index da17bcd..c7d7792 100644
--- a/gcc/ipa-profile.c
+++ b/gcc/ipa-profile.c
@@ -201,6 +201,8 @@ ipa_profile_generate_summary (void)
 		    if (h->hvalue.counters[2])
 		      {
 			struct cgraph_edge * e = node->get_edge (stmt);
+			if (!e)
+			  continue;
 			if (e && !e->indirect_unknown_callee)
 			  continue;
 			e->indirect_info->common_target_id
-- 
2.8.2

  reply	other threads:[~2016-05-21 16:37 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-21 16:37 Updated autofdo bootstrap and testing patches Andi Kleen
2016-05-21 16:37 ` [PATCH 1/5] Add gcc-auto-profile script Andi Kleen
2016-05-21 16:37   ` [PATCH 2/5] Don't cause ICEs when auto profile file is not found with checking Andi Kleen
2016-05-21 16:37     ` [PATCH 3/5] Run profile feedback tests with autofdo Andi Kleen
2016-05-21 16:38       ` [PATCH 4/5] Add make autoprofiledbootstrap Andi Kleen
2016-05-21 16:37         ` Andi Kleen [this message]
2016-05-30  9:16           ` [PATCH 5/5] workaround for PR70427 Jan Hubicka
2016-05-30  9:46             ` Andi Kleen
2016-05-21 20:55       ` [PATCH 3/5] Run profile feedback tests with autofdo Bernhard Reutner-Fischer
2016-05-21 21:37         ` Andi Kleen
2016-05-21 20:42     ` [PATCH 2/5] Don't cause ICEs when auto profile file is not found with checking Bernhard Reutner-Fischer
2016-05-30  8:49     ` Jan Hubicka
2016-05-21 18:02   ` [PATCH 1/5] Add gcc-auto-profile script Bernhard Reutner-Fischer
2016-05-30  9:37   ` Jan Hubicka
2016-05-30  9:38     ` Andi Kleen
2016-05-26 17:08 ` [PING] Re: Updated autofdo bootstrap and testing patches Andi Kleen
2016-05-30  8:22   ` [PING^2] " Andi Kleen
2016-06-04  4:12     ` [PING^3] " Andi Kleen
2016-06-06  9:55     ` [PING^2] " Bernd Schmidt

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=1463848586-19259-6-git-send-email-andi@firstfloor.org \
    --to=andi@firstfloor.org \
    --cc=ak@linux.intel.com \
    --cc=gcc-patches@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).