decl2.c (mark_used): Don't segfault if cfun != NULL but current_function_decl == NULL.

* decl2.c (mark_used): Don't segfault if cfun != NULL but
	current_function_decl == NULL.

From-SVN: r80506
This commit is contained in:
Jakub Jelinek 2004-04-08 15:38:00 +02:00 committed by Jakub Jelinek
parent af15298919
commit a7485e9375
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-04-08 Jakub Jelinek <jakub@redhat.com>
* decl2.c (mark_used): Don't segfault if cfun != NULL but
current_function_decl == NULL.
2004-04-05 Nathan Sidwell <nathan@codesourcery.com>
PR c++/3518

View File

@ -3030,6 +3030,7 @@ mark_used (tree decl)
generate its body to find that out. */
|| TREE_NOTHROW (decl)
|| !cfun
|| !current_function_decl
/* If we already know the current function can't throw,
then we don't need to work hard to prove it. */
|| TREE_NOTHROW (current_function_decl)