]> gcc.gnu.org Git - gcc.git/commitdiff
* unroll.c (unroll_loop): Add EH support.
authorMike Stump <mrs@wrs.com>
Tue, 11 Jan 2000 19:51:20 +0000 (19:51 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Tue, 11 Jan 2000 19:51:20 +0000 (19:51 +0000)
From-SVN: r31334

gcc/ChangeLog
gcc/unroll.c

index e35f8cfa28dfcb4805abf382134ed295d0db0279..64280af6c59faed0f8fcf1a62916a7fbdb76b9d3 100644 (file)
@@ -1,3 +1,7 @@
+Tue Jan 11 11:37:58 2000  Mike Stump  <mrs@wrs.com>
+
+       * unroll.c (unroll_loop): Add EH support.
+
 2000-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * pa-protos.h: New file.
index 01e5aee43aaf112f30d10c1be91b84114a962b95..f5050c3b6d33f022e0898a6ab096304f27ada92e 100644 (file)
@@ -290,6 +290,19 @@ unroll_loop (loop_end, insn_count, loop_start, end_insert_before,
                block_begins++;
              else if (NOTE_LINE_NUMBER (insn) == NOTE_INSN_BLOCK_END)
                block_ends++;
+             if (NOTE_LINE_NUMBER (insn) == NOTE_INSN_EH_REGION_BEG
+                 || NOTE_LINE_NUMBER (insn) == NOTE_INSN_EH_REGION_END)
+               {
+                 /* Note, would be nice to add code to unroll EH
+                    regions, but until that time, we punt (don't
+                    unroll).  For the proper way of doing it, see
+                    expand_inline_function.  */
+
+                 if (loop_dump_stream)
+                   fprintf (loop_dump_stream,
+                            "Unrolling failure: cannot unroll EH regions.\n");
+                 return;
+               }
            }
        }
 
This page took 0.082313 seconds and 5 git commands to generate.