diff options
author | Geoffrey Keating <geoffk@apple.com> | 2004-09-11 05:03:14 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2004-09-11 05:03:14 +0000 |
commit | 70601cc243b361146a24149bf50145b86dc55dbe (patch) | |
tree | 7f412612473fd6ea154232a4bdc2c0a07e9be1af /gcc | |
parent | 8a45d680ae320db9537e5b50e26c9fe4ea68e3a5 (diff) | |
download | gcc-70601cc243b361146a24149bf50145b86dc55dbe.zip gcc-70601cc243b361146a24149bf50145b86dc55dbe.tar.gz gcc-70601cc243b361146a24149bf50145b86dc55dbe.tar.bz2 |
tree-pretty-print.c (dump_decl_name): Print unnamed decls as D.xxx rather than <Dxxx>.
* tree-pretty-print.c (dump_decl_name): Print unnamed decls as
D.xxx rather than <Dxxx>.
From-SVN: r87344
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-pretty-print.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3ff2a25..8b19ac6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-09-10 Geoffrey Keating <geoffk@apple.com> + + * tree-pretty-print.c (dump_decl_name): Print unnamed decls as + D.xxx rather than <Dxxx>. + 2004-09-10 Adam Nemet <anemet@lnxw.com> * configure.ac (AC_MSG_CHECKING(what linker to use)): diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index af3a029..5aa1743 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -162,12 +162,12 @@ dump_decl_name (pretty_printer *buffer, tree node, int flags) { if (TREE_CODE (node) == LABEL_DECL && LABEL_DECL_UID (node) != -1) - pp_printf (buffer, "<L" HOST_WIDE_INT_PRINT_DEC ">", + pp_printf (buffer, "L." HOST_WIDE_INT_PRINT_DEC, LABEL_DECL_UID (node)); else { char c = TREE_CODE (node) == CONST_DECL ? 'C' : 'D'; - pp_printf (buffer, "<%c%u>", c, DECL_UID (node)); + pp_printf (buffer, "%c.%u", c, DECL_UID (node)); } } } |