Commit 2e3b4885 by Jan Hubicka Committed by Jan Hubicka

* tree-switch-conversion.c (build_one_array): Make it readonly.

From-SVN: r160106
parent 7bab6543
2010-06-01 Jan Hubicka <jh@suse.cz>
* tree-switch-conversion.c (build_one_array): Make it readonly.
2010-06-01 Richard Guenther <rguenther@suse.de> 2010-06-01 Richard Guenther <rguenther@suse.de>
* optabs.c (init_optabs): Guard all accesses to reinit. * optabs.c (init_optabs): Guard all accesses to reinit.
......
...@@ -526,6 +526,7 @@ build_one_array (gimple swtch, int num, tree arr_index_type, gimple phi, ...@@ -526,6 +526,7 @@ build_one_array (gimple swtch, int num, tree arr_index_type, gimple phi,
DECL_NAME (decl) = create_tmp_var_name ("CSWTCH"); DECL_NAME (decl) = create_tmp_var_name ("CSWTCH");
DECL_ARTIFICIAL (decl) = 1; DECL_ARTIFICIAL (decl) = 1;
TREE_CONSTANT (decl) = 1; TREE_CONSTANT (decl) = 1;
TREE_READONLY (decl) = 1;
add_referenced_var (decl); add_referenced_var (decl);
varpool_mark_needed_node (varpool_node (decl)); varpool_mark_needed_node (varpool_node (decl));
varpool_finalize_decl (decl); varpool_finalize_decl (decl);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment