Fix nits about -frename-registers

Eric Botcazou ebotcazou@adacore.com
Tue Nov 17 17:22:00 GMT 2009


process_options contains first

   if (flag_rename_registers == AUTODETECT_VALUE)
     flag_rename_registers = flag_unroll_loops || flag_peel_loops;

and then

  if (flag_rename_registers == AUTODETECT_VALUE)
    flag_rename_registers = default_debug_hooks->var_location
	    		    != do_nothing_debug_hooks.var_location;

so the second test is never true.  And the docs aren't up-to-date either.

Tested on i586-suse-linux, applied on the mainline.


2009-11-17  Eric Botcazou  <ebotcazou@adacore.com>

	* toplev.c (process_options): Remove dead code.
	* doc/invoke.texi (-frename-registers): Mention -fpeel-loops.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-diff
Size: 2215 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20091117/c42241c0/attachment.bin>


More information about the Gcc-patches mailing list