Commit 4c5bae34 by Richard Sandiford Committed by Richard Sandiford

decl.c (cp_finish_decl): Call determine_visibility before make_rtl_for_nonlocal_decl.

gcc/cp/
	* decl.c (cp_finish_decl): Call determine_visibility before
	make_rtl_for_nonlocal_decl.

From-SVN: r128091
parent 16ae1645
2007-09-04 Richard Sandiford <richard@codesourcery.com>
* decl.c (cp_finish_decl): Call determine_visibility before
make_rtl_for_nonlocal_decl.
2007-09-04 Jason Merrill <jason@redhat.com> 2007-09-04 Jason Merrill <jason@redhat.com>
PR c++/14032 PR c++/14032
......
...@@ -5463,6 +5463,9 @@ cp_finish_decl (tree decl, tree init, bool init_const_expr_p, ...@@ -5463,6 +5463,9 @@ cp_finish_decl (tree decl, tree init, bool init_const_expr_p,
maybe_commonize_var (decl); maybe_commonize_var (decl);
} }
/* This needs to happen after the linkage is set. */
determine_visibility (decl);
make_rtl_for_nonlocal_decl (decl, init, asmspec); make_rtl_for_nonlocal_decl (decl, init, asmspec);
/* Check for abstractness of the type. Notice that there is no /* Check for abstractness of the type. Notice that there is no
...@@ -5474,9 +5477,6 @@ cp_finish_decl (tree decl, tree init, bool init_const_expr_p, ...@@ -5474,9 +5477,6 @@ cp_finish_decl (tree decl, tree init, bool init_const_expr_p,
else else
abstract_virtuals_error (decl, type); abstract_virtuals_error (decl, type);
/* This needs to happen after the linkage is set. */
determine_visibility (decl);
if (TREE_CODE (decl) == FUNCTION_DECL if (TREE_CODE (decl) == FUNCTION_DECL
|| TREE_TYPE (decl) == error_mark_node) || TREE_TYPE (decl) == error_mark_node)
/* No initialization required. */ /* No initialization required. */
......
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