aboutsummaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2011-07-01 12:57:11 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2011-07-01 05:57:11 -0700
commit6bbec3e1561a40c4b0870df42dbcbfc88be89dab (patch)
treec0276f81c5779ba2a67c01881ec6b3d839a8a38f /gcc/function.c
parente35fceb583d780b2969dd3ab74419a70cd7affc4 (diff)
downloadgcc-6bbec3e1561a40c4b0870df42dbcbfc88be89dab.zip
gcc-6bbec3e1561a40c4b0870df42dbcbfc88be89dab.tar.gz
gcc-6bbec3e1561a40c4b0870df42dbcbfc88be89dab.tar.bz2
Use proper mode for stack save area.
2011-07-01 H.J. Lu <hongjiu.lu@intel.com> PR middle-end/48016 * explow.c (update_nonlocal_goto_save_area): Use proper mode for stack save area. * function.c (expand_function_start): Likewise. From-SVN: r175756
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/function.c b/gcc/function.c
index 5be018a..0b2f5aa 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -4782,11 +4782,12 @@ expand_function_start (tree subr)
if (!DECL_RTL_SET_P (var))
expand_decl (var);
- t_save = build4 (ARRAY_REF, ptr_type_node,
+ t_save = build4 (ARRAY_REF,
+ TREE_TYPE (TREE_TYPE (cfun->nonlocal_goto_save_area)),
cfun->nonlocal_goto_save_area,
integer_zero_node, NULL_TREE, NULL_TREE);
r_save = expand_expr (t_save, NULL_RTX, VOIDmode, EXPAND_WRITE);
- r_save = convert_memory_address (Pmode, r_save);
+ gcc_assert (GET_MODE (r_save) == Pmode);
emit_move_insn (r_save, targetm.builtin_setjmp_frame_value ());
update_nonlocal_goto_save_area ();