From b91677486b8974be0bcf4327099ab8a178f258a8 Mon Sep 17 00:00:00 2001 From: amodra Date: Wed, 8 Sep 2004 23:19:58 +0000 Subject: [PATCH] * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of save_size. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87205 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/config/rs6000/rs6000.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 49c29396216..c61f9b118ca 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-09-09 Alan Modra + + * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of + save_size. + 2004-09-08 David Edelsohn * config/rs6000/power4.md (power4-lmul): du4 feeds iu1. diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 1881fc198c7..2dc1f778cd9 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -11728,6 +11728,7 @@ rs6000_stack_info (void) rs6000_stack_t *info_ptr = &info; int reg_size = TARGET_32BIT ? 4 : 8; int ehrd_size; + int save_align; HOST_WIDE_INT non_fixed_size; /* Zero all fields portably. */ @@ -11947,6 +11948,7 @@ rs6000_stack_info (void) break; } + save_align = (TARGET_ALTIVEC_ABI || DEFAULT_ABI == ABI_DARWIN) ? 16 : 8; info_ptr->save_size = RS6000_ALIGN (info_ptr->fp_size + info_ptr->gp_size + info_ptr->altivec_size @@ -11958,8 +11960,7 @@ rs6000_stack_info (void) + info_ptr->lr_size + info_ptr->vrsave_size + info_ptr->toc_size, - (TARGET_ALTIVEC_ABI || ABI_DARWIN) - ? 16 : 8); + save_align); non_fixed_size = (info_ptr->vars_size + info_ptr->parm_size -- 2.11.4.GIT