Skip to content
Snippets Groups Projects
  • Zack Weinberg's avatar
    6de66680
    langhooks.c: Don't include gt-langhooks.h. · 6de66680
    Zack Weinberg authored
    	* langhooks.c: Don't include gt-langhooks.h.
    	(var_labelno): Delete.
    	(lhd_set_decl_assembler_name): Do not append a distinguishing
    	number to file-scope internal-linkage declarations for the first
    	input file, even if they have DECL_CONTEXT set.  Use DECL_UID of
    	the declaration itself (if at block scope), or its containing
    	TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
    	number.
    
    	* opts.c (cur_in_fname): New global.
    	* opts.h: Declare it.
    	* tree.c: Include opts.h.
    	(make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
    	DECL_UID equal to cur_in_fname.
    	(copy_node_stat): Do not change DECL_UID when copying a
    	TRANSLATION_UNIT_DECL.
    	(build_common_tree_nodes): Adjust next_decl_uid to reserve the
    	range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
    
    	* c-decl.c (c_static_assembler_name): Delete.
    	* c-tree.h (c_static_assembler_name): Delete prototype.
    	* c-lang.c, objc/objc-lang.c: Don't override
    	LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
    
    	* Makefile.in (tree.o): Update dependencies.
    	(GTFILES): Remove langhooks.c.
    
    cp:
    	* decl.c (cxx_init_decl_processing): Call
    	build_common_tree_nodes before creating the global NAMESPACE_DECL.
    
    From-SVN: r84123
    6de66680
    History
    langhooks.c: Don't include gt-langhooks.h.
    Zack Weinberg authored
    	* langhooks.c: Don't include gt-langhooks.h.
    	(var_labelno): Delete.
    	(lhd_set_decl_assembler_name): Do not append a distinguishing
    	number to file-scope internal-linkage declarations for the first
    	input file, even if they have DECL_CONTEXT set.  Use DECL_UID of
    	the declaration itself (if at block scope), or its containing
    	TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
    	number.
    
    	* opts.c (cur_in_fname): New global.
    	* opts.h: Declare it.
    	* tree.c: Include opts.h.
    	(make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
    	DECL_UID equal to cur_in_fname.
    	(copy_node_stat): Do not change DECL_UID when copying a
    	TRANSLATION_UNIT_DECL.
    	(build_common_tree_nodes): Adjust next_decl_uid to reserve the
    	range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
    
    	* c-decl.c (c_static_assembler_name): Delete.
    	* c-tree.h (c_static_assembler_name): Delete prototype.
    	* c-lang.c, objc/objc-lang.c: Don't override
    	LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
    
    	* Makefile.in (tree.o): Update dependencies.
    	(GTFILES): Remove langhooks.c.
    
    cp:
    	* decl.c (cxx_init_decl_processing): Call
    	build_common_tree_nodes before creating the global NAMESPACE_DECL.
    
    From-SVN: r84123