aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>1999-09-19 17:00:01 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-09-19 17:00:01 +0000
commit7015a8146a6bd0ed260689778c777d49a035faf6 (patch)
tree0cc2a3eb42fe9ed506190db480803d0131ec00fc /gcc
parent3b10cf4be76c929ba27a62c3dfd70b8017155635 (diff)
downloadgcc-7015a8146a6bd0ed260689778c777d49a035faf6.zip
gcc-7015a8146a6bd0ed260689778c777d49a035faf6.tar.gz
gcc-7015a8146a6bd0ed260689778c777d49a035faf6.tar.bz2
Fix typo in last change
From-SVN: r29510
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rtlanal.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c
index b02be3e..5512a43 100644
--- a/gcc/rtlanal.c
+++ b/gcc/rtlanal.c
@@ -2298,7 +2298,11 @@ auto_inc_p (x)
to and including TO is safe to move. If NEW_TO is non-NULL, and
the sequence is not already safe to move, but can be easily
extended to a sequence which is safe, then NEW_TO will point to the
- end of the extended sequence. */
+ end of the extended sequence.
+
+ For now, this function only checks that the region contains whole
+ exception regiongs, but it could be extended to check additional
+ conditions as well. */
int
insns_safe_to_move_p (from, to, new_to)
@@ -2310,6 +2314,11 @@ insns_safe_to_move_p (from, to, new_to)
int past_to_p = 0;
rtx r = from;
+ /* By default, assume the end of the region will be what was
+ suggested. */
+ if (new_to)
+ *new_to = to;
+
while (r)
{
if (GET_CODE (r) == NOTE)