aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Heffernan <meheff@google.com>2009-10-08 15:16:35 +0000
committerMark Heffernan <meheff@gcc.gnu.org>2009-10-08 15:16:35 +0000
commit90e1a3493092a41db18dc3ba5ced7814ca37af15 (patch)
tree11fe4e2c49472dc413d9c78a0aa4500778318bf3 /gcc
parent70277b30730f0356c6cc70eccc8922f4447cbe5e (diff)
downloadgcc-90e1a3493092a41db18dc3ba5ced7814ca37af15.zip
gcc-90e1a3493092a41db18dc3ba5ced7814ca37af15.tar.gz
gcc-90e1a3493092a41db18dc3ba5ced7814ca37af15.tar.bz2
2009-10-07 Mark Heffernan <meheff@google.com>
* ipa-prop.c (ipa_print_node_params) Only print names of named arguments. From-SVN: r152561
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/ipa-prop.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8f0ba61..7d066da 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c
index 7ffb676..0e6aaf5 100644
--- a/gcc/ipa-prop.c
+++ b/gcc/ipa-prop.c
@@ -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))