rtl_data.x_stack_slot_list becomes an rtx_expr_list
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Aug 2014 20:38:06 +0000 (20:38 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 27 Aug 2014 20:38:06 +0000 (20:38 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214604 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/emit-rtl.c
gcc/function.h

index 25939ac..9fbf522 100644 (file)
@@ -1,6 +1,14 @@
 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.
+
+2014-08-27  David Malcolm  <dmalcolm@redhat.com>
+
+       * function.h (struct rtl_data): Strengthen field
        x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
        * rtl.h (remove_node_from_expr_list): Strengthen second param from
        rtx * to rtx_expr_list **.
index f5ec8b4..6cfaef6 100644 (file)
@@ -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
index a176e0a..1f8da7a 100644 (file)
@@ -280,7 +280,7 @@ struct GTY(()) rtl_data {
 
   /* List (chain of EXPR_LISTs) of all stack slots in this function.
      Made for the sake of unshare_all_rtl.  */
-  rtx x_stack_slot_list;
+  rtx_expr_list *x_stack_slot_list;
 
   /* List of empty areas in the stack frame.  */
   struct frame_space *frame_space_list;