aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/mips
diff options
context:
space:
mode:
authorAdam Nemet <anemet@caviumnetworks.com>2008-11-19 23:13:29 +0000
committerAdam Nemet <nemet@gcc.gnu.org>2008-11-19 23:13:29 +0000
commit3179cf8cf5798dc07552ccd4e6eb38bde77672a8 (patch)
tree2efcca3478d88173cac50a16df9cd4b677a821e0 /gcc/config/mips
parentb55276c8acf960a6316f93ad55fb75003c36f9e2 (diff)
downloadgcc-3179cf8cf5798dc07552ccd4e6eb38bde77672a8.zip
gcc-3179cf8cf5798dc07552ccd4e6eb38bde77672a8.tar.gz
gcc-3179cf8cf5798dc07552ccd4e6eb38bde77672a8.tar.bz2
mips.c (mips_gimplify_va_arg_expr): Use -rsize with the same type as the first operand of the AND expression.
* 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. From-SVN: r142024
Diffstat (limited to 'gcc/config/mips')
-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 0c2836d..c868b10 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;