Patchwork Fix ICE with -fdump-ipa-cp

login
register
mail settings
Submitter Jan Hubicka
Date Aug. 26, 2013, 3:34 p.m.
Message ID <20130826153419.GB25893@kam.mff.cuni.cz>
Download mbox | patch
Permalink /patch/269910/
State New
Headers show

Comments

Jan Hubicka - Aug. 26, 2013, 3:34 p.m.
Hi,
this patch fixes fallout of my patch to remove DECL_ARGUMENT from
WPA stage.  Fixed thus.

Regtested/bootstrapped x86_64-linux, comitted.

Honza

Patch

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 201997)
+++ ChangeLog	(working copy)
@@ -1,5 +1,9 @@ 
 2013-08-26  Jan Hubicka  <jh@suse.cz>
 
+	* ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
+
+2013-08-26  Jan Hubicka  <jh@suse.cz>
+
 	* ipa-inline-transform.c (inline_transform): Be ready for basic block
 	to be changed by edge redirection.
 
Index: ipa-prop.c
===================================================================
--- ipa-prop.c	(revision 201995)
+++ ipa-prop.c	(working copy)
@@ -3041,7 +3041,6 @@  void
 ipa_print_node_params (FILE *f, struct cgraph_node *node)
 {
   int i, count;
-  tree temp;
   struct ipa_node_params *info;
 
   if (!node->symbol.definition)
@@ -3054,12 +3053,7 @@  ipa_print_node_params (FILE *f, struct c
     {
       int c;
 
-      temp = ipa_get_param (info, i);
-      if (TREE_CODE (temp) == PARM_DECL)
-	fprintf (f, "    param %d : %s", i,
-                 (DECL_NAME (temp)
-                  ? (*lang_hooks.decl_printable_name) (temp, 2)
-                  : "(unnamed)"));
+      ipa_dump_param (f, info, i);
       if (ipa_is_param_used (info, i))
 	fprintf (f, " used");
       c = ipa_get_controlled_uses (info, i);