2017-05-11 Nathan Sidwell <nathan@acm.org>
+ Revert pushdecl_top_level_and_finish name change.
+ * name-lookup.h (pushdecl_top_level_and_finish): Resurrect old name.
+ * name-lookup.c (pushdecl_top_level_and_finish): Likewise.
+ * decl.c (cp_make_fname_decl): Adjust.
+ * decl2.c (get_guard, handle_tls_init): Adjust.
+ * rtti.c (get_tinfo_decl, tinfo_base_init): Adjust.
+
* name-lookup.c (pushdecl_outermost_localscope): Always
conditionally stop timer.
else
{
DECL_THIS_STATIC (decl) = true;
- pushdecl_top_level_with_init (decl, init);
+ pushdecl_top_level_and_finish (decl, init);
}
return decl;
DECL_ARTIFICIAL (guard) = 1;
DECL_IGNORED_P (guard) = 1;
TREE_USED (guard) = 1;
- pushdecl_top_level_with_init (guard, NULL_TREE);
+ pushdecl_top_level_and_finish (guard, NULL_TREE);
}
return guard;
}
TREE_USED (guard) = true;
CP_DECL_THREAD_LOCAL_P (guard) = true;
set_decl_tls_model (guard, decl_default_tls_model (guard));
- pushdecl_top_level_with_init (guard, NULL_TREE);
+ pushdecl_top_level_and_finish (guard, NULL_TREE);
tree fn = get_local_tls_init_fn ();
start_preparsed_function (fn, NULL_TREE, SF_PRE_PARSED);
initializing it with INIT. */
tree
-pushdecl_top_level_with_init (tree x, tree init)
+pushdecl_top_level_and_finish (tree x, tree init)
{
return pushdecl_top_level_1 (x, &init, false);
}
extern tree pushdecl_outermost_localscope (tree);
extern tree pushdecl_top_level_maybe_friend (tree, bool is_friend);
extern tree pushdecl_top_level (tree);
-extern tree pushdecl_top_level_with_init (tree, tree);
+extern tree pushdecl_top_level_and_finish (tree, tree);
extern tree pushtag (tree, tree, tag_scope);
extern bool push_namespace (tree);
extern void pop_namespace (void);
DECL_NOT_REALLY_EXTERN (d) = 1;
set_linkage_according_to_type (type, d);
- d = pushdecl_top_level_with_init (d, NULL_TREE);
+ d = pushdecl_top_level_and_finish (d, NULL_TREE);
if (CLASS_TYPE_P (type))
CLASSTYPE_TYPEINFO_VAR (TYPE_MAIN_VARIANT (type)) = d;
name_string = tinfo_name (target, !TREE_PUBLIC (name_decl));
DECL_INITIAL (name_decl) = name_string;
mark_used (name_decl);
- pushdecl_top_level_with_init (name_decl, name_string);
+ pushdecl_top_level_and_finish (name_decl, name_string);
}
vtable_ptr = ti->vtable;