re PR c++/6396 (3.1 flow.c 583 ICE with -frename-registers)

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

From-SVN: r52857
This commit is contained in:
Jakub Jelinek 2002-04-28 21:52:33 +02:00 committed by Jakub Jelinek
parent 090c9915d7
commit 069909862b
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2002-04-28 Jakub Jelinek <jakub@redhat.com>
PR c++/6396
* toplev.c (rest_of_compilation): Only run regrename and copy
propagation if optimizing.
2002-04-28 Jakub Jelinek <jakub@redhat.com>
PR optimization/6475

View File

@ -3223,7 +3223,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);