summaryrefslogtreecommitdiffstats
path: root/gcc/config/mips/mips.c
diff options
context:
space:
mode:
authornemet <nemet@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-19 23:13:29 +0000
committernemet <nemet@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-19 23:13:29 +0000
commit70f1c3b70ff771a0e4f615e8e5607bf9400b78e5 (patch)
tree2efcca3478d88173cac50a16df9cd4b677a821e0 /gcc/config/mips/mips.c
parentf25aa85d9f09c9974a2fda9f47f9ac11593d8d77 (diff)
downloadppe42-gcc-70f1c3b70ff771a0e4f615e8e5607bf9400b78e5.tar.gz
ppe42-gcc-70f1c3b70ff771a0e4f615e8e5607bf9400b78e5.zip
* 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
Diffstat (limited to 'gcc/config/mips/mips.c')
-rw-r--r--gcc/config/mips/mips.c2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud