diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-07-01 12:57:11 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-07-01 12:57:11 +0000 |
commit | 21dc8b2bc65ccb999dcfdb5e383084f4c4ea0343 (patch) | |
tree | c0276f81c5779ba2a67c01881ec6b3d839a8a38f /gcc/explow.c | |
parent | 9c4d99038790fb42360171207840c774b4c2dbfe (diff) | |
download | gcc-21dc8b2bc65ccb999dcfdb5e383084f4c4ea0343.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175756 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/explow.c')
-rw-r--r-- | gcc/explow.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/explow.c b/gcc/explow.c index c7d81838033..a042273ec94 100644 --- a/gcc/explow.c +++ b/gcc/explow.c @@ -1102,7 +1102,9 @@ update_nonlocal_goto_save_area (void) first one is used for the frame pointer save; the rest are sized by STACK_SAVEAREA_MODE. Create a reference to array index 1, the first of the stack save area slots. */ - t_save = build4 (ARRAY_REF, ptr_type_node, cfun->nonlocal_goto_save_area, + t_save = build4 (ARRAY_REF, + TREE_TYPE (TREE_TYPE (cfun->nonlocal_goto_save_area)), + cfun->nonlocal_goto_save_area, integer_one_node, NULL_TREE, NULL_TREE); r_save = expand_expr (t_save, NULL_RTX, VOIDmode, EXPAND_WRITE); |