aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-02-25 00:30:00 +0000
committerJeff Law <law@gcc.gnu.org>1998-02-24 17:30:00 -0700
commit8dfafd99fde27a63ae9ed9c16518e65037069937 (patch)
tree43bbab4d60f34c8d33597e1c973e9f3d1c57dc99
parentbb8ebb7ff8bcf985f066e0757c91e00a76ea3559 (diff)
downloadgcc-8dfafd99fde27a63ae9ed9c16518e65037069937.zip
gcc-8dfafd99fde27a63ae9ed9c16518e65037069937.tar.gz
gcc-8dfafd99fde27a63ae9ed9c16518e65037069937.tar.bz2
c-parse.y (undeclared variable error): Tweak error message to be clearer.
* c-parse.y (undeclared variable error): Tweak error message to be clearer. From-SVN: r18226
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-parse.c8
-rw-r--r--gcc/c-parse.y2
3 files changed, 10 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 847eb3e..c4b8419 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Wed Feb 25 01:31:40 1998 Jeffrey A Law (law@cygnus.com)
+
+ * c-parse.y (undeclared variable error): Tweak error message
+ to be clearer.
+
Tue Feb 24 23:54:07 1998 Richard Henderson <rth@cygnus.com>
* flags.h (g_switch_value, g_switch_set): Declare.
diff --git a/gcc/c-parse.c b/gcc/c-parse.c
index 8cfed9e..c38a7ca 100644
--- a/gcc/c-parse.c
+++ b/gcc/c-parse.c
@@ -1170,7 +1170,7 @@ static const short yycheck[] = { 40,
48, 49, 50, 51, 52
};
/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
-#line 3 "/usr/cygnus/latest-940103/share/bison.simple"
+#line 3 "/usr/share/bison.simple"
/* Skeleton output parser for bison,
Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
@@ -1363,7 +1363,7 @@ __yy_memcpy (char *to, char *from, int count)
#endif
#endif
-#line 196 "/usr/cygnus/latest-940103/share/bison.simple"
+#line 196 "/usr/share/bison.simple"
/* The user can define YYPARSE_PARAM as the name of an argument to be passed
into yyparse. The argument should have type void *.
@@ -2110,7 +2110,7 @@ case 86:
if (IDENTIFIER_GLOBAL_VALUE (yyvsp[0].ttype) != error_mark_node
|| IDENTIFIER_ERROR_LOCUS (yyvsp[0].ttype) != current_function_decl)
{
- error ("`%s' undeclared (first use this function)",
+ error ("`%s' undeclared (first use in this function)",
IDENTIFIER_POINTER (yyvsp[0].ttype));
if (! undeclared_variable_notice)
@@ -3652,7 +3652,7 @@ case 395:
break;}
}
/* the action file gets copied in in place of this dollarsign */
-#line 498 "/usr/cygnus/latest-940103/share/bison.simple"
+#line 498 "/usr/share/bison.simple"
yyvsp -= yylen;
yyssp -= yylen;
diff --git a/gcc/c-parse.y b/gcc/c-parse.y
index 58b7525..68d38e0 100644
--- a/gcc/c-parse.y
+++ b/gcc/c-parse.y
@@ -602,7 +602,7 @@ primary:
if (IDENTIFIER_GLOBAL_VALUE ($1) != error_mark_node
|| IDENTIFIER_ERROR_LOCUS ($1) != current_function_decl)
{
- error ("`%s' undeclared (first use this function)",
+ error ("`%s' undeclared (first use in this function)",
IDENTIFIER_POINTER ($1));
if (! undeclared_variable_notice)