diff options
author | Jakub Jelinek <jakub@redhat.com> | 2015-01-26 22:33:11 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2015-01-26 22:33:11 +0100 |
commit | 1b7706c830cdf535d14d68d4f2e581592fbcdb85 (patch) | |
tree | 9961631eeedc246ee746668bc4b916430f6cee9f /gcc/ipa-inline.c | |
parent | d38f7dcef3ac28aa0c405c651087938ea9d6939a (diff) | |
download | gcc-1b7706c830cdf535d14d68d4f2e581592fbcdb85.zip gcc-1b7706c830cdf535d14d68d4f2e581592fbcdb85.tar.gz gcc-1b7706c830cdf535d14d68d4f2e581592fbcdb85.tar.bz2 |
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
Diffstat (limited to 'gcc/ipa-inline.c')
-rw-r--r-- | gcc/ipa-inline.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 |