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:
parent
af15298919
commit
a7485e9375
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user