OSDN Git Service

* reload1.c (reload) Align stack frame to cfun->stack_alignment_needed,
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Feb 2000 13:38:09 +0000 (13:38 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Feb 2000 13:38:09 +0000 (13:38 +0000)
not to BIGGEST_ALIGNMENT.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31860 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/reload1.c

index 4aab454..4ef65a9 100644 (file)
@@ -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.
index 4745773..f0aec44 100644 (file)
@@ -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 ();