diff options
author | Richard Henderson <rth@redhat.com> | 2004-09-29 18:22:07 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2004-09-29 18:22:07 -0700 |
commit | e670d9e4cec6b4d18e98bf8e0fddc0373d781c9f (patch) | |
tree | bfe96a23c68a90b5da0a5b5bfb8294fbe08ac645 /gcc/tree-pretty-print.c | |
parent | 67a741463c0555aea1acb65ebe874ad914fd96cf (diff) | |
download | gcc-e670d9e4cec6b4d18e98bf8e0fddc0373d781c9f.zip gcc-e670d9e4cec6b4d18e98bf8e0fddc0373d781c9f.tar.gz gcc-e670d9e4cec6b4d18e98bf8e0fddc0373d781c9f.tar.bz2 |
re PR tree-optimization/17739 (tree-optimizers extend the lifetime of a hard register variable)
PR 17739
* tree-gimple.c (is_gimple_reg): Reject hard registers.
(is_gimple_asm_val): New.
* tree-gimple.h (is_gimple_asm_val): Declare.
* gimplify.c (gimplify_asm_expr): Use it.
* tree-pretty-print.c (print_declaration): Dump hard regs.
* tree-outof-ssa.c (check_replaceable): Don't check for hard regs.
* tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
* tree-ssa-pre.c (is_undefined_value): Likewise.
* tree-ssa-copy.c (may_propagate_copy): Likewise.
(may_propagate_copy_into_asm): Protect DECL_HARD_REGISTER.
* tree-ssa.c (warn_uninit): Likewise.
* tree.h (DECL_HARD_REGISTER): Check for VAR_DECL.
From-SVN: r88321
Diffstat (limited to 'gcc/tree-pretty-print.c')
-rw-r--r-- | gcc/tree-pretty-print.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index b59e6dd..9337c38 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -1566,6 +1566,14 @@ print_declaration (pretty_printer *buffer, tree t, int spc, int flags) dump_generic_node (buffer, t, spc, flags, false); } + if (TREE_CODE (t) == VAR_DECL && DECL_HARD_REGISTER (t)) + { + pp_string (buffer, " __asm__ "); + pp_character (buffer, '('); + dump_generic_node (buffer, DECL_ASSEMBLER_NAME (t), spc, flags, false); + pp_character (buffer, ')'); + } + /* The initial value of a function serves to determine wether the function is declared or defined. So the following does not apply to function nodes. */ |