This is an automated email from the git hooks/post-receive script.
unknown user pushed a commit to branch aoliva/pr64164 in repository gcc.
The following commit(s) were added to refs/heads/aoliva/pr64164 by this push: new a284ae4 accept ssa names as reg exprs a284ae4 is described below
commit a284ae4148a6561cbc8555b5ebed8901e0bbfac0 Author: Alexandre Oliva aoliva@redhat.com Date: Sun Aug 2 20:27:01 2015 -0300
accept ssa names as reg exprs --- gcc/emit-rtl.c | 5 ++++- gcc/stmt.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 0648af6..3b95c5d 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -63,6 +63,7 @@ along with GCC; see the file COPYING3. If not see #include "target.h" #include "builtins.h" #include "rtl-iter.h" +#include "stor-layout.h"
struct target_rtl default_target_rtl; #if SWITCHABLE_TARGET @@ -1243,7 +1244,9 @@ set_reg_attrs_for_decl_rtl (tree t, rtx x) if (REG_P (x)) REG_ATTRS (x) = get_reg_attrs (t, byte_lowpart_offset (GET_MODE (x), - DECL_MODE (tdecl))); + DECL_P (tdecl) + ? DECL_MODE (tdecl) + : TYPE_MODE (TREE_TYPE (tdecl)))); if (GET_CODE (x) == CONCAT) { if (REG_P (XEXP (x, 0))) diff --git a/gcc/stmt.c b/gcc/stmt.c index 391686c..e7f7dd4 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -891,7 +891,7 @@ emit_case_decision_tree (tree index_expr, tree index_type, { index = copy_to_reg (index); if (TREE_CODE (index_expr) == SSA_NAME) - set_reg_attrs_for_decl_rtl (SSA_NAME_VAR (index_expr), index); + set_reg_attrs_for_decl_rtl (index_expr, index); }
balance_case_nodes (&case_list, NULL);