summaryrefslogtreecommitdiff
path: root/gcc/toplev.c
diff options
context:
space:
mode:
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2007-02-01 14:57:08 +0000
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2007-02-01 14:57:08 +0000
commit7a9ae52e6008024bf73981125267f1e61ec9579f (patch)
tree5aa85d6d740673247b225cc1fcc0fcf5bf2129ba /gcc/toplev.c
parent7e37b1c3599965caada74d68d5e849f4f592f556 (diff)
downloadgcc-7a9ae52e6008024bf73981125267f1e61ec9579f.tar.gz
* toplev.c (lang_dependent_init): Call init_set_costs.
* loop-init.c (loop_optimizer_init): Do not call init_set_costs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121464 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r--gcc/toplev.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index cf95f02c94e..28d93b3e873 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -1992,6 +1992,11 @@ lang_dependent_init (const char *name)
provide a dummy function context for them. */
init_dummy_function_start ();
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 ();
/* If dbx symbol table desired, initialize writing it and output the