mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-18 20:50:17 +08:00
check-init.c (check_init): Fix TRY_FINALLY_EXPR logic.
* check-init.c (check_init): Fix TRY_FINALLY_EXPR logic. * check-init.c (check_init): Don't call done_alternative after processing loop code, as a LOOP_EXPR never terminates normally. From-SVN: r39534
This commit is contained in:
parent
14baf6b5ea
commit
4a83be51ae
@ -1,3 +1,10 @@
|
||||
2001-02-07 Per Bothner <per@bothner.com>
|
||||
|
||||
* check-init.c (check_init): Fix TRY_FINALLY_EXPR logic.
|
||||
|
||||
* check-init.c (check_init): Don't call done_alternative after
|
||||
processing loop code, as a LOOP_EXPR never terminates normally.
|
||||
|
||||
2001-02-08 Joseph S. Myers <jsm28@cam.ac.uk>
|
||||
|
||||
* gcj.texi: Change sources.redhat.com reference to gcc.gnu.org.
|
||||
|
@ -451,7 +451,6 @@ check_init (exp, before)
|
||||
BEGIN_ALTERNATIVES (before, alt);
|
||||
alt.block = exp;
|
||||
check_init (TREE_OPERAND (exp, 0), before);
|
||||
done_alternative (before, &alt);
|
||||
END_ALTERNATIVES (before, alt);
|
||||
return;
|
||||
}
|
||||
@ -571,8 +570,9 @@ check_init (exp, before)
|
||||
{
|
||||
words tmp = ALLOC_WORDS (num_current_words);
|
||||
COPY (tmp, before);
|
||||
check_init (TREE_OPERAND (exp, 0), tmp);
|
||||
check_init (TREE_OPERAND (exp, 1), before);
|
||||
check_init (TREE_OPERAND (exp, 0), before);
|
||||
check_init (TREE_OPERAND (exp, 1), tmp);
|
||||
UNION (before, before, tmp);
|
||||
FREE_WORDS (tmp);
|
||||
}
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user