aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-tree.h
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2003-03-17 21:16:07 +0000
committerZack Weinberg <zack@gcc.gnu.org>2003-03-17 21:16:07 +0000
commit6970c06a4e8f9ff3524043bf64b51c6870693bc7 (patch)
tree31b103a6bcb45591e0e91a4f7c7f9fe1d63b1dfb /gcc/c-tree.h
parent0fef2ffc6fb58f17d68b9d50d0eec76315ec09ba (diff)
downloadgcc-6970c06a4e8f9ff3524043bf64b51c6870693bc7.zip
gcc-6970c06a4e8f9ff3524043bf64b51c6870693bc7.tar.gz
gcc-6970c06a4e8f9ff3524043bf64b51c6870693bc7.tar.bz2
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
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r--gcc/c-tree.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h
index 22d1ee2..29352f5 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));