From 5130a5cc8a10f509735333863db0ba313b1d68b2 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Fri, 3 Apr 1992 06:50:46 +0000 Subject: [PATCH] *** empty log message *** From-SVN: r670 --- gcc/calls.c | 3 ++- gcc/stmt.c | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/gcc/calls.c b/gcc/calls.c index 023e337..e57531d 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -796,7 +796,8 @@ expand_call (exp, target, ignore, modifier) } copy = gen_rtx (MEM, BLKmode, - allocate_dynamic_stack_space (size_rtx, 0)); + allocate_dynamic_stack_space (size_rtx, 0, + TYPE_ALIGN (type))); } else copy = assign_stack_temp (TYPE_MODE (type), size, 1); diff --git a/gcc/stmt.c b/gcc/stmt.c index 7446664..80f12c6f 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -2745,7 +2745,7 @@ expand_decl (decl) free_temp_slots (); /* Allocate space on the stack for the variable. */ - address = allocate_dynamic_stack_space (size, 0); + address = allocate_dynamic_stack_space (size, 0, DECL_ALIGN (decl)); if (nonlocal_goto_stack_level != 0) emit_move_insn (nonlocal_goto_stack_level, stack_pointer_rtx); @@ -3651,7 +3651,7 @@ expand_end_case (orig_index) if (HAVE_casesi) { enum machine_mode index_mode = SImode; - tree index_type = GET_MODE_BITSIZE (index_mode); + int index_bits = GET_MODE_BITSIZE (index_mode); /* Convert the index to SImode. */ if (GET_MODE_BITSIZE (TYPE_MODE (TREE_TYPE (index_expr))) @@ -3662,7 +3662,7 @@ expand_end_case (orig_index) minval = integer_zero_node; } if (TYPE_MODE (TREE_TYPE (index_expr)) != index_mode) - index_expr = convert (type_for_size (index_type, 0), + index_expr = convert (type_for_size (index_bits, 0), index_expr); index = expand_expr (index_expr, 0, VOIDmode, 0); emit_queue (); @@ -3683,9 +3683,9 @@ expand_end_case (orig_index) TREE_TYPE (index_expr), index_expr, minval))); index = expand_expr (index_expr, 0, VOIDmode, 0); - index = convert_to_mode (Pmode, index, 1); emit_queue (); - index = protect_from_queue (index, 0); + /* convert_to_mode calls protect_from_queue. */ + index = convert_to_mode (Pmode, index, 1); do_pending_stack_adjust (); do_tablejump (index, Pmode, -- 2.7.4