]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
reload1.c (spill_failure): Dump failed reload data to dump file.
authorDJ Delorie <dj@redhat.com>
Tue, 20 Dec 2005 01:04:24 +0000 (20:04 -0500)
committerDJ Delorie <dj@gcc.gnu.org>
Tue, 20 Dec 2005 01:04:24 +0000 (20:04 -0500)
* reload1.c (spill_failure): Dump failed reload data to dump file.
(find_reload_regs): Likewise.

From-SVN: r108830

gcc/ChangeLog
gcc/reload1.c

index fdaf09f670e7d42bf72c594a10d0e078c1b6740b..2bd2e7cca9b1ec00ee45fcfc80f4eb7974ec118a 100644 (file)
@@ -1,3 +1,8 @@
+2005-12-19  DJ Delorie  <dj@redhat.com>
+
+       * reload1.c (spill_failure): Dump reload data to dump file.
+       (find_reload_regs): Likewise.
+
 2005-12-19  Zdenek Dvorak <dvorakz@suse.cz>
 
        PR tree-optimization/24793
index 29da1216e5a36a644561379707301b43737874c8..649463751540062e63c2faca6c1e04aeb6e250b3 100644 (file)
@@ -1831,6 +1831,8 @@ find_reload_regs (struct insn_chain *chain)
          && rld[r].regno == -1)
        if (! find_reg (chain, i))
          {
+           if (dump_file)
+             fprintf (dump_file, "reload failure for reload %d\n", r);
            spill_failure (chain->insn, rld[r].class);
            failure = 1;
            return;
@@ -1899,6 +1901,12 @@ spill_failure (rtx insn, enum reg_class class)
     {
       error ("unable to find a register to spill in class %qs",
             reg_class_names[class]);
+      if (dump_file)
+       {
+         fprintf (dump_file, "\nReloads for insn # %d\n", INSN_UID (insn));
+         debug_reload_to_stream (dump_file);
+       }
       fatal_insn ("this is the insn:", insn);
     }
 }