Skip to content
Snippets Groups Projects
Commit 4124ea8b authored by zack's avatar zack
Browse files

* c-tree.h (struct lang_identifier): Remove error_locus field.

	(IDENTIFIER_ERROR_LOCUS): Kill.
	(record_function_scope_shadow): New prototype.
	* c-typeck.c (build_external_ref): Don't complain if
	decl is error_mark_node.  When not at file scope, bind the
	decl's local value to error_mark_node to suppress further
	warnings, instead of setting IDENTIFIER_ERROR_LOCUS.

	* c-decl.c (get_function_binding_level): New static function.
	(record_function_scope_shadow): New exported function.
	(c_make_fname_decl): Use get_function_binding_level.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64504 138bc75d-0d04-0410-961f-82ee72b054a4
parent ce64c75e
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment