From: Adam Nemet Date: Wed, 19 Nov 2008 23:13:29 +0000 (+0000) Subject: mips.c (mips_gimplify_va_arg_expr): Use -rsize with the same type as the first operan... X-Git-Tag: releases/gcc-4.4.0~1581 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3179cf8cf5798dc07552ccd4e6eb38bde77672a8;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b21a632bcf5a..a16ad1cc7b3f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-11-19 Adam Nemet + + * config/mips/mips.c (mips_gimplify_va_arg_expr): Use -rsize + with the same type as the first operand of the AND expression. + 2008-11-19 Vladimir Makarov PR bootstrap/37859 diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 0c2836dbd658..c868b10a1073 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; diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 85f9f279faf4..9c4ca41bb15c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2008-11-19 Adam Nemet + + * gcc.c-torture/compile/20081119-1.c: New test. + 2008-11-19 Dodji Seketeli PR c++/35405 diff --git a/gcc/testsuite/gcc.c-torture/compile/20081119-1.c b/gcc/testsuite/gcc.c-torture/compile/20081119-1.c new file mode 100644 index 000000000000..7402f549be5a --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20081119-1.c @@ -0,0 +1,5 @@ +unsigned long long +f (__builtin_va_list ap) +{ + return __builtin_va_arg (ap, unsigned long long); +}