PR ipa/64730
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Jan 2015 21:33:11 +0000 (21:33 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Jan 2015 21:33:11 +0000 (21:33 +0000)
* ipa-inline.c (inline_small_functions): Print "unknown" even
if edge->call_stmt is non-NULL, but has builtins or unknown
location.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220139 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ipa-inline.c
gcc/testsuite/ChangeLog

index f10bfb7..8cf5d5b 100644 (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.
index aa93928..f91a6a5 100644 (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
index 26d82ac..f81676e 100644 (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.