mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-24 08:50:26 +08:00
* unroll.c (unroll_loop): Add EH support.
From-SVN: r31334
This commit is contained in:
parent
b5fba37d0f
commit
3951ad49fc
@ -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.
|
||||
|
13
gcc/unroll.c
13
gcc/unroll.c
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user