From 1b7706c830cdf535d14d68d4f2e581592fbcdb85 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Mon, 26 Jan 2015 22:33:11 +0100 Subject: re PR ipa/64730 (g++.dg/ipa/pr64049-1.C ICE: SEGV when printing NULL) PR ipa/64730 * ipa-inline.c (inline_small_functions): Print "unknown" even if edge->call_stmt is non-NULL, but has builtins or unknown location. From-SVN: r220139 --- gcc/ipa-inline.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/ipa-inline.c') diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index aa93928..f91a6a5 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -1822,6 +1822,9 @@ inline_small_functions (void) " Estimated badness is %f, frequency %.2f.\n", edge->caller->name (), edge->caller->order, edge->call_stmt + && (LOCATION_LOCUS (gimple_location ((const_gimple) + edge->call_stmt)) + > BUILTINS_LOCATION) ? gimple_filename ((const_gimple) edge->call_stmt) : "unknown", edge->call_stmt -- cgit v1.1