This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Committed] Fix TODOs flags


When either Honza added TODO_dump_cgraph or Diego added TODO_update_ssa
(both came in via merges), the TODO bits were overlapping.  Anyways
this patch fixes that bug.

Applied as pre-approved by Ian Taylor after a bootstrap on
i686-pc-linux-gnu with no regressions.

Thanks,
Andrew Pinski

ChangeLog:
	* tree-pass.h (TODO_update_ssa): Fix which bit is used to take
	into account for TODO_dump_cgraph.
	(TODO_update_ssa_no_phi): Likewise.
	(TODO_update_ssa_full_phi): Likewise.
	(TODO_update_ssa_only_virtuals): Likewise.
	(TODO_remove_unused_locals): Likewise.
	(TODO_set_props): Likewise.
	(TODO_update_stmt_usage): Likewise.
Index: tree-pass.h
===================================================================
--- tree-pass.h	(revision 116108)
+++ tree-pass.h	(working copy)
@@ -177,13 +177,13 @@
    in blocks that have one or more edges with no incoming definition
    for O_j.  This would lead to uninitialized warnings for O_j's
    symbol.  */
-#define TODO_update_ssa			(1 << 7)
+#define TODO_update_ssa			(1 << 8)
 
 /* Update the SSA form without inserting any new PHI nodes at all.
    This is used by passes that have either inserted all the PHI nodes
    themselves or passes that need only to patch use-def and def-def
    chains for virtuals (e.g., DCE).  */
-#define TODO_update_ssa_no_phi		(1 << 8)
+#define TODO_update_ssa_no_phi		(1 << 9)
 
 /* Insert PHI nodes everywhere they are needed.  No pruning of the
    IDF is done.  This is used by passes that need the PHI nodes for
@@ -194,7 +194,7 @@
    may be doing something wrong.  Inserting PHI nodes for an old name
    where not all edges carry a new replacement may lead to silent
    codegen errors or spurious uninitialized warnings.  */
-#define TODO_update_ssa_full_phi	(1 << 9)
+#define TODO_update_ssa_full_phi	(1 << 10)
 
 /* Passes that update the SSA form on their own may want to delegate
    the updating of virtual names to the generic updater.  Since FUD
@@ -202,20 +202,20 @@
    to do.  NOTE: If this flag is used, any OLD->NEW mappings for real
    names are explicitly destroyed and only the symbols marked for
    renaming are processed.  */
-#define TODO_update_ssa_only_virtuals	(1 << 10)
+#define TODO_update_ssa_only_virtuals	(1 << 11)
 
 /* Some passes leave unused local variables that can be removed from
    cfun->unexpanded_var_list.  This reduces the size of dump files and
    the memory footprint for VAR_DECLs.  */
-#define TODO_remove_unused_locals	(1 << 11)
+#define TODO_remove_unused_locals	(1 << 12)
 
 /* Internally used for the first in a sequence of passes.  It is set
    for the passes that are handed to register_dump_files.  */
-#define TODO_set_props			(1 << 12)
+#define TODO_set_props			(1 << 13)
 
 /* Set by passes that may make SMT's that were previously never used
    in statements, used.  */
-#define TODO_update_smt_usage           (1 << 13)
+#define TODO_update_smt_usage           (1 << 14)
 
 #define TODO_update_ssa_any		\
     (TODO_update_ssa			\

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]