From: rth Date: Tue, 13 Feb 2007 17:29:35 +0000 (+0000) Subject: * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip X-Git-Tag: upstream/4.9.2~50404 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=adde8f91b49b3094b24057b1c3402a9b1637dd61;p=platform%2Fupstream%2Flinaro-gcc.git * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip handled_component_p before looking for the indirect_ref. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121886 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 96ff9ac..e1afa71 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2007-02-13 Richard Henderson + * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip + handled_component_p before looking for the indirect_ref. + +2007-02-13 Richard Henderson + * config/i386/i386.md (bswapsi_1): Rename from bswapsi2, remove flags clobber. (bswapsi2): New expander, emit code for !TARGET_BSWAP. diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 1c5a159..b980857 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -5860,11 +5860,15 @@ va_list_skip_additions (tree lhs) ? ap.__offset + cst - 48 : ap.__offset + cst) + cst2). If the former, indicate that GPR registers are needed, if the latter, indicate that FPR registers are needed. + + Also look for LHS = (*ptr).field, where ptr is one of the forms + listed above. + On alpha, cfun->va_list_gpr_size is used as size of the needed - regs and cfun->va_list_fpr_size is a bitmask, bit 0 set if - GPR registers are needed and bit 1 set if FPR registers are needed. - Return true if va_list references should not be scanned for the current - statement. */ + regs and cfun->va_list_fpr_size is a bitmask, bit 0 set if GPR + registers are needed and bit 1 set if FPR registers are needed. + Return true if va_list references should not be scanned for the + current statement. */ static bool alpha_stdarg_optimize_hook (struct stdarg_info *si, tree lhs, tree rhs) @@ -5872,6 +5876,8 @@ alpha_stdarg_optimize_hook (struct stdarg_info *si, tree lhs, tree rhs) tree base, offset, arg1, arg2; int offset_arg = 1; + while (handled_component_p (rhs)) + rhs = TREE_OPERAND (rhs, 0); if (TREE_CODE (rhs) != INDIRECT_REF || TREE_CODE (TREE_OPERAND (rhs, 0)) != SSA_NAME) return false;