tree
start_var_decl (tree type, const char *name)
{
- tree var = build_decl (input_location,
- VAR_DECL, get_identifier (name), type);
- TREE_STATIC (var) = 1;
+ tree name_id = get_identifier (name);
+ tree var = build_decl (input_location, VAR_DECL, name_id, type);
DECL_INITIAL (var) = error_mark_node; /* A real initializer is coming... */
+ TREE_STATIC (var) = 1;
DECL_IGNORED_P (var) = 1;
DECL_ARTIFICIAL (var) = 1;
DECL_CONTEXT (var) = NULL_TREE;
#ifdef OBJCPLUS
+ /* Meta-data for the NeXT runtime is expected to be 'extern "C"'. */
+ if (flag_next_runtime)
+ SET_DECL_ASSEMBLER_NAME (var, name_id);
DECL_THIS_STATIC (var) = 1; /* squash redeclaration errors */
#endif
return var;