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]

Re: Do you want to hear about xfree86 & -frename-registers


On Mon, Apr 29, 2002 at 09:42:01PM -0700, Richard Henderson wrote:
> On Mon, Apr 29, 2002 at 07:03:13PM -0700, George Garvey wrote:
> > Or is that another "don't do that then"?
> 
> With -O0?  Yes, don't do that.  We've fixed this by
> disabling -frename-registers without optimization.

Only on trunk though. Mark, should this be applied to branch too?

2002-04-25  Jakub Jelinek  <jakub@redhat.com>

        PR c++/6396
        * toplev.c (rest_of_compilation): Only run regrename and copy
        propagation if optimizing.

--- gcc/toplev.c.jj     Tue Apr 23 20:26:57 2002
+++ gcc/toplev.c        Thu Apr 25 18:34:57 2002
@@ -3317,7 +3317,7 @@ rest_of_compilation (decl)
     }
 #endif

-  if (flag_rename_registers || flag_cprop_registers)
+  if (optimize > 0 && (flag_rename_registers || flag_cprop_registers))
     {
       timevar_push (TV_RENAME_REGISTERS);
       open_dump_file (DFI_rnreg, decl);

	Jakub


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