diff options
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/reload1.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4aab454..4ef65a9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Wed Feb 9 14:18:08 MET 2000 Jan Hubicka <jh@suse.cz> + + * reload1.c (reload) Align stack frame to cfun->stack_alignment_needed, + not to BIGGEST_ALIGNMENT. + 2000-02-08 Geoff Keating <geoffk@cygnus.com> * dwarf2.h (DW_CFA_GNU_negative_offset_extended): New constant. diff --git a/gcc/reload1.c b/gcc/reload1.c index 4745773..f0aec44 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -841,11 +841,12 @@ reload (first, global, dumpfile) HOST_WIDE_INT starting_frame_size; - /* Round size of stack frame to BIGGEST_ALIGNMENT. This must be done + /* Round size of stack frame to stack_alignment_needed. This must be done here because the stack size may be a part of the offset computation for register elimination, and there might have been new stack slots created in the last iteration of this loop. */ - assign_stack_local (BLKmode, 0, 0); + if (cfun->stack_alignment_needed) + assign_stack_local (BLKmode, 0, cfun->stack_alignment_needed); starting_frame_size = get_frame_size (); |
