From fcecf84ffc40bf46ebaa9583bacf4e945ea6306c Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Sat, 11 Aug 2012 16:45:15 +0200 Subject: alpha.c (alpha_stdarg_optimize_hook): Shift DECL_UID in the va_list_vars bitmap by num_ssa_names. * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Shift DECL_UID in the va_list_vars bitmap by num_ssa_names. From-SVN: r190316 --- gcc/ChangeLog | 5 +++++ gcc/config/alpha/alpha.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 11d323c..1aff59d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2012-08-11 Uros Bizjak + * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Shift DECL_UID + in the va_list_vars bitmap by num_ssa_names. + +2012-08-11 Uros Bizjak + * config/i386/sse.md (xop integer multiply/add insns): Use register_operand for operand 3 predicate. (xop_phaddbq): Fix vec_select selectors. diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 2d6ba95..0aab453 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -5942,7 +5942,7 @@ alpha_stdarg_optimize_hook (struct stdarg_info *si, const_gimple stmt) base = get_base_address (base); if (TREE_CODE (base) != VAR_DECL - || !bitmap_bit_p (si->va_list_vars, DECL_UID (base))) + || !bitmap_bit_p (si->va_list_vars, DECL_UID (base) + num_ssa_names)) return false; offset = gimple_op (stmt, 1 + offset_arg); -- cgit v1.1