diff options
author | Jeffrey A Law <law@cygnus.com> | 2000-03-29 17:54:37 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2000-03-29 10:54:37 -0700 |
commit | 930b9832964a97cf30cfd2b75382b3b7038c54d5 (patch) | |
tree | 60d5be043e15fc750800a6f6e9dc59155211d490 | |
parent | dc1c86cbfd4b8a84eaf27f1d4212abff664f5255 (diff) | |
download | gcc-930b9832964a97cf30cfd2b75382b3b7038c54d5.zip gcc-930b9832964a97cf30cfd2b75382b3b7038c54d5.tar.gz gcc-930b9832964a97cf30cfd2b75382b3b7038c54d5.tar.bz2 |
* stmt.c (stmt_loop_nest_empty): Allow cfun->stmt to be NULL.
From-SVN: r32806
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/stmt.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d26f0d5..7cffb9f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Wed Mar 29 10:53:49 2000 Jeffrey A Law (law@cygnus.com) + + * stmt.c (stmt_loop_nest_empty): Allow cfun->stmt to be NULL. + 2000-03-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> * c-common.c (c_common_nodes_and_builtins): Don't special case @@ -2618,7 +2618,10 @@ expand_exit_loop_if_false (whichloop, cond) int stmt_loop_nest_empty () { - return (loop_stack == NULL); + /* cfun->stmt can be NULL if we are building a call to get the + EH context for a setjmp/longjmp EH target and the current + function was a deferred inline function. */ + return (cfun->stmt != NULL && loop_stack == NULL); } /* Return non-zero if we should preserve sub-expressions as separate |