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
This commit is contained in:
Jakub Jelinek 2015-01-26 22:33:11 +01:00 committed by Jakub Jelinek
parent d38f7dcef3
commit 1b7706c830
3 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,10 @@
2015-01-26 Jakub Jelinek <jakub@redhat.com>
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.
PR middle-end/64421
* omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
with asterisk, skip the first character.

View File

@ -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

View File

@ -3,8 +3,6 @@
PR c/64778
* gcc.dg/pr64778.c: New test.
2015-01-26 Jakub Jelinek <jakub@redhat.com>
PR middle-end/64421
* gcc.dg/vect/pr64421.c: New test.