Commit 6f67a30d by John Wehle Committed by Jeff Law

function.c (assign_stack_temp_for_type): Abort if mode == Blkmode and align is…

function.c (assign_stack_temp_for_type): Abort if mode == Blkmode and align is less than BIGGEST_ALIGNMENT / BITS_PER_UNIT.

        * function.c (assign_stack_temp_for_type): Abort
        if mode == Blkmode and align is less than
        BIGGEST_ALIGNMENT / BITS_PER_UNIT.
        (assign_stack_temp_for_type): Round the size parameter
        passed to assign_stack_local instead of size itself.
Bootstrapped on the PA and x86.

From-SVN: r25593
parent 01587fa2
Fri Mar 5 02:14:54 1999 John Wehle (john@feith.com)
* function.c (assign_stack_temp_for_type): Abort
if mode == Blkmode and align is less than
BIGGEST_ALIGNMENT / BITS_PER_UNIT.
(assign_stack_temp_for_type): Round the size parameter
passed to assign_stack_local instead of size itself.
Thu Mar 4 15:00:35 1999 Richard Henderson <rth@cygnus.com> Thu Mar 4 15:00:35 1999 Richard Henderson <rth@cygnus.com>
* flow.c (delete_unreachable_blocks): Mark blocks as they * flow.c (delete_unreachable_blocks): Mark blocks as they
......
...@@ -998,12 +998,12 @@ assign_stack_temp_for_type (mode, size, keep, type) ...@@ -998,12 +998,12 @@ assign_stack_temp_for_type (mode, size, keep, type)
So for requests which depended on the rounding of SIZE, we go ahead 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 and round it now. We also make sure ALIGNMENT is at least
BIGGEST_ALIGNMENT. */ BIGGEST_ALIGNMENT. */
if (mode == BLKmode) if (mode == BLKmode && align < (BIGGEST_ALIGNMENT / BITS_PER_UNIT))
{ abort();
align = MAX (align, BIGGEST_ALIGNMENT / BITS_PER_UNIT); p->slot = assign_stack_local (mode,
size = CEIL_ROUND (size, align); mode == BLKmode
} ? CEIL_ROUND (size, align) : size,
p->slot = assign_stack_local (mode, size, align); align);
p->align = align; p->align = align;
p->alias_set = alias_set; p->alias_set = alias_set;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment