reload1.c (init_reload): Only initialize reload_obstack during the first call.

* reload1.c (init_reload): Only initialize reload_obstack
	during the first call.

From-SVN: r195335
This commit is contained in:
Jakub Jelinek 2013-01-21 15:55:05 +01:00 committed by Jakub Jelinek
parent 616a4e32ec
commit e8bb7d68e0
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2013-01-21 Jakub Jelinek <jakub@redhat.com>
* reload1.c (init_reload): Only initialize reload_obstack
during the first call.
2013-01-21 Marek Polacek <polacek@redhat.com>
* cfgloop.c (verify_loop_structure): Fix up grammar.

View File

@ -468,8 +468,11 @@ init_reload (void)
}
/* Initialize obstack for our rtl allocation. */
gcc_obstack_init (&reload_obstack);
reload_startobj = XOBNEWVAR (&reload_obstack, char, 0);
if (reload_startobj == NULL)
{
gcc_obstack_init (&reload_obstack);
reload_startobj = XOBNEWVAR (&reload_obstack, char, 0);
}
INIT_REG_SET (&spilled_pseudos);
INIT_REG_SET (&changed_allocation_pseudos);