diff mbox

Remove unused modified_noreturn_calls

Message ID alpine.LSU.2.11.1512171059270.3571@t29.fhfr.qr
State New
Headers show

Commit Message

Richard Biener Dec. 17, 2015, 9:59 a.m. UTC
Bootstrapped on x86_64-unknown-linux-gnu, applied.

Richard.

2015-12-16  Richard Biener  <rguenther@suse.de>

	* gimple-ssa.h (struct gimple_df): Remove modified_noreturn_calls
	field.
	* tree-ssa.c (delete_tree_ssa): Do not zero it.

Comments

Bernd Schmidt Dec. 17, 2015, 1:05 p.m. UTC | #1
On 12/17/2015 10:59 AM, Richard Biener wrote:
>
> +extern void gt_ggc_mx (gimple *&);
> +extern void gt_pch_nx (gimple *&);
> +

This doesn't occur in the ChangeLog - unrelated change?


Bernd
Richard Biener Dec. 17, 2015, 1:21 p.m. UTC | #2
On Thu, 17 Dec 2015, Bernd Schmidt wrote:

> On 12/17/2015 10:59 AM, Richard Biener wrote:
> > 
> > +extern void gt_ggc_mx (gimple *&);
> > +extern void gt_pch_nx (gimple *&);
> > +
> 
> This doesn't occur in the ChangeLog - unrelated change?

Not unrelated, it's required to make gtype-desc.c compile.  See
other occurances of these forward-decls.  They are needed from
hash_map/table.

Took me quite a while to figure out ;)

Richard.
diff mbox

Patch

Index: gcc/gimple-ssa.h
===================================================================
--- gcc/gimple-ssa.h	(revision 231696)
+++ gcc/gimple-ssa.h	(working copy)
@@ -44,6 +44,9 @@  struct tm_restart_hasher : ggc_ptr_hash<
   }
 };
 
+extern void gt_ggc_mx (gimple *&);
+extern void gt_pch_nx (gimple *&);
+
 struct ssa_name_hasher : ggc_ptr_hash<tree_node>
 {
   /* Hash a tree in a uid_decl_map.  */
@@ -67,13 +70,6 @@  struct ssa_name_hasher : ggc_ptr_hash<tr
    gimple_ accessor defined, all publicly modifiable fields should have
    gimple_set accessor.  */
 struct GTY(()) gimple_df {
-  /* A vector of all the noreturn calls passed to modify_stmt.
-     cleanup_control_flow uses it to detect cases where a mid-block
-     indirect call has been turned into a noreturn call.  When this
-     happens, all the instructions after the call are no longer
-     reachable and must be deleted as dead.  */
-  vec<gimple *, va_gc> *modified_noreturn_calls;
-
   /* Array of all SSA_NAMEs used in the function.  */
   vec<tree, va_gc> *ssa_names;
 
Index: gcc/tree-ssa.c
===================================================================
--- gcc/tree-ssa.c	(revision 231696)
+++ gcc/tree-ssa.c	(working copy)
@@ -1124,7 +1124,6 @@  delete_tree_ssa (struct function *fn)
   if (fn->gimple_df->decls_to_pointers != NULL)
     delete fn->gimple_df->decls_to_pointers;
   fn->gimple_df->decls_to_pointers = NULL;
-  fn->gimple_df->modified_noreturn_calls = NULL;
   fn->gimple_df = NULL;
 
   /* We no longer need the edge variable maps.  */