aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2001-02-01 12:23:19 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2001-02-01 07:23:19 -0500
commitfcbfaa65a5e27ee6f772056bf52cf27202518def (patch)
tree95029e95443d8cc41bb61c603067b6f2bddbaaf0 /gcc/config
parentc0b00d37294a7ee398e99038d7fd6ec168a1461b (diff)
downloadgcc-fcbfaa65a5e27ee6f772056bf52cf27202518def.zip
gcc-fcbfaa65a5e27ee6f772056bf52cf27202518def.tar.gz
gcc-fcbfaa65a5e27ee6f772056bf52cf27202518def.tar.bz2
i386.c (ix86_compute_frame_size): Allow stack_alignment_needed to be non-default even if size is zero.
* config/i386/i386.c (ix86_compute_frame_size): Allow stack_alignment_needed to be non-default even if size is zero. From-SVN: r39389
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/i386/i386.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index a6a0f6d..5026976 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -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)