diff options
author | Jason Merrill <jason@redhat.com> | 2009-02-18 16:01:03 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2009-02-18 16:01:03 -0500 |
commit | 98b806924df9a7bb913cc5cc2d2e7fdc7e2a5de0 (patch) | |
tree | 0f64524f372d342649161f19523537146008f861 /gcc/tree-pretty-print.c | |
parent | 1e80963d6176df27cd61f268ec14392cda8a309a (diff) | |
download | gcc-98b806924df9a7bb913cc5cc2d2e7fdc7e2a5de0.tar.gz |
re PR target/39179 (Wrong code in c++ for const members initialized in external file)
PR target/39179
* tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
value if DECL_EXTERNAL.
* tree-sra.c (sra_walk_gimple_assign): Likewise.
* target.h (gcc_target::binds_local_p): Clarify module.
* tree.h (TREE_PUBLIC): Clarify module.
From-SVN: r144270
Diffstat (limited to 'gcc/tree-pretty-print.c')
-rw-r--r-- | gcc/tree-pretty-print.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index ff45ecc635d..e01433b142d 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -2585,18 +2585,20 @@ print_call_name (pretty_printer *buffer, const_tree node) if (TREE_CODE (op0) == NON_LVALUE_EXPR) op0 = TREE_OPERAND (op0, 0); + again: switch (TREE_CODE (op0)) { case VAR_DECL: case PARM_DECL: + case FUNCTION_DECL: dump_function_name (buffer, op0); break; case ADDR_EXPR: case INDIRECT_REF: case NOP_EXPR: - dump_generic_node (buffer, TREE_OPERAND (op0, 0), 0, 0, false); - break; + op0 = TREE_OPERAND (op0, 0); + goto again; case COND_EXPR: pp_string (buffer, "("); |