c-tree.h (struct lang_identifier): Remove error_locus field.
authorZack Weinberg <zack@gcc.gnu.org>
Mon, 17 Mar 2003 21:16:07 +0000 (21:16 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Mon, 17 Mar 2003 21:16:07 +0000 (21:16 +0000)
commit6970c06a4e8f9ff3524043bf64b51c6870693bc7
tree31b103a6bcb45591e0e91a4f7c7f9fe1d63b1dfb
parent0fef2ffc6fb58f17d68b9d50d0eec76315ec09ba
c-tree.h (struct lang_identifier): Remove error_locus field.

* 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.

From-SVN: r64504
gcc/ChangeLog
gcc/c-decl.c
gcc/c-tree.h
gcc/c-typeck.c