From 6f6b8f8142d2d6d0db596e21bc3ba30da9f90b2e Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Fri, 15 Feb 2008 10:55:36 +0100 Subject: re PR middle-end/34621 (gcc.c-torture/execute/va-arg-25.c:32: internal compiler error: in expand_call, at calls.c:2785) PR middle-end/34621 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY when calculating alignment_pad. From-SVN: r132336 --- gcc/function.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/function.c') diff --git a/gcc/function.c b/gcc/function.c index d3fbd17..275b702 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -3450,7 +3450,7 @@ pad_to_arg_alignment (struct args_size *offset_ptr, int boundary, sp_offset = 0; #endif - if (boundary > PARM_BOUNDARY && boundary > STACK_BOUNDARY) + if (boundary > PARM_BOUNDARY) { save_var = offset_ptr->var; save_constant = offset_ptr->constant; @@ -3476,7 +3476,7 @@ pad_to_arg_alignment (struct args_size *offset_ptr, int boundary, offset_ptr->var = size_binop (MINUS_EXPR, rounded, sp_offset_tree); /* ARGS_SIZE_TREE includes constant term. */ offset_ptr->constant = 0; - if (boundary > PARM_BOUNDARY && boundary > STACK_BOUNDARY) + if (boundary > PARM_BOUNDARY) alignment_pad->var = size_binop (MINUS_EXPR, offset_ptr->var, save_var); } @@ -3488,7 +3488,7 @@ pad_to_arg_alignment (struct args_size *offset_ptr, int boundary, #else CEIL_ROUND (offset_ptr->constant + sp_offset, boundary_in_bytes); #endif - if (boundary > PARM_BOUNDARY && boundary > STACK_BOUNDARY) + if (boundary > PARM_BOUNDARY) alignment_pad->constant = offset_ptr->constant - save_constant; } } -- cgit v1.1