OSDN Git Service

* reload1.c (reload): Remove unused variable.
[pf3gnuchains/gcc-fork.git] / gcc / reload1.c
index c6f81fa..fb7e5cf 100644 (file)
@@ -1121,7 +1121,7 @@ reload (first, global, dumpfile)
           recompute flow information anyway.  */
        if (optimize && flag_schedule_insns_after_reload)
          {
-           rtx last, first;
+           rtx last;
 
            last = try_split (PATTERN (insn), insn, 1);
 
@@ -2646,6 +2646,12 @@ eliminate_regs (x, mem_mode, insn)
   char *fmt;
   int copied = 0;
 
+  /* We can reach here without reload being run if we have an variable
+     definition in a file with no functions (for exmaple).  Ensure we
+     have a valid elimination table in such cases.  */
+  if (reg_eliminate == NULL)
+    init_elim_table ();
+
   switch (code)
     {
     case CONST_INT:
@@ -5072,6 +5078,7 @@ reload_reg_free_for_value_p (regno, opnum, type, value, out, reloadnum,
      enum reload_type type;
      rtx value, out;
      int reloadnum;
+     int ignore_address_reloads;
 {
   int time1;
   int i;