From 70f1c3b70ff771a0e4f615e8e5607bf9400b78e5 Mon Sep 17 00:00:00 2001 From: nemet Date: Wed, 19 Nov 2008 23:13:29 +0000 Subject: * config/mips/mips.c (mips_gimplify_va_arg_expr): Use -rsize with the same type as the first operand of the AND expression. testsuite/ * gcc.c-torture/compile/20081119-1.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142024 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config/mips/mips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/config/mips/mips.c') diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 0c2836dbd65..c868b10a107 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -5332,7 +5332,7 @@ mips_gimplify_va_arg_expr (tree valist, tree type, gimple_seq *pre_p, { /* [1] Emit code for: off &= -rsize. */ t = build2 (BIT_AND_EXPR, TREE_TYPE (off), off, - build_int_cst (NULL_TREE, -rsize)); + build_int_cst (TREE_TYPE (off), -rsize)); gimplify_assign (off, t, pre_p); } osize = rsize; -- cgit v1.2.3