From: Segher Boessenkool Date: Fri, 16 Jan 2015 16:34:31 +0000 (+0100) Subject: rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD instead of UNITS_PER_WORD to descr... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ed821220ca4373512728444dd0d37e8f95a187c1;p=gcc.git rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD instead of UNITS_PER_WORD to describe the size of stack... * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD instead of UNITS_PER_WORD to describe the size of stack slots. From-SVN: r219752 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e6bc709c688..53363ccf9df 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-01-16 Segher Boessenkool + + * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD + instead of UNITS_PER_WORD to describe the size of stack slots. + 2015-01-16 Segher Boessenkool * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 1a3e7eb61ca..36cbef9b357 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -11239,7 +11239,7 @@ rs6000_va_start (tree valist, rtx nextarg) /* Find the overflow area. */ t = make_tree (TREE_TYPE (ovf), virtual_incoming_args_rtx); if (words != 0) - t = fold_build_pointer_plus_hwi (t, words * UNITS_PER_WORD); + t = fold_build_pointer_plus_hwi (t, words * MIN_UNITS_PER_WORD); t = build2 (MODIFY_EXPR, TREE_TYPE (ovf), ovf, t); TREE_SIDE_EFFECTS (t) = 1; expand_expr (t, const0_rtx, VOIDmode, EXPAND_NORMAL);