]> gcc.gnu.org Git - gcc.git/commitdiff
print-tree.c (print_node): Don't print DECL_INITIAL for PARM_DECL.
authorJakub Jelinek <jakub@redhat.com>
Tue, 4 Nov 2008 20:07:26 +0000 (21:07 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 4 Nov 2008 20:07:26 +0000 (21:07 +0100)
* print-tree.c (print_node): Don't print DECL_INITIAL
for PARM_DECL.

From-SVN: r141585

gcc/ChangeLog
gcc/print-tree.c

index 2c42f92ca9c353ecc7c8b91a77fa2f00e833e92b..13aad418f428e175c297fe25e0e4edfbc8020b2c 100644 (file)
@@ -1,5 +1,8 @@
 2008-11-04  Jakub Jelinek  <jakub@redhat.com>
 
+       * print-tree.c (print_node): Don't print DECL_INITIAL
+       for PARM_DECL.
+
        PR c/37106
        * c-common.c (parse_optimize_options): Save and restore
        flag_strict_aliasing around decode_options call.
index fb9f12692c6f881b069a5322c62ef06528bb3b1d..b3cd3356cd20a31b20db181506982857269de8a8 100644 (file)
@@ -502,7 +502,9 @@ print_node (FILE *file, const char *prefix, tree node, int indent)
        {
          print_node_brief (file, "attributes",
                            DECL_ATTRIBUTES (node), indent + 4);
-         print_node_brief (file, "initial", DECL_INITIAL (node), indent + 4);
+         if (code != PARM_DECL)
+           print_node_brief (file, "initial", DECL_INITIAL (node),
+                             indent + 4);
        }
       if (CODE_CONTAINS_STRUCT (code, TS_DECL_WRTL))
        {
This page took 0.08147 seconds and 5 git commands to generate.