From e231737afe53ea65e6ef7664b351b49452a0b67d Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Tue, 13 Jul 2004 23:20:16 +0000 Subject: xtensa.c (xtensa_gimplify_va_arg_expr): Swap arguments for COND_EXPR in big-endian adjustment code. * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap arguments for COND_EXPR in big-endian adjustment code. From-SVN: r84655 --- gcc/ChangeLog | 5 +++++ gcc/config/xtensa/xtensa.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cf390c0..4ac79c6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-07-13 Bob Wilson + + * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap + arguments for COND_EXPR in big-endian adjustment code. + 2004-07-13 John David Anglin * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete. diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index b3bd840..09f8352 100644 --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c @@ -2623,7 +2623,7 @@ xtensa_gimplify_va_arg_expr (tree valist, tree type, tree *pre_p, { t = size_int (PARM_BOUNDARY / BITS_PER_UNIT); t = fold (build (GE_EXPR, boolean_type_node, type_size, t)); - t = fold (build (COND_EXPR, sizetype, t, type_size, va_size)); + t = fold (build (COND_EXPR, sizetype, t, va_size, type_size)); size = t; } else -- cgit v1.1