This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Do you want to hear about xfree86 & -frename-registers
- From: Jakub Jelinek <jakub at redhat dot com>
- To: mark at codesourcery dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 30 Apr 2002 10:16:01 +0200
- Subject: Re: Do you want to hear about xfree86 & -frename-registers
- References: <20020429190313.H19294@inxservices.com> <20020429214201.B2586@redhat.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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