aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-04-03 06:50:46 +0000
committerRichard Stallman <rms@gnu.org>1992-04-03 06:50:46 +0000
commit5130a5cc8a10f509735333863db0ba313b1d68b2 (patch)
tree60f6debd631d3ffddf4a91cc233f0416585ed36b /gcc
parent3a7587e44e18f503e4781a813ac1ab16d5fd0fa3 (diff)
downloadgcc-5130a5cc8a10f509735333863db0ba313b1d68b2.zip
gcc-5130a5cc8a10f509735333863db0ba313b1d68b2.tar.gz
gcc-5130a5cc8a10f509735333863db0ba313b1d68b2.tar.bz2
*** empty log message ***
From-SVN: r670
Diffstat (limited to 'gcc')
-rw-r--r--gcc/calls.c3
-rw-r--r--gcc/stmt.c10
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,