svn commit: r277086 - in stable/10: contrib/byacc/test/yacc usr.bin/yacc
Jung-uk Kim
jkim at FreeBSD.org
Mon Jan 12 20:14:41 UTC 2015
Author: jkim
Date: Mon Jan 12 20:14:31 2015
New Revision: 277086
URL: https://svnweb.freebsd.org/changeset/base/277086
Log:
MFC: r274460, r274475
Increase MAXTABLE to the maxmimum possible value and regen test cases.
Modified:
stable/10/contrib/byacc/test/yacc/calc.tab.c
stable/10/contrib/byacc/test/yacc/calc1.tab.c
stable/10/contrib/byacc/test/yacc/calc2.tab.c
stable/10/contrib/byacc/test/yacc/calc3.tab.c
stable/10/contrib/byacc/test/yacc/code_calc.code.c
stable/10/contrib/byacc/test/yacc/code_calc.tab.c
stable/10/contrib/byacc/test/yacc/code_error.code.c
stable/10/contrib/byacc/test/yacc/code_error.tab.c
stable/10/contrib/byacc/test/yacc/empty.tab.c
stable/10/contrib/byacc/test/yacc/err_syntax10.tab.c
stable/10/contrib/byacc/test/yacc/err_syntax11.tab.c
stable/10/contrib/byacc/test/yacc/err_syntax12.tab.c
stable/10/contrib/byacc/test/yacc/err_syntax18.tab.c
stable/10/contrib/byacc/test/yacc/err_syntax20.tab.c
stable/10/contrib/byacc/test/yacc/error.tab.c
stable/10/contrib/byacc/test/yacc/grammar.tab.c
stable/10/contrib/byacc/test/yacc/ok_syntax1.tab.c
stable/10/contrib/byacc/test/yacc/pure_calc.tab.c
stable/10/contrib/byacc/test/yacc/pure_error.tab.c
stable/10/contrib/byacc/test/yacc/quote_calc-s.tab.c
stable/10/contrib/byacc/test/yacc/quote_calc.tab.c
stable/10/contrib/byacc/test/yacc/quote_calc2-s.tab.c
stable/10/contrib/byacc/test/yacc/quote_calc2.tab.c
stable/10/contrib/byacc/test/yacc/quote_calc3-s.tab.c
stable/10/contrib/byacc/test/yacc/quote_calc3.tab.c
stable/10/contrib/byacc/test/yacc/quote_calc4-s.tab.c
stable/10/contrib/byacc/test/yacc/quote_calc4.tab.c
stable/10/contrib/byacc/test/yacc/rename_debug.c
stable/10/contrib/byacc/test/yacc/varsyntax_calc1.tab.c
stable/10/usr.bin/yacc/Makefile
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/contrib/byacc/test/yacc/calc.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/calc.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/calc.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -150,7 +150,7 @@ extern int YYPARSE_DECL();
#define LETTER 258
#define UMINUS 259
#define YYERRCODE 256
-typedef short YYINT;
+typedef int YYINT;
static const YYINT calc_lhs[] = { -1,
0, 0, 0, 1, 1, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 3, 3,
Modified: stable/10/contrib/byacc/test/yacc/calc1.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/calc1.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/calc1.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -175,7 +175,7 @@ extern int YYPARSE_DECL();
#define CONST 259
#define UMINUS 260
#define YYERRCODE 256
-typedef short YYINT;
+typedef int YYINT;
static const YYINT calc1_lhs[] = { -1,
3, 3, 0, 0, 0, 0, 0, 1, 1, 1,
1, 1, 1, 1, 1, 2, 2, 2, 2, 2,
Modified: stable/10/contrib/byacc/test/yacc/calc2.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/calc2.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/calc2.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -152,7 +152,7 @@ extern int YYPARSE_DECL();
#define LETTER 258
#define UMINUS 259
#define YYERRCODE 256
-typedef short YYINT;
+typedef int YYINT;
static const YYINT calc2_lhs[] = { -1,
0, 0, 0, 1, 1, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 3, 3,
Modified: stable/10/contrib/byacc/test/yacc/calc3.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/calc3.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/calc3.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -157,7 +157,7 @@ extern int YYPARSE_DECL();
#define LETTER 258
#define UMINUS 259
#define YYERRCODE 256
-typedef short YYINT;
+typedef int YYINT;
static const YYINT calc3_lhs[] = { -1,
0, 0, 0, 1, 1, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 3, 3,
Modified: stable/10/contrib/byacc/test/yacc/code_calc.code.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/code_calc.code.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/code_calc.code.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -160,7 +160,7 @@ typedef int YYSTYPE;
#define YYTRANSLATE(a) ((a) > YYMAXTOKEN ? YYUNDFTOKEN : (a))
extern int YYPARSE_DECL();
-typedef short YYINT;
+typedef int YYINT;
extern YYINT yylhs[];
extern YYINT yylen[];
extern YYINT yydefred[];
Modified: stable/10/contrib/byacc/test/yacc/code_calc.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/code_calc.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/code_calc.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -1,4 +1,4 @@
-typedef short YYINT;
+typedef int YYINT;
const YYINT calc_lhs[] = { -1,
0, 0, 0, 1, 1, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 3, 3,
Modified: stable/10/contrib/byacc/test/yacc/code_error.code.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/code_error.code.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/code_error.code.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -152,7 +152,7 @@ typedef int YYSTYPE;
#define YYTRANSLATE(a) ((a) > YYMAXTOKEN ? YYUNDFTOKEN : (a))
extern int YYPARSE_DECL();
-typedef short YYINT;
+typedef int YYINT;
extern YYINT yylhs[];
extern YYINT yylen[];
extern YYINT yydefred[];
Modified: stable/10/contrib/byacc/test/yacc/code_error.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/code_error.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/code_error.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -1,4 +1,4 @@
-typedef short YYINT;
+typedef int YYINT;
const YYINT error_lhs[] = { -1,
0,
};
Modified: stable/10/contrib/byacc/test/yacc/empty.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/empty.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/empty.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -144,7 +144,7 @@ typedef int YYSTYPE;
extern int YYPARSE_DECL();
#define YYERRCODE 256
-typedef short YYINT;
+typedef int YYINT;
static const YYINT empty_lhs[] = { -1,
0,
};
Modified: stable/10/contrib/byacc/test/yacc/err_syntax10.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/err_syntax10.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/err_syntax10.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -134,7 +134,7 @@ static void yyerror(const char *);
extern int YYPARSE_DECL();
#define YYERRCODE 256
-typedef short YYINT;
+typedef int YYINT;
static const YYINT err_syntax10_lhs[] = { -1,
0,
};
Modified: stable/10/contrib/byacc/test/yacc/err_syntax11.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/err_syntax11.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/err_syntax11.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -140,7 +140,7 @@ typedef int YYSTYPE;
extern int YYPARSE_DECL();
#define YYERRCODE 256
-typedef short YYINT;
+typedef int YYINT;
static const YYINT err_syntax11_lhs[] = { -1,
0,
};
Modified: stable/10/contrib/byacc/test/yacc/err_syntax12.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/err_syntax12.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/err_syntax12.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -141,7 +141,7 @@ extern int YYPARSE_DECL();
#define text 456
#define YYERRCODE 256
-typedef short YYINT;
+typedef int YYINT;
static const YYINT err_syntax12_lhs[] = { -1,
0,
};
Modified: stable/10/contrib/byacc/test/yacc/err_syntax18.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/err_syntax18.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/err_syntax18.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -140,7 +140,7 @@ typedef int YYSTYPE;
extern int YYPARSE_DECL();
#define YYERRCODE 256
-typedef short YYINT;
+typedef int YYINT;
static const YYINT err_syntax18_lhs[] = { -1,
0,
};
Modified: stable/10/contrib/byacc/test/yacc/err_syntax20.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/err_syntax20.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/err_syntax20.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -135,7 +135,7 @@ extern int YYPARSE_DECL();
#define recur 257
#define YYERRCODE 256
-typedef short YYINT;
+typedef int YYINT;
static const YYINT err_syntax20_lhs[] = { -1,
0,
};
Modified: stable/10/contrib/byacc/test/yacc/error.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/error.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/error.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -140,7 +140,7 @@ typedef int YYSTYPE;
extern int YYPARSE_DECL();
#define YYERRCODE 256
-typedef short YYINT;
+typedef int YYINT;
static const YYINT error_lhs[] = { -1,
0,
};
Modified: stable/10/contrib/byacc/test/yacc/grammar.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/grammar.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/grammar.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -453,7 +453,7 @@ extern int YYPARSE_DECL();
#define T_ASMARG 290
#define T_VA_DCL 291
#define YYERRCODE 256
-typedef short YYINT;
+typedef int YYINT;
static const YYINT grammar_lhs[] = { -1,
0, 0, 26, 26, 27, 27, 27, 27, 27, 27,
27, 31, 30, 30, 28, 28, 34, 28, 32, 32,
Modified: stable/10/contrib/byacc/test/yacc/ok_syntax1.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/ok_syntax1.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/ok_syntax1.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -178,7 +178,7 @@ extern int YYPARSE_DECL();
#define VT 272
#define UMINUS 273
#define YYERRCODE 256
-typedef short YYINT;
+typedef int YYINT;
static const YYINT ok_syntax1_lhs[] = { -1,
0, 0, 0, 1, 1, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 3, 3,
Modified: stable/10/contrib/byacc/test/yacc/pure_calc.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/pure_calc.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/pure_calc.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -160,7 +160,7 @@ extern int YYPARSE_DECL();
#define LETTER 258
#define UMINUS 259
#define YYERRCODE 256
-typedef short YYINT;
+typedef int YYINT;
static const YYINT calc_lhs[] = { -1,
0, 0, 0, 1, 1, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 3, 3,
Modified: stable/10/contrib/byacc/test/yacc/pure_error.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/pure_error.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/pure_error.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -152,7 +152,7 @@ typedef int YYSTYPE;
extern int YYPARSE_DECL();
#define YYERRCODE 256
-typedef short YYINT;
+typedef int YYINT;
static const YYINT error_lhs[] = { -1,
0,
};
Modified: stable/10/contrib/byacc/test/yacc/quote_calc-s.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/quote_calc-s.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/quote_calc-s.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -156,7 +156,7 @@ extern int YYPARSE_DECL();
#define LETTER 270
#define UMINUS 271
#define YYERRCODE 256
-typedef short YYINT;
+typedef int YYINT;
static const YYINT quote_calc_lhs[] = { -1,
0, 0, 0, 1, 1, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 3, 3,
Modified: stable/10/contrib/byacc/test/yacc/quote_calc.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/quote_calc.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/quote_calc.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -162,7 +162,7 @@ extern int YYPARSE_DECL();
#define LETTER 270
#define UMINUS 271
#define YYERRCODE 256
-typedef short YYINT;
+typedef int YYINT;
static const YYINT quote_calc_lhs[] = { -1,
0, 0, 0, 1, 1, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 3, 3,
Modified: stable/10/contrib/byacc/test/yacc/quote_calc2-s.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/quote_calc2-s.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/quote_calc2-s.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -156,7 +156,7 @@ extern int YYPARSE_DECL();
#define LETTER 270
#define UMINUS 271
#define YYERRCODE 256
-typedef short YYINT;
+typedef int YYINT;
static const YYINT quote_calc2_lhs[] = { -1,
0, 0, 0, 1, 1, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 3, 3,
Modified: stable/10/contrib/byacc/test/yacc/quote_calc2.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/quote_calc2.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/quote_calc2.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -162,7 +162,7 @@ extern int YYPARSE_DECL();
#define LETTER 270
#define UMINUS 271
#define YYERRCODE 256
-typedef short YYINT;
+typedef int YYINT;
static const YYINT quote_calc2_lhs[] = { -1,
0, 0, 0, 1, 1, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 3, 3,
Modified: stable/10/contrib/byacc/test/yacc/quote_calc3-s.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/quote_calc3-s.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/quote_calc3-s.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -156,7 +156,7 @@ extern int YYPARSE_DECL();
#define LETTER 270
#define UMINUS 271
#define YYERRCODE 256
-typedef short YYINT;
+typedef int YYINT;
static const YYINT quote_calc3_lhs[] = { -1,
0, 0, 0, 1, 1, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 3, 3,
Modified: stable/10/contrib/byacc/test/yacc/quote_calc3.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/quote_calc3.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/quote_calc3.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -156,7 +156,7 @@ extern int YYPARSE_DECL();
#define LETTER 270
#define UMINUS 271
#define YYERRCODE 256
-typedef short YYINT;
+typedef int YYINT;
static const YYINT quote_calc3_lhs[] = { -1,
0, 0, 0, 1, 1, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 3, 3,
Modified: stable/10/contrib/byacc/test/yacc/quote_calc4-s.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/quote_calc4-s.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/quote_calc4-s.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -156,7 +156,7 @@ extern int YYPARSE_DECL();
#define LETTER 270
#define UMINUS 271
#define YYERRCODE 256
-typedef short YYINT;
+typedef int YYINT;
static const YYINT quote_calc4_lhs[] = { -1,
0, 0, 0, 1, 1, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 3, 3,
Modified: stable/10/contrib/byacc/test/yacc/quote_calc4.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/quote_calc4.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/quote_calc4.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -156,7 +156,7 @@ extern int YYPARSE_DECL();
#define LETTER 270
#define UMINUS 271
#define YYERRCODE 256
-typedef short YYINT;
+typedef int YYINT;
static const YYINT quote_calc4_lhs[] = { -1,
0, 0, 0, 1, 1, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 3, 3,
Modified: stable/10/contrib/byacc/test/yacc/rename_debug.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/rename_debug.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/rename_debug.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -16,7 +16,7 @@
#line 17 "rename_debug.c"
#include "rename_debug.i"
#include "rename_debug.h"
-typedef short YYINT;
+typedef int YYINT;
static const YYINT yylhs[] = { -1,
0,
};
Modified: stable/10/contrib/byacc/test/yacc/varsyntax_calc1.tab.c
==============================================================================
--- stable/10/contrib/byacc/test/yacc/varsyntax_calc1.tab.c Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/contrib/byacc/test/yacc/varsyntax_calc1.tab.c Mon Jan 12 20:14:31 2015 (r277086)
@@ -176,7 +176,7 @@ extern int YYPARSE_DECL();
#define CONST 259
#define UMINUS 260
#define YYERRCODE 256
-typedef short YYINT;
+typedef int YYINT;
static const YYINT varsyntax_calc1_lhs[] = { -1,
3, 3, 0, 0, 0, 0, 0, 1, 1, 1,
1, 1, 1, 1, 1, 2, 2, 2, 2, 2,
Modified: stable/10/usr.bin/yacc/Makefile
==============================================================================
--- stable/10/usr.bin/yacc/Makefile Mon Jan 12 19:26:31 2015 (r277085)
+++ stable/10/usr.bin/yacc/Makefile Mon Jan 12 20:14:31 2015 (r277086)
@@ -10,9 +10,10 @@ PROG= yacc
SRCS= closure.c error.c graph.c lalr.c lr0.c main.c mkpar.c mstring.c output.c \
reader.c yaccpar.c symtab.c verbose.c warshall.c
-CFLAGS+= -DMIXEDCASE_FILENAMES=1 \
- -DHAVE_FCNTL_H=1 \
- -DHAVE_MKSTEMP=1
+CFLAGS+= -DHAVE_FCNTL_H=1 \
+ -DHAVE_MKSTEMP=1 \
+ -DMAXTABLE=INT_MAX \
+ -DMIXEDCASE_FILENAMES=1
YYPATCH!= cat ${BYACC_SRC}/VERSION
CFLAGS+= -DYYPATCH=${YYPATCH}
More information about the svn-src-stable
mailing list