toplev.c (lang_dependent_init): Call init_set_costs.
* toplev.c (lang_dependent_init): Call init_set_costs. * loop-init.c (loop_optimizer_init): Do not call init_set_costs. From-SVN: r121464
This commit is contained in:
parent
2a97d6b20d
commit
c0d919fa35
|
@ -1,3 +1,8 @@
|
||||||
|
2007-02-01 Zdenek Dvorak <dvorakz@suse.cz>
|
||||||
|
|
||||||
|
* toplev.c (lang_dependent_init): Call init_set_costs.
|
||||||
|
* loop-init.c (loop_optimizer_init): Do not call init_set_costs.
|
||||||
|
|
||||||
2007-02-01 Richard Guenther <rguenther@suse.de>
|
2007-02-01 Richard Guenther <rguenther@suse.de>
|
||||||
|
|
||||||
PR middle-end/30656
|
PR middle-end/30656
|
||||||
|
|
|
@ -42,15 +42,8 @@ loop_optimizer_init (unsigned flags)
|
||||||
{
|
{
|
||||||
edge e;
|
edge e;
|
||||||
edge_iterator ei;
|
edge_iterator ei;
|
||||||
static bool first_time = true;
|
|
||||||
struct loops *loops;
|
struct loops *loops;
|
||||||
|
|
||||||
if (first_time)
|
|
||||||
{
|
|
||||||
first_time = false;
|
|
||||||
init_set_costs ();
|
|
||||||
}
|
|
||||||
|
|
||||||
gcc_assert (!current_loops);
|
gcc_assert (!current_loops);
|
||||||
loops = XCNEW (struct loops);
|
loops = XCNEW (struct loops);
|
||||||
|
|
||||||
|
|
|
@ -1992,6 +1992,11 @@ lang_dependent_init (const char *name)
|
||||||
provide a dummy function context for them. */
|
provide a dummy function context for them. */
|
||||||
init_dummy_function_start ();
|
init_dummy_function_start ();
|
||||||
init_expr_once ();
|
init_expr_once ();
|
||||||
|
|
||||||
|
/* Although the actions of init_set_costs are language-independent,
|
||||||
|
it uses optabs, so we cannot call it from backend_init. */
|
||||||
|
init_set_costs ();
|
||||||
|
|
||||||
expand_dummy_function_end ();
|
expand_dummy_function_end ();
|
||||||
|
|
||||||
/* If dbx symbol table desired, initialize writing it and output the
|
/* If dbx symbol table desired, initialize writing it and output the
|
||||||
|
|
Loading…
Reference in New Issue