OSDN Git Service

* unroll.c (unroll_loop): Add EH support.
authormrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Jan 2000 19:51:20 +0000 (19:51 +0000)
committermrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Jan 2000 19:51:20 +0000 (19:51 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31334 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/unroll.c

index e35f8cf..64280af 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 01e5aee..f5050c3 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;
+               }
            }
        }