diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-17 21:16:07 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-03-17 21:16:07 +0000 |
commit | 4124ea8b95fc038dd73c353e2350df0f134e27f4 (patch) | |
tree | 31b103a6bcb45591e0e91a4f7c7f9fe1d63b1dfb /gcc/c-tree.h | |
parent | ce64c75e3d3ed7dd88233153f672a31f26c67972 (diff) | |
download | gcc-4124ea8b95fc038dd73c353e2350df0f134e27f4.tar.gz |
* 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
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r-- | gcc/c-tree.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h index 22d1ee2f5fa..29352f5dd43 100644 --- a/gcc/c-tree.h +++ b/gcc/c-tree.h @@ -41,7 +41,6 @@ struct lang_identifier GTY(()) tree local_value; tree label_value; tree implicit_decl; - tree error_locus; tree limbo_value; }; @@ -91,10 +90,6 @@ struct lang_decl GTY(()) has had one at any point in this compilation. */ #define IDENTIFIER_IMPLICIT_DECL(NODE) \ (((struct lang_identifier *) (NODE))->implicit_decl) -/* This is the last function in which we printed an "undefined variable" - message for this identifier. Value is a FUNCTION_DECL or null. */ -#define IDENTIFIER_ERROR_LOCUS(NODE) \ - (((struct lang_identifier *) (NODE))->error_locus) /* In identifiers, C uses the following fields in a special way: TREE_PUBLIC to record that there was a previous local extern decl. @@ -226,6 +221,7 @@ extern void push_label_level PARAMS ((void)); extern void push_parm_decl PARAMS ((tree)); extern tree pushdecl_top_level PARAMS ((tree)); extern void pushtag PARAMS ((tree, tree)); +extern void record_function_scope_shadow PARAMS ((tree)); extern tree set_array_declarator_type PARAMS ((tree, tree, int)); extern tree shadow_label PARAMS ((tree)); extern void shadow_tag PARAMS ((tree)); |