OSDN Git Service

* global.c: Include machmode.h amd move hard-reg-set.h before
[pf3gnuchains/gcc-fork.git] / gcc / global.c
index a92fdb1..d382537 100644 (file)
@@ -22,13 +22,15 @@ Boston, MA 02111-1307, USA.  */
 #include "config.h"
 #include "system.h"
 
+#include "machmode.h"
+#include "hard-reg-set.h"
 #include "rtl.h"
 #include "flags.h"
 #include "basic-block.h"
-#include "hard-reg-set.h"
 #include "regs.h"
 #include "insn-config.h"
 #include "output.h"
+#include "toplev.h"
 
 /* This pass of the compiler performs global register allocation.
    It assigns hard register numbers to all the pseudo registers
@@ -566,12 +568,12 @@ global_alloc (file)
               for this pseudo-reg.  If that fails, try any reg.  */
            if (N_REG_CLASSES > 1)
              {
-               find_reg (allocno_order[i], HARD_CONST (0), 0, 0, 0);
+               find_reg (allocno_order[i], 0, 0, 0, 0);
                if (reg_renumber[allocno_reg[allocno_order[i]]] >= 0)
                  continue;
              }
            if (reg_alternate_class (allocno_reg[allocno_order[i]]) != NO_REGS)
-             find_reg (allocno_order[i], HARD_CONST (0), 1, 0, 0);
+             find_reg (allocno_order[i], 0, 1, 0, 0);
          }
     }