summaryrefslogtreecommitdiff
path: root/contrib/gcc/function.c
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>1999-11-01 18:56:02 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>1999-11-01 18:56:02 +0000
commit8364821558cf973f95c6edfa28b4b7ffdab8a1e9 (patch)
tree35316006d5c6d7fb97d7553565415df11516a3db /contrib/gcc/function.c
parent3a81009a0582b1687da08d02517769686186cb72 (diff)
Notes
Diffstat (limited to 'contrib/gcc/function.c')
-rw-r--r--contrib/gcc/function.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/gcc/function.c b/contrib/gcc/function.c
index bf3a3fba0afc..e597d33e890d 100644
--- a/contrib/gcc/function.c
+++ b/contrib/gcc/function.c
@@ -1030,11 +1030,12 @@ assign_stack_temp_for_type (mode, size, keep, type)
So for requests which depended on the rounding of SIZE, we go ahead
and round it now. We also make sure ALIGNMENT is at least
BIGGEST_ALIGNMENT. */
- if (mode == BLKmode && align < (BIGGEST_ALIGNMENT / BITS_PER_UNIT))
+ if (mode == BLKmode && align < BIGGEST_ALIGNMENT)
abort();
p->slot = assign_stack_local (mode,
- mode == BLKmode
- ? CEIL_ROUND (size, align) : size,
+ (mode == BLKmode
+ ? CEIL_ROUND (size, align / BITS_PER_UNIT)
+ : size),
align);
p->align = align;