This is the mail archive of the 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]

[PATCH] Handle -f{,no-}tree-store-copy-prop as all the other noped and obsoleted switches (PR middle-end/34317)


This patch handles -f{,no-}tree-store-copy-prop the same way as
-f{,no-}{strength-reduce,loop-optpmize,rerun-loop-opt}, so that we don't
ICE if -fno-tree-store-copy-prop is passed on the command line.
Perhaps we should add a new keyword for such options to *.opt files (Nop,
Obsolete?) and handle it automatically, but guess that can wait for 4.4.

Ok for trunk?

2007-12-03  Jakub Jelinek  <>

	PR middle-end/34317
	* opts.c (common_handle_option): Handle OPT_ftree_store_copy_prop.
	* common.opt (ftree-store-copy-prop): Use the same help text as for
	other nop switches.

--- gcc/common.opt.jj	2007-11-10 01:15:00.000000000 +0100
+++ gcc/common.opt	2007-12-03 10:51:29.000000000 +0100
@@ -1055,7 +1055,7 @@ Enable copy propagation on trees
-This switch is obsolete
+Does nothing.  Preserved for backward compatibility.
 Common Report Var(flag_tree_cselim) Init(2) Optimization
--- gcc/opts.c.jj	2007-11-20 11:31:10.000000000 +0100
+++ gcc/opts.c	2007-12-03 10:52:29.000000000 +0100
@@ -1777,6 +1777,7 @@ common_handle_option (size_t scode, cons
     case OPT_floop_optimize:
     case OPT_frerun_loop_opt:
     case OPT_fstrength_reduce:
+    case OPT_ftree_store_copy_prop:
       /* These are no-ops, preserved for backward compatibility.  */


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