i386.c (ix86_compute_frame_size): Allow stack_alignment_needed to be non-default...
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Thu, 1 Feb 2001 12:23:19 +0000 (12:23 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 1 Feb 2001 12:23:19 +0000 (07:23 -0500)
* config/i386/i386.c (ix86_compute_frame_size): Allow
stack_alignment_needed to be non-default even if size is zero.

From-SVN: r39389

gcc/ChangeLog
gcc/config/i386/i386.c

index 0ec6c1a37f04e85bc776754f4c419e381e9efe7c..edd63af9f0dbc9f458cfb9f5889a7476eb0d158e 100644 (file)
@@ -1,3 +1,8 @@
+Thu Feb  1 07:22:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
+
+       * config/i386/i386.c (ix86_compute_frame_size): Allow
+       stack_alignment_needed to be non-default even if size is zero.
+
 2001-01-31  Alan Modra <alan@linuxcare.com.au>
 
        * (hppa_init_pic_save): Emit the pic offset table
index a6a0f6d8fcdd2f45e32134720a2cffafab3a6a1f..5026976261a6158b06393b8336db864c4d86ad8e 100644 (file)
@@ -1886,13 +1886,12 @@ ix86_compute_frame_size (size, nregs_on_stack, rpadding1, rpadding2)
 
   offset = frame_pointer_needed ? 8 : 4;
 
-  /* Do some sanity checking of stack_alignment_needed and preferred_alignment,
-     since i386 port is the only using those features that may break easilly.  */
+  /* Do some sanity checking of stack_alignment_needed and
+     preferred_alignment, since i386 port is the only using those features
+     that may break easilly.  */
 
   if (size && !stack_alignment_needed)
     abort ();
-  if (!size && stack_alignment_needed != STACK_BOUNDARY / BITS_PER_UNIT)
-    abort ();
   if (preferred_alignment < STACK_BOUNDARY / BITS_PER_UNIT)
     abort ();
   if (preferred_alignment > PREFERRED_STACK_BOUNDARY / BITS_PER_UNIT)