diff options
author | Adam Nemet <anemet@caviumnetworks.com> | 2008-11-19 23:13:29 +0000 |
---|---|---|
committer | Adam Nemet <nemet@gcc.gnu.org> | 2008-11-19 23:13:29 +0000 |
commit | 3179cf8cf5798dc07552ccd4e6eb38bde77672a8 (patch) | |
tree | 2efcca3478d88173cac50a16df9cd4b677a821e0 | |
parent | b55276c8acf960a6316f93ad55fb75003c36f9e2 (diff) | |
download | gcc-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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/mips/mips.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20081119-1.c | 5 |
4 files changed, 15 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b21a632..a16ad1c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-11-19 Adam Nemet <anemet@caviumnetworks.com> + + * 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 <vmakarov@redhat.com> PR bootstrap/37859 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; diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 85f9f27..9c4ca41 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2008-11-19 Adam Nemet <anemet@caviumnetworks.com> + + * gcc.c-torture/compile/20081119-1.c: New test. + 2008-11-19 Dodji Seketeli <dodji@redhat.com> 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 0000000..7402f54 --- /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); +} |