summaryrefslogtreecommitdiff
path: root/contrib/gcc/function.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/gcc/function.c')
-rw-r--r--contrib/gcc/function.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/contrib/gcc/function.c b/contrib/gcc/function.c
index 5592e482e2f61..f41982ec363f9 100644
--- a/contrib/gcc/function.c
+++ b/contrib/gcc/function.c
@@ -1028,12 +1028,11 @@ 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)
+ if (mode == BLKmode && align < (BIGGEST_ALIGNMENT / BITS_PER_UNIT))
abort();
p->slot = assign_stack_local (mode,
- (mode == BLKmode
- ? CEIL_ROUND (size, align / BITS_PER_UNIT)
- : size),
+ mode == BLKmode
+ ? CEIL_ROUND (size, align) : size,
align);
p->align = align;