Commit df453731 by Douglas B Rupp Committed by Douglas Rupp

Fix the Alpha/VMS build. Installed as obvious.

	* config/alpha/alpha.c (alpha_need_linkage): Adjust
	splay_tree_new_gcc_call.
	(alpha_use_linkage): Likewise.

From-SVN: r161437
parent d5d8b111
2010-06-26 Douglas B Rupp <rupp@gnat.com>
* config/alpha/alpha.c (alpha_need_linkage): Adjust
splay_tree_new_gcc_call.
(alpha_use_linkage): Likewise.
2010-06-26 Joseph Myers <joseph@codesourcery.com> 2010-06-26 Joseph Myers <joseph@codesourcery.com>
* collect2.c (main): Remove SWITCHES_NEED_SPACES conditional. * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
......
...@@ -9900,8 +9900,11 @@ alpha_need_linkage (const char *name, int is_local) ...@@ -9900,8 +9900,11 @@ alpha_need_linkage (const char *name, int is_local)
struct alpha_funcs *cfaf; struct alpha_funcs *cfaf;
if (!alpha_funcs_tree) if (!alpha_funcs_tree)
alpha_funcs_tree = splay_tree_new_ggc ((splay_tree_compare_fn) alpha_funcs_tree = splay_tree_new_ggc
splay_tree_compare_pointers); (splay_tree_compare_pointers,
ggc_alloc_splay_tree_tree_node_tree_node_splay_tree_s,
ggc_alloc_splay_tree_tree_node_tree_node_splay_tree_node_s);
cfaf = ggc_alloc_alpha_funcs (); cfaf = ggc_alloc_alpha_funcs ();
...@@ -9937,7 +9940,10 @@ alpha_need_linkage (const char *name, int is_local) ...@@ -9937,7 +9940,10 @@ alpha_need_linkage (const char *name, int is_local)
} }
} }
else else
alpha_links_tree = splay_tree_new_ggc ((splay_tree_compare_fn) strcmp); alpha_links_tree = splay_tree_new_ggc
((splay_tree_compare_fn) strcmp,
ggc_alloc_splay_tree_str_alpha_links_splay_tree_s,
ggc_alloc_splay_tree_str_alpha_links_splay_tree_node_s);
al = ggc_alloc_alpha_links (); al = ggc_alloc_alpha_links ();
name = ggc_strdup (name); name = ggc_strdup (name);
...@@ -9995,7 +10001,10 @@ alpha_use_linkage (rtx func, tree cfundecl, int lflag, int rflag) ...@@ -9995,7 +10001,10 @@ alpha_use_linkage (rtx func, tree cfundecl, int lflag, int rflag)
al = (struct alpha_links *) lnode->value; al = (struct alpha_links *) lnode->value;
} }
else else
cfaf->links = splay_tree_new_ggc ((splay_tree_compare_fn) strcmp); cfaf->links = splay_tree_new_ggc
((splay_tree_compare_fn) strcmp,
ggc_alloc_splay_tree_str_alpha_links_splay_tree_s,
ggc_alloc_splay_tree_str_alpha_links_splay_tree_node_s);
if (!al) if (!al)
{ {
......
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