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]

[tree-ssa] remove -fdisable-tree-ssa


I'm about to start moving selected warnings from rtl optimizers
into tree optimizers.  At which point this option becomes broken.


r~


        * common.opt (fdisable-tree-ssa): Remove.
        * flags.h (flag_disable_tree_ssa): Remove.
        * toplev.c (flag_disable_tree_ssa): Remove.
        (f_options): Don't set it.
        * opts.c (common_handle_option): Likewise.
        * doc/invoke.texi (fdisable-tree-ssa): Remove.

Index: common.opt
===================================================================
RCS file: /cvs/gcc/gcc/gcc/common.opt,v
retrieving revision 1.14.2.17
diff -c -p -d -u -r1.14.2.17 common.opt
--- common.opt	30 Jan 2004 21:30:34 -0000	1.14.2.17
+++ common.opt	6 Feb 2004 23:11:10 -0000
@@ -295,10 +295,6 @@ fdiagnostics-show-location=
 Common Joined RejectNegative
 -fdiagnostics-show-location=[once|every-line]	How often to emit source location at the beginning of line-wrapped diagnostics
 
-fdisable-tree-ssa
-Common RejectNegative
-Disable SSA optimizations on trees
-
 fdump-
 Common Joined RejectNegative
 -fdump-<type>	Dump various compiler internals to a file
Index: flags.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/flags.h,v
retrieving revision 1.86.2.44
diff -c -p -d -u -r1.86.2.44 flags.h
--- flags.h	30 Jan 2004 21:30:34 -0000	1.86.2.44
+++ flags.h	6 Feb 2004 23:11:10 -0000
@@ -711,9 +711,6 @@ extern int flag_mudflap;
 extern int flag_mudflap_threads;
 extern int flag_mudflap_ignore_reads;
 
-/* Disable SSA optimizations on trees.  */
-extern int flag_disable_tree_ssa;
-
 /* Enable SSA-PRE on trees.  */
 extern int flag_tree_pre;
 
Index: opts.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/opts.c,v
retrieving revision 1.31.2.25
diff -c -p -d -u -r1.31.2.25 opts.c
--- opts.c	30 Jan 2004 21:30:34 -0000	1.31.2.25
+++ opts.c	6 Feb 2004 23:11:10 -0000
@@ -966,10 +966,6 @@ common_handle_option (size_t scode, cons
 	return 0;
       break;
 
-    case OPT_fdisable_tree_ssa:
-      flag_disable_tree_ssa = value;
-      break;
-
     case OPT_fdump_:
       if (!dump_switch_p (arg))
 	return 0;
Index: toplev.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/toplev.c,v
retrieving revision 1.654.2.92
diff -c -p -d -u -r1.654.2.92 toplev.c
--- toplev.c	30 Jan 2004 21:30:35 -0000	1.654.2.92
+++ toplev.c	6 Feb 2004 23:11:11 -0000
@@ -956,9 +956,6 @@ int flag_renumber_insns = 1;
 /* If nonzero, use the graph coloring register allocator.  */
 int flag_new_regalloc = 0;
 
-/* Disable SSA on trees optimizations.  */
-int flag_disable_tree_ssa = 0;
-
 /* Enable SSA-GVN on trees.  */
 int flag_tree_gvn = 0;
 
@@ -1176,7 +1173,6 @@ static const lang_independent_options f_
   { "trapv", &flag_trapv, 1 },
   { "wrapv", &flag_wrapv, 1 },
   { "new-ra", &flag_new_regalloc, 1 },
-  { "disable-tree-ssa", &flag_disable_tree_ssa, 1 },
   { "tree-gvn", &flag_tree_gvn, 1 },
   { "tree-pre", &flag_tree_pre, 1 },
   { "tree-ccp", &flag_tree_ccp, 1 },
Index: tree-optimize.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-optimize.c,v
retrieving revision 1.1.4.114
diff -c -p -d -u -r1.1.4.114 tree-optimize.c
--- tree-optimize.c	3 Feb 2004 18:46:35 -0000	1.1.4.114
+++ tree-optimize.c	6 Feb 2004 23:11:11 -0000
@@ -116,7 +116,7 @@ static struct tree_opt_pass pass_rebuild
 static bool
 gate_all_optimizations (void)
 {
-  return (optimize >= 1 && !flag_disable_tree_ssa
+  return (optimize >= 1
 	  /* Don't bother doing anything if the program has errors.  */
 	  && !(errorcount || sorrycount));
 }
Index: doc/invoke.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/invoke.texi,v
retrieving revision 1.152.2.68
diff -c -p -d -u -r1.152.2.68 invoke.texi
--- doc/invoke.texi	30 Jan 2004 22:24:26 -0000	1.152.2.68
+++ doc/invoke.texi	6 Feb 2004 23:11:11 -0000
@@ -304,7 +304,7 @@ in the following sections.
 -funroll-all-loops  -funroll-loops  -fpeel-loops @gol
 -funswitch-loops  -fold-unroll-loops  -fold-unroll-all-loops @gol
 -ftree-pre  -ftree-ccp  -ftree-dce  -ftree-copyprop  @gol
--fdisable-tree-ssa -ftree-dominator-opts @gol
+-ftree-dominator-opts @gol
 -ftree-loop-optimize -ftree-sra @gol
 --param @var{name}=@var{value}
 -O  -O0  -O1  -O2  -O3  -Os}
@@ -4261,10 +4261,6 @@ This option is always enabled by default
 those which have no call-preserved registers to use instead.
 
 Enabled at levels @option{-O2}, @option{-O3}, @option{-Os}.
-
-@item -fdisable-tree-ssa
-Do not apply SSA optimizations to the tree representation.  @emph{Note:}
-This option is only useful when debugging the tree SSA optimizers in GCC.
 
 @item -ftree-pre
 Perform Partial Redundancy Elimination (PRE) on trees.  @emph{Note:} This


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