OSDN Git Service

2009-10-07 Mark Heffernan <meheff@google.com>
authormeheff <meheff@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Oct 2009 15:16:35 +0000 (15:16 +0000)
committermeheff <meheff@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Oct 2009 15:16:35 +0000 (15:16 +0000)
* ipa-prop.c (ipa_print_node_params) Only print
names of named arguments.

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

gcc/ChangeLog
gcc/ipa-prop.c

index 8f0ba61..7d066da 100644 (file)
@@ -1,3 +1,8 @@
+2009-10-07  Mark Heffernan  <meheff@google.com>
+
+       * ipa-prop.c (ipa_print_node_params) Only print
+       names of named arguments.
+
 2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
 
        * gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
index 7ffb676..0e6aaf5 100644 (file)
@@ -1398,7 +1398,9 @@ ipa_print_node_params (FILE * f, struct cgraph_node *node)
       temp = ipa_get_param (info, i);
       if (TREE_CODE (temp) == PARM_DECL)
        fprintf (f, "    param %d : %s", i,
-                (*lang_hooks.decl_printable_name) (temp, 2));
+                 (DECL_NAME (temp)
+                  ? (*lang_hooks.decl_printable_name) (temp, 2)
+                  : "(unnamed)"));
       if (ipa_is_param_modified (info, i))
        fprintf (f, " modified");
       if (ipa_is_param_called (info, i))