OSDN Git Service

* regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 Jan 2000 18:26:39 +0000 (18:26 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 Jan 2000 18:26:39 +0000 (18:26 +0000)
compilation.

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

gcc/ChangeLog
gcc/regclass.c

index 6d630d4..f186e3e 100644 (file)
@@ -1,3 +1,8 @@
+Tue Jan  4 19:22:39 MET 2000  Jan Hubicka  <hubicka@freesoft.cz>
+
+       * regclass.c (regclass): Do not obey REG_N_REFS in non-optimizing
+       compilation.
+
 2000-01-04  Stan Cox  <scox@cygnus.com>
 
        * haifa-sched.c (build_control_flow): Change unreachable simple
index 667250c..d1bcf30 100644 (file)
@@ -1141,7 +1141,9 @@ regclass (f, nregs, dump)
          register int class;
          register struct costs *p = &costs[i];
 
-         if (!REG_N_REFS (i))
+         /* In non-optimizing compilation REG_N_REFS is not initialized
+            yet.  */
+         if (optimize && !REG_N_REFS (i))
            continue;
 
          for (class = (int) ALL_REGS - 1; class > 0; class--)