diff options
author | David Malcolm <dmalcolm@redhat.com> | 2014-08-27 20:38:06 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2014-08-27 20:38:06 +0000 |
commit | 0f4783c7f7c01596686da28e6fe86e0b69a43f3e (patch) | |
tree | 8d4ec8a41c63185441424d525a970a78807fbd37 /gcc/emit-rtl.c | |
parent | 2382940b419263c416f86cbf50cfcf5f18c22bdb (diff) | |
download | gcc-0f4783c7f7c01596686da28e6fe86e0b69a43f3e.zip gcc-0f4783c7f7c01596686da28e6fe86e0b69a43f3e.tar.gz gcc-0f4783c7f7c01596686da28e6fe86e0b69a43f3e.tar.bz2 |
rtl_data.x_stack_slot_list becomes an rtx_expr_list
gcc/
2014-08-27 David Malcolm <dmalcolm@redhat.com>
* function.h (struct rtl_data): Strengthen field
"x_stack_slot_list" from rtx to rtx_expr_list *.
* emit-rtl.c (unshare_all_rtl_1): Add a checked cast
when assigning to stack_slot_list.
From-SVN: r214604
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index f5ec8b4..6cfaef6 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -2555,7 +2555,8 @@ unshare_all_rtl_1 (rtx_insn *insn) This special care is necessary when the stack slot MEM does not actually appear in the insn chain. If it does appear, its address is unshared from all else at that point. */ - stack_slot_list = copy_rtx_if_shared (stack_slot_list); + stack_slot_list = safe_as_a <rtx_expr_list *> ( + copy_rtx_if_shared (stack_slot_list)); } /* Go through all the RTL insn bodies and copy any invalid shared |