diff options
author | Richard Earnshaw <rearnsha@arm.com> | 1999-09-21 11:31:14 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-09-21 05:31:14 -0600 |
commit | 46826921eb5614adcb92daa8ebeba6b2612d5c89 (patch) | |
tree | 9f10ce02e8346173676a6e80578aba6f988dc7da /gcc | |
parent | acfaa91e95987abc124257668a0eff878bd7b983 (diff) | |
download | gcc-46826921eb5614adcb92daa8ebeba6b2612d5c89.zip gcc-46826921eb5614adcb92daa8ebeba6b2612d5c89.tar.gz gcc-46826921eb5614adcb92daa8ebeba6b2612d5c89.tar.bz2 |
stmt.c (any_pending_cleanups): Don't crash when current_function->stmt is unset.
* stmt.c (any_pending_cleanups): Don't crash when
current_function->stmt is unset.
From-SVN: r29541
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/stmt.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1d240ef..73e4124 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +Tue Sep 21 05:29:17 1999 Richard Earnshaw (rearnsha@arm.com) + + * stmt.c (any_pending_cleanups): Don't crash when + current_function->stmt is unset. + Tue Sep 21 00:59:49 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br> * emit-rtl.c (init_emit_once): Initialize const_int_rtx before @@ -4334,7 +4334,8 @@ any_pending_cleanups (this_contour) { struct nesting *block; - if (block_stack == 0) + if (current_function == NULL || current_function->stmt == NULL + || block_stack == 0) return 0; if (this_contour && block_stack->data.block.cleanups != NULL) |