Author: leo
Date: Wed Apr 13 03:04:41 2005
New Revision: 7824

Modified:
   trunk/imcc/reg_alloc.c
Log:
allow NUM_REGISTERS = 64

Modified: trunk/imcc/reg_alloc.c
==============================================================================
--- trunk/imcc/reg_alloc.c      (original)
+++ trunk/imcc/reg_alloc.c      Wed Apr 13 03:04:41 2005
@@ -927,8 +927,8 @@
             if (avail[c] && assignable[t][c - 1])
                 return c;
     }
-    /* 2) try upper non-volatiles, 16...31 */
-    for (c = 17; c <= 32; c++)
+    /* 2) try upper non-volatiles, 16...NUM_REGISTERS-1 */
+    for (c = 17; c <= NUM_REGISTERS; c++)
         if (avail[c])
             return c;
     return 0;

Reply via email to