diff options
author | Tom Tromey <tromey@cygnus.com> | 1999-10-04 20:32:08 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 1999-10-04 20:32:08 +0000 |
commit | 05a3dfc719c1c334a63e62e82c3fd8c4b6e32df0 (patch) | |
tree | a55472b3b52f95d5ba230462149638c52237ba61 /gcc/java/parse-scan.c | |
parent | 5828784f3074f820687b48293acc8a786f43269c (diff) | |
download | gcc-05a3dfc719c1c334a63e62e82c3fd8c4b6e32df0.zip gcc-05a3dfc719c1c334a63e62e82c3fd8c4b6e32df0.tar.gz gcc-05a3dfc719c1c334a63e62e82c3fd8c4b6e32df0.tar.bz2 |
re GNATS gcj/59 (Problem with jv-scan --print-main)
* lex.h (BUILD_OPERATOR2): Return ASSIGN_ANY_TK in `lite' case as
well. Fixes Java PR gcj/59.
* parse-scan.y (yyerror): Report errors.
From-SVN: r29811
Diffstat (limited to 'gcc/java/parse-scan.c')
-rw-r--r-- | gcc/java/parse-scan.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/java/parse-scan.c b/gcc/java/parse-scan.c index 5c9721a..6d1b9a4 100644 --- a/gcc/java/parse-scan.c +++ b/gcc/java/parse-scan.c @@ -1378,7 +1378,7 @@ static const short yycheck[] = { 3, #define YYPURE 1 /* -*-C-*- Note some compilers choke on comments on `#line' lines. */ -#line 3 "/usr/local/gnu/share/bison.simple" +#line 3 "/usr/share/misc/bison.simple" /* Skeleton output parser for bison, Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc. @@ -1395,7 +1395,7 @@ static const short yycheck[] = { 3, You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* As a special exception, when this file is copied by Bison into a Bison output file, you may use that output file without restriction. @@ -1571,7 +1571,7 @@ __yy_memcpy (char *to, char *from, int count) #endif #endif -#line 196 "/usr/local/gnu/share/bison.simple" +#line 196 "/usr/share/misc/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 *. @@ -2149,7 +2149,7 @@ case 337: break;} } /* the action file gets copied in in place of this dollarsign */ -#line 498 "/usr/local/gnu/share/bison.simple" +#line 498 "/usr/share/misc/bison.simple" yyvsp -= yylen; yyssp -= yylen; @@ -2424,4 +2424,6 @@ void yyerror (msg) const char *msg ATTRIBUTE_UNUSED; { + fprintf (stderr, "%s: %d: %s\n", input_filename, lineno, msg); + exit (1); } |