Wed Dec 23 00:10:01 1998 Jeffrey A Law (law@cygnus.com)
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Dec 1998 23:13:41 +0000 (23:13 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Dec 1998 23:13:41 +0000 (23:13 +0000)
        * toplev.c (rest_of_compilation): Do not set reload_completed.
        * reload1.c (reload): Set reload_completed before calling
        cleanup_subreg_operands.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24400 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/reload1.c
gcc/toplev.c

index fd74926..0384fbc 100644 (file)
@@ -1,3 +1,9 @@
+Wed Dec 23 00:10:01 1998  Jeffrey A Law  (law@cygnus.com)
+
+       * toplev.c (rest_of_compilation): Do not set reload_completed.
+       * reload1.c (reload): Set reload_completed before calling
+       cleanup_subreg_operands.
+
 Tue Dec 22 23:58:31 1998  Richard Henderson  <rth@cygnus.com>
 
        * reload1.c (emit_reload_insns): Check `set' not null before use.
index e8bb5fe..b4cb69c 100644 (file)
@@ -1116,6 +1116,11 @@ reload (first, global, dumpfile)
        }
     }
 
+  /* We must set reload_completed now since the cleanup_subreg_operands call
+     below will re-recognize each insn and reload may have generated insns
+     which are only valid during and after reload.  */
+  reload_completed = 1;
+
   /* Make a pass over all the insns and delete all USEs which we inserted
      only to tag a REG_EQUAL note on them.  Remove all REG_DEAD and REG_UNUSED
      notes.  Delete all CLOBBER insns and simplify (subreg (reg)) operands.
index 5e586b8..5608af6 100644 (file)
@@ -3967,8 +3967,6 @@ rest_of_compilation (decl)
   if (failure)
     goto exit_rest_of_compilation;
 
-  reload_completed = 1;
-
   /* Do a very simple CSE pass over just the hard registers.  */
   if (optimize > 0)
     reload_cse_regs (insns);