OSDN Git Service

* cgraph.c (dump_cgraph_node): Dump also assembler name.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 21 Apr 2010 14:38:38 +0000 (14:38 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:34:41 +0000 (14:34 +0900)
* ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
at WPA dumping.
(cgraph_decide_inlining): Do not expect callee to be removed in all
cases.

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

gcc/ChangeLog
gcc/ipa-inline.c

index 0bdb5c2..0855673 100644 (file)
@@ -1,3 +1,11 @@
+2010-04-21  Jan Hubicka  <jh@suse.cz>
+
+       * cgraph.c (dump_cgraph_node): Dump also assembler name.
+       * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
+       at WPA dumping.
+       (cgraph_decide_inlining): Do not expect callee to be removed in all
+       cases.
+
 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
 
        * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
index 07696bc..d9f207c 100644 (file)
@@ -1207,8 +1207,9 @@ cgraph_decide_inlining_of_small_functions (void)
                   " Estimated growth after inlined into all callees is %+i insns.\n"
                   " Estimated badness is %i, frequency %.2f.\n",
                   cgraph_node_name (edge->caller),
-                  gimple_filename ((const_gimple) edge->call_stmt),
-                  gimple_lineno ((const_gimple) edge->call_stmt),
+                  flag_wpa ? "unknown"
+                  : gimple_filename ((const_gimple) edge->call_stmt),
+                  flag_wpa ? -1 : gimple_lineno ((const_gimple) edge->call_stmt),
                   cgraph_estimate_growth (edge->callee),
                   badness,
                   edge->frequency / (double)CGRAPH_FREQ_BASE);