aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-tree.h
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2005-03-02 02:50:25 +0000
committerJoseph Myers <jsm28@gcc.gnu.org>2005-03-02 02:50:25 +0000
commit766beb4020b7f8aa11cbff2fc40cf01f5e36b7c8 (patch)
tree87b2d47fdc5b99120fde55ab67dd2c05f1a341b4 /gcc/c-tree.h
parent176a0aad11289b39ab49dda6abc94b69de7fe68d (diff)
downloadgcc-766beb4020b7f8aa11cbff2fc40cf01f5e36b7c8.zip
gcc-766beb4020b7f8aa11cbff2fc40cf01f5e36b7c8.tar.gz
gcc-766beb4020b7f8aa11cbff2fc40cf01f5e36b7c8.tar.bz2
re PR c/8927 (Gcc give error for wrong line of C code.)
PR c/8927 * c-tree.h (undeclared_variable, build_external_ref): Add extra argument. * c-decl.c (undeclared_variable): Take location as argument. * c-typeck.c (build_external_ref): Likewise. * c-parser.c (c_parser_postfix_expression): Pass location of identifier to build_external_ref. testsuite: * gcc.dg/pr8927-1.c: New test. From-SVN: r95773
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r--gcc/c-tree.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h
index d16d6a6..18b2634 100644
--- a/gcc/c-tree.h
+++ b/gcc/c-tree.h
@@ -379,7 +379,7 @@ extern void check_for_loop_decls (void);
extern void mark_forward_parm_decls (void);
extern int complete_array_type (tree, tree, int);
extern void declare_parm_level (void);
-extern void undeclared_variable (tree);
+extern void undeclared_variable (tree, location_t);
extern tree declare_label (tree);
extern tree define_label (location_t, tree);
extern void finish_decl (tree, tree, tree);
@@ -463,7 +463,7 @@ extern tree composite_type (tree, tree);
extern tree build_component_ref (tree, tree);
extern tree build_indirect_ref (tree, const char *);
extern tree build_array_ref (tree, tree);
-extern tree build_external_ref (tree, int);
+extern tree build_external_ref (tree, int, location_t);
extern void pop_maybe_used (bool);
extern struct c_expr c_expr_sizeof_expr (struct c_expr);
extern struct c_expr c_expr_sizeof_type (struct c_type_name *);