Commit 3179cf8c by Adam Nemet Committed by Adam Nemet

mips.c (mips_gimplify_va_arg_expr): Use -rsize with the same type as the first…

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
parent b55276c8
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
......
......@@ -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;
......
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
......
unsigned long long
f (__builtin_va_list ap)
{
return __builtin_va_arg (ap, unsigned long long);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment