Commit a7485e93 by Jakub Jelinek Committed by Jakub Jelinek

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
parent af152989
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
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment