tree.c (restore_tree_status): Do not dereference a null pointer.
* tree.c (restore_tree_status): Do not dereference a null pointer. Brought over from devo. SHould fix 921215-1.c compilation failures. From-SVN: r17225
This commit is contained in:
parent
95b8c0c8cb
commit
280e521f02
2 changed files with 13 additions and 6 deletions
|
@ -1,3 +1,7 @@
|
|||
Wed Dec 24 22:34:55 1997 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* tree.c (restore_tree_status): Do not dereference a null pointer.
|
||||
|
||||
Tue Dec 23 12:56:46 1997 Paul Eggert <eggert@twinsun.com>:
|
||||
|
||||
* genattrtab.c (main): Check HAVE_{G,S}ETRLIMIT in addition to
|
||||
|
|
15
gcc/tree.c
15
gcc/tree.c
|
@ -445,13 +445,16 @@ restore_tree_status (p, context)
|
|||
{
|
||||
struct simple_obstack_stack *current, **p = &toplev_inline_obstacks;
|
||||
|
||||
while ((*p)->obstack != function_maybepermanent_obstack)
|
||||
p = &((*p)->next);
|
||||
current = *p;
|
||||
*p = current->next;
|
||||
if ((*p) != NULL)
|
||||
{
|
||||
while ((*p)->obstack != function_maybepermanent_obstack)
|
||||
p = &((*p)->next);
|
||||
current = *p;
|
||||
*p = current->next;
|
||||
|
||||
current->next = extra_inline_obstacks;
|
||||
extra_inline_obstacks = current;
|
||||
current->next = extra_inline_obstacks;
|
||||
extra_inline_obstacks = current;
|
||||
}
|
||||
}
|
||||
|
||||
obstack_free (function_obstack, 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue