This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Handle -f{,no-}tree-store-copy-prop as all the other noped and obsoleted switches (PR middle-end/34317)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 3 Dec 2007 05:05:05 -0500
- Subject: [PATCH] Handle -f{,no-}tree-store-copy-prop as all the other noped and obsoleted switches (PR middle-end/34317)
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
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 <jakub@redhat.com>
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
ftree-store-copy-prop
Common
-This switch is obsolete
+Does nothing. Preserved for backward compatibility.
ftree-cselim
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. */
break;
Jakub