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]

[patch] common.opt: Remove -fforce-mem.


Hi,

Attached is a patch to remove -fforce-mem as it was deprecated a lont
time ago.

Bootstrapped on i686-pc-linux-gnu.  OK to apply?

Kazu Hirata

2006-12-23  Kazu Hirata  <kazu@codesourcery.com>

	* common.opt (flag_force_mem): Remove.
	* doc/invoke.texi (-fforce-mem): Remove.
	* opts.c (common_handle_option): Don't handle OPT_fforce_mem.

Index: common.opt
===================================================================
--- common.opt	(revision 120165)
+++ common.opt	(working copy)
@@ -438,12 +438,6 @@ fforce-addr
 Common Report Var(flag_force_addr)
 Copy memory address constants into registers before use
 
-; Nonzero for -fforce-mem: load memory value into a register
-; before arithmetic on it.  This makes better cse but slower compilation.
-fforce-mem
-Common Report Var(flag_force_mem)
-Copy memory operands into registers before use
-
 fforward-propagate
 Common Report Var(flag_forward_propagate)
 Perform a forward propagation pass on RTL
Index: doc/invoke.texi
===================================================================
--- doc/invoke.texi	(revision 120165)
+++ doc/invoke.texi	(working copy)
@@ -4638,14 +4638,6 @@ function calls and pops them all at once
 
 Disabled at levels @option{-O}, @option{-O2}, @option{-O3}, @option{-Os}.
 
-@item -fforce-mem
-@opindex fforce-mem
-Force memory operands to be copied into registers before doing
-arithmetic on them.  This produces better code by making all memory
-references potential common subexpressions.  When they are not common
-subexpressions, instruction combination should eliminate the separate
-register-load. This option is now a nop and will be removed in 4.2.
-
 @item -fforce-addr
 @opindex fforce-addr
 Force memory address constants to be copied into registers before
Index: opts.c
===================================================================
--- opts.c	(revision 120165)
+++ opts.c	(working copy)
@@ -992,10 +992,6 @@ common_handle_option (size_t scode, cons
       flag_pedantic_errors = pedantic = 1;
       break;
 
-    case OPT_fforce_mem:
-      warning (0, "-f[no-]force-mem is nop and option will be removed in 4.2");
-      break;
-
     case OPT_floop_optimize:
     case OPT_frerun_loop_opt:
     case OPT_fstrength_reduce:


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