From b3f7587309171c87d2a1ea819854c78acca8aa2a Mon Sep 17 00:00:00 2001 From: uros Date: Fri, 15 Feb 2008 09:55:36 +0000 Subject: [PATCH] PR middle-end/34621 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY when calculating alignment_pad. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132336 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/function.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5e03e4998eb..2fcf74b11ac 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 2008-02-15 Uros Bizjak + PR middle-end/34621 + * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY + when calculating alignment_pad. + +2008-02-15 Uros Bizjak + * config/i386/i386.h (CLEAR_RATIO): Use MIN macro. (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define. * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro diff --git a/gcc/function.c b/gcc/function.c index d3fbd17c8cc..275b70264cc 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; } } -- 2.11.0