From e670d9e4cec6b4d18e98bf8e0fddc0373d781c9f Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 29 Sep 2004 18:22:07 -0700 Subject: 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 --- gcc/tree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/tree.h') diff --git a/gcc/tree.h b/gcc/tree.h index 3814fda..b40253c 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -2123,7 +2123,7 @@ struct tree_binfo GTY (()) /* In a VAR_DECL, nonzero if the decl is a register variable with an explicit asm specification. */ -#define DECL_HARD_REGISTER(NODE) (DECL_CHECK (NODE)->decl.inline_flag) +#define DECL_HARD_REGISTER(NODE) (VAR_DECL_CHECK (NODE)->decl.inline_flag) /* Value of the decls's visibility attribute */ #define DECL_VISIBILITY(NODE) (DECL_CHECK (NODE)->decl.visibility) -- cgit v1.1