aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-07-10 11:47:36 -0700
committerRichard Henderson <rth@gcc.gnu.org>2004-07-10 11:47:36 -0700
commit07b8df0a3d66c6198221375616d9685d81a1fc1a (patch)
tree72d5e9df6e1fad670ec1a43acd8622cb51fb195d /gcc/builtins.c
parent50389094cc83594333d124581d737d35c8527c98 (diff)
downloadgcc-07b8df0a3d66c6198221375616d9685d81a1fc1a.zip
gcc-07b8df0a3d66c6198221375616d9685d81a1fc1a.tar.gz
gcc-07b8df0a3d66c6198221375616d9685d81a1fc1a.tar.bz2
builtins.c (std_gimplify_va_arg_expr): Widen align/boundary to HOST_WIDE_INT.
* builtins.c (std_gimplify_va_arg_expr): Widen align/boundary to HOST_WIDE_INT. Fold pad-args-down arithmetic. From-SVN: r84469
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r--gcc/builtins.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c
index 7c9334b..02fdc92 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -4474,7 +4474,7 @@ tree
std_gimplify_va_arg_expr (tree valist, tree type, tree *pre_p, tree *post_p)
{
tree addr, t, type_size, rounded_size, valist_tmp;
- unsigned int align, boundary;
+ unsigned HOST_WIDE_INT align, boundary;
#ifdef ARGS_GROW_DOWNWARD
/* All of the alignment and movement below is for args-grow-up machines.
@@ -4520,7 +4520,7 @@ std_gimplify_va_arg_expr (tree valist, tree type, tree *pre_p, tree *post_p)
t = fold (build3 (COND_EXPR, sizetype, t, size_zero_node,
size_binop (MINUS_EXPR, rounded_size, type_size)));
t = fold_convert (TREE_TYPE (addr), t);
- addr = build2 (PLUS_EXPR, TREE_TYPE (addr), addr, t);
+ addr = fold (build2 (PLUS_EXPR, TREE_TYPE (addr), addr, t));
}
/* Compute new value for AP. */