]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* reload1.c (reload) Align stack frame to cfun->stack_alignment_needed,
authorJan Hubicka <jh@suse.cz>
Wed, 9 Feb 2000 13:38:09 +0000 (14:38 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 9 Feb 2000 13:38:09 +0000 (13:38 +0000)
not to BIGGEST_ALIGNMENT.

From-SVN: r31860

gcc/ChangeLog
gcc/reload1.c

index 4aab454f101758a30342579e22feeb947ee06f8c..4ef65a9e1625b5c61eff7487cc6d168cc6d4c77b 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 4745773dd8d811ad7384bd35ac0cb1aa02a6619e..f0aec4478d09ee3b38fa7ea94fdaead488fa78b0 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 ();