diff options
Diffstat (limited to 'src/libcpu/i386_parse.c')
-rw-r--r-- | src/libcpu/i386_parse.c | 429 |
1 files changed, 195 insertions, 234 deletions
diff --git a/src/libcpu/i386_parse.c b/src/libcpu/i386_parse.c index 575fcc52..cf8fe259 100644 --- a/src/libcpu/i386_parse.c +++ b/src/libcpu/i386_parse.c @@ -1,8 +1,8 @@ -/* A Bison parser, made by GNU Bison 2.5. */ +/* A Bison parser, made by GNU Bison 2.7. */ /* Bison implementation for Yacc-like parsers in C - Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc. + Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -44,7 +44,7 @@ #define YYBISON 1 /* Bison version. */ -#define YYBISON_VERSION "2.5" +#define YYBISON_VERSION "2.7" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" @@ -58,8 +58,6 @@ /* Pull parsers. */ #define YYPULL 1 -/* Using locations. */ -#define YYLSP_NEEDED 0 /* Substitute the variable and function names. */ #define yyparse i386_parse @@ -70,36 +68,37 @@ #define yydebug i386_debug #define yynerrs i386_nerrs - /* Copy the first part of user declarations. */ - -/* Line 268 of yacc.c */ -#line 1 "i386_parse.y" +/* Line 371 of yacc.c */ +#line 1 "/home/mark/src/elfutils/libcpu/i386_parse.y" /* Parser for i386 CPU description. Copyright (C) 2004, 2005, 2007, 2008, 2009 Red Hat, Inc. Written by Ulrich Drepper <drepper@redhat.com>, 2004. - Red Hat elfutils is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by the - Free Software Foundation; version 2 of the License. + This file is free software; you can redistribute it and/or modify + it under the terms of either + + * the GNU Lesser General Public License as published by the Free + Software Foundation; either version 3 of the License, or (at + your option) any later version + + or + + * the GNU General Public License as published by the Free + Software Foundation; either version 2 of the License, or (at + your option) any later version + + or both in parallel, as here. - Red Hat elfutils is distributed in the hope that it will be useful, but + elfutils is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public License along - with Red Hat elfutils; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA. - - Red Hat elfutils is an included package of the Open Invention Network. - An included package of the Open Invention Network is a package for which - Open Invention Network licensees cross-license their patents. No patent - license is granted, either expressly or impliedly, by designation as an - included package. Should you wish to participate in the Open Invention - Network licensing program, please visit www.openinventionnetwork.com - <http://www.openinventionnetwork.com>. */ + You should have received copies of the GNU General Public License and + the GNU Lesser General Public License along with this program. If + not, see <http://www.gnu.org/licenses/>. */ #ifdef HAVE_CONFIG_H # include <config.h> @@ -287,14 +286,16 @@ extern FILE *outfile; static size_t best_mnemonic_bits; #endif +/* Line 371 of yacc.c */ +#line 291 "i386_parse.c" -/* Line 268 of yacc.c */ -#line 293 "i386_parse.c" - -/* Enabling traces. */ -#ifndef YYDEBUG -# define YYDEBUG 0 -#endif +# ifndef YY_NULL +# if defined __cplusplus && 201103L <= __cplusplus +# define YY_NULL nullptr +# else +# define YY_NULL 0 +# endif +# endif /* Enabling verbose error messages. */ #ifdef YYERROR_VERBOSE @@ -304,11 +305,17 @@ static size_t best_mnemonic_bits; # define YYERROR_VERBOSE 0 #endif -/* Enabling the token table. */ -#ifndef YYTOKEN_TABLE -# define YYTOKEN_TABLE 0 +/* In a future release of Bison, this section will be replaced + by #include "y.tab.h". */ +#ifndef YY_I386_I_PARSE_H_INCLUDED +# define YY_I386_I_PARSE_H_INCLUDED +/* Enabling traces. */ +#ifndef YYDEBUG +# define YYDEBUG 0 +#endif +#if YYDEBUG +extern int i386_debug; #endif - /* Tokens. */ #ifndef YYTOKENTYPE @@ -342,13 +349,11 @@ static size_t best_mnemonic_bits; - #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE { - -/* Line 293 of yacc.c */ -#line 214 "i386_parse.y" +/* Line 387 of yacc.c */ +#line 217 "/home/mark/src/elfutils/libcpu/i386_parse.y" unsigned long int num; char *str; @@ -359,21 +364,36 @@ typedef union YYSTYPE struct argument *arg; - -/* Line 293 of yacc.c */ -#line 365 "i386_parse.c" +/* Line 387 of yacc.c */ +#line 369 "i386_parse.c" } YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 #endif +extern YYSTYPE i386_lval; -/* Copy the second part of user declarations. */ +#ifdef YYPARSE_PARAM +#if defined __STDC__ || defined __cplusplus +int i386_parse (void *YYPARSE_PARAM); +#else +int i386_parse (); +#endif +#else /* ! YYPARSE_PARAM */ +#if defined __STDC__ || defined __cplusplus +int i386_parse (void); +#else +int i386_parse (); +#endif +#endif /* ! YYPARSE_PARAM */ +#endif /* !YY_I386_I_PARSE_H_INCLUDED */ -/* Line 343 of yacc.c */ -#line 377 "i386_parse.c" +/* Copy the second part of user declarations. */ + +/* Line 390 of yacc.c */ +#line 397 "i386_parse.c" #ifdef short # undef short @@ -426,24 +446,24 @@ typedef short int yytype_int16; # if defined YYENABLE_NLS && YYENABLE_NLS # if ENABLE_NLS # include <libintl.h> /* INFRINGES ON USER NAME SPACE */ -# define YY_(msgid) dgettext ("bison-runtime", msgid) +# define YY_(Msgid) dgettext ("bison-runtime", Msgid) # endif # endif # ifndef YY_ -# define YY_(msgid) msgid +# define YY_(Msgid) Msgid # endif #endif /* Suppress unused-variable warnings by "using" E. */ #if ! defined lint || defined __GNUC__ -# define YYUSE(e) ((void) (e)) +# define YYUSE(E) ((void) (E)) #else -# define YYUSE(e) /* empty */ +# define YYUSE(E) /* empty */ #endif /* Identity function, used to suppress warnings about constant conditions. */ #ifndef lint -# define YYID(n) (n) +# define YYID(N) (N) #else #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) @@ -479,6 +499,7 @@ YYID (yyi) # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ + /* Use EXIT_SUCCESS as a witness for stdlib.h. */ # ifndef EXIT_SUCCESS # define EXIT_SUCCESS 0 # endif @@ -570,20 +591,20 @@ union yyalloc #endif #if defined YYCOPY_NEEDED && YYCOPY_NEEDED -/* Copy COUNT objects from FROM to TO. The source and destination do +/* Copy COUNT objects from SRC to DST. The source and destination do not overlap. */ # ifndef YYCOPY # if defined __GNUC__ && 1 < __GNUC__ -# define YYCOPY(To, From, Count) \ - __builtin_memcpy (To, From, (Count) * sizeof (*(From))) +# define YYCOPY(Dst, Src, Count) \ + __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) # else -# define YYCOPY(To, From, Count) \ - do \ - { \ - YYSIZE_T yyi; \ - for (yyi = 0; yyi < (Count); yyi++) \ - (To)[yyi] = (From)[yyi]; \ - } \ +# define YYCOPY(Dst, Src, Count) \ + do \ + { \ + YYSIZE_T yyi; \ + for (yyi = 0; yyi < (Count); yyi++) \ + (Dst)[yyi] = (Src)[yyi]; \ + } \ while (YYID (0)) # endif # endif @@ -670,14 +691,14 @@ static const yytype_int8 yyrhs[] = /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const yytype_uint16 yyrline[] = { - 0, 244, 244, 254, 255, 258, 260, 262, 264, 276, - 279, 280, 283, 366, 369, 385, 388, 398, 405, 413, - 417, 424, 431, 453, 456, 459, 469, 477, 485, 488, - 520, 529, 536 + 0, 247, 247, 257, 258, 261, 263, 265, 267, 279, + 282, 283, 286, 369, 372, 388, 391, 401, 408, 416, + 420, 427, 434, 456, 459, 462, 472, 480, 488, 491, + 523, 532, 539 }; #endif -#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE +#if YYDEBUG || YYERROR_VERBOSE || 0 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = @@ -686,7 +707,7 @@ static const char *const yytname[] = "kSYNONYM", "kID", "kNUMBER", "kPERCPERC", "kBITFIELD", "kCHAR", "kSPACE", "'\\n'", "':'", "','", "'0'", "'1'", "$accept", "spec", "masks", "mask", "instrs", "instr", "bitfieldopt", "bytes", "byte", - "bit", "optargs", "args", "arg", "argcomp", 0 + "bit", "optargs", "args", "arg", "argcomp", YY_NULL }; #endif @@ -768,10 +789,10 @@ static const yytype_uint8 yytable[] = 27, 48, 37, 34, 36, 0, 46, 18 }; -#define yypact_value_is_default(yystate) \ - ((yystate) == (-35)) +#define yypact_value_is_default(Yystate) \ + (!!((Yystate) == (-35))) -#define yytable_value_is_error(yytable_value) \ +#define yytable_value_is_error(Yytable_value) \ YYID (0) static const yytype_int8 yycheck[] = @@ -820,62 +841,35 @@ static const yytype_uint8 yystos[] = #define YYRECOVERING() (!!yyerrstatus) -#define YYBACKUP(Token, Value) \ -do \ - if (yychar == YYEMPTY && yylen == 1) \ - { \ - yychar = (Token); \ - yylval = (Value); \ - YYPOPSTACK (1); \ - goto yybackup; \ - } \ - else \ - { \ +#define YYBACKUP(Token, Value) \ +do \ + if (yychar == YYEMPTY) \ + { \ + yychar = (Token); \ + yylval = (Value); \ + YYPOPSTACK (yylen); \ + yystate = *yyssp; \ + goto yybackup; \ + } \ + else \ + { \ yyerror (YY_("syntax error: cannot back up")); \ YYERROR; \ } \ while (YYID (0)) - +/* Error token number */ #define YYTERROR 1 #define YYERRCODE 256 -/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. - If N is 0, then set CURRENT to the empty location which ends - the previous symbol: RHS[0] (always defined). */ - -#define YYRHSLOC(Rhs, K) ((Rhs)[K]) -#ifndef YYLLOC_DEFAULT -# define YYLLOC_DEFAULT(Current, Rhs, N) \ - do \ - if (YYID (N)) \ - { \ - (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ - (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ - (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ - (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ - } \ - else \ - { \ - (Current).first_line = (Current).last_line = \ - YYRHSLOC (Rhs, 0).last_line; \ - (Current).first_column = (Current).last_column = \ - YYRHSLOC (Rhs, 0).last_column; \ - } \ - while (YYID (0)) -#endif - - /* This macro is provided for backward compatibility. */ - #ifndef YY_LOCATION_PRINT # define YY_LOCATION_PRINT(File, Loc) ((void) 0) #endif /* YYLEX -- calling `yylex' with the right arguments. */ - #ifdef YYLEX_PARAM # define YYLEX yylex (YYLEX_PARAM) #else @@ -925,6 +919,8 @@ yy_symbol_value_print (yyoutput, yytype, yyvaluep) YYSTYPE const * const yyvaluep; #endif { + FILE *yyo = yyoutput; + YYUSE (yyo); if (!yyvaluep) return; # ifdef YYPRINT @@ -936,7 +932,7 @@ yy_symbol_value_print (yyoutput, yytype, yyvaluep) switch (yytype) { default: - break; + break; } } @@ -1176,12 +1172,11 @@ static int yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, yytype_int16 *yyssp, int yytoken) { - YYSIZE_T yysize0 = yytnamerr (0, yytname[yytoken]); + YYSIZE_T yysize0 = yytnamerr (YY_NULL, yytname[yytoken]); YYSIZE_T yysize = yysize0; - YYSIZE_T yysize1; enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; /* Internationalized format string. */ - const char *yyformat = 0; + const char *yyformat = YY_NULL; /* Arguments of yyformat. */ char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; /* Number of reported tokens (one for the "unexpected", one per @@ -1241,11 +1236,13 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, break; } yyarg[yycount++] = yytname[yyx]; - yysize1 = yysize + yytnamerr (0, yytname[yyx]); - if (! (yysize <= yysize1 - && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) - return 2; - yysize = yysize1; + { + YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]); + if (! (yysize <= yysize1 + && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) + return 2; + yysize = yysize1; + } } } } @@ -1265,10 +1262,12 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, # undef YYCASE_ } - yysize1 = yysize + yystrlen (yyformat); - if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) - return 2; - yysize = yysize1; + { + YYSIZE_T yysize1 = yysize + yystrlen (yyformat); + if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) + return 2; + yysize = yysize1; + } if (*yymsg_alloc < yysize) { @@ -1328,32 +1327,27 @@ yydestruct (yymsg, yytype, yyvaluep) { default: - break; + break; } } -/* Prevent warnings from -Wmissing-prototypes. */ -#ifdef YYPARSE_PARAM -#if defined __STDC__ || defined __cplusplus -int yyparse (void *YYPARSE_PARAM); -#else -int yyparse (); -#endif -#else /* ! YYPARSE_PARAM */ -#if defined __STDC__ || defined __cplusplus -int yyparse (void); -#else -int yyparse (); -#endif -#endif /* ! YYPARSE_PARAM */ /* The lookahead symbol. */ int yychar; + +#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN +# define YY_IGNORE_MAYBE_UNINITIALIZED_END +#endif +#ifndef YY_INITIAL_VALUE +# define YY_INITIAL_VALUE(Value) /* Nothing. */ +#endif + /* The semantic value of the lookahead symbol. */ -YYSTYPE yylval; +YYSTYPE yylval YY_INITIAL_VALUE(yyval_default); /* Number of syntax errors so far. */ int yynerrs; @@ -1393,7 +1387,7 @@ yyparse () `yyss': related to states. `yyvs': related to semantic values. - Refer to the stacks thru separate pointers, to allow yyoverflow + Refer to the stacks through separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* The state stack. */ @@ -1411,7 +1405,7 @@ yyparse () int yyn; int yyresult; /* Lookahead token as an internal (translated) token number. */ - int yytoken; + int yytoken = 0; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; @@ -1429,9 +1423,8 @@ yyparse () Keep to zero when no symbol should be popped. */ int yylen = 0; - yytoken = 0; - yyss = yyssa; - yyvs = yyvsa; + yyssp = yyss = yyssa; + yyvsp = yyvs = yyvsa; yystacksize = YYINITDEPTH; YYDPRINTF ((stderr, "Starting parse\n")); @@ -1440,14 +1433,6 @@ yyparse () yyerrstatus = 0; yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ - - /* Initialize stack pointers. - Waste one element of value and location stack - so that they stay on the same level as the state stack. - The wasted elements are never initialized. */ - yyssp = yyss; - yyvsp = yyvs; - goto yysetstate; /*------------------------------------------------------------. @@ -1588,7 +1573,9 @@ yybackup: yychar = YYEMPTY; yystate = yyn; + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN *++yyvsp = yylval; + YY_IGNORE_MAYBE_UNINITIALIZED_END goto yynewstate; @@ -1625,9 +1612,8 @@ yyreduce: switch (yyn) { case 2: - -/* Line 1806 of yacc.c */ -#line 245 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 248 "/home/mark/src/elfutils/libcpu/i386_parse.y" { if (error_message_count != 0) error (EXIT_FAILURE, 0, @@ -1638,30 +1624,26 @@ yyreduce: break; case 5: - -/* Line 1806 of yacc.c */ -#line 259 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 262 "/home/mark/src/elfutils/libcpu/i386_parse.y" { new_bitfield ((yyvsp[(2) - (3)].str), (yyvsp[(3) - (3)].num)); } break; case 6: - -/* Line 1806 of yacc.c */ -#line 261 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 264 "/home/mark/src/elfutils/libcpu/i386_parse.y" { new_bitfield ((yyvsp[(2) - (2)].str), -1); } break; case 7: - -/* Line 1806 of yacc.c */ -#line 263 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 266 "/home/mark/src/elfutils/libcpu/i386_parse.y" { new_bitfield ((yyvsp[(2) - (2)].str), -2); } break; case 8: - -/* Line 1806 of yacc.c */ -#line 265 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 268 "/home/mark/src/elfutils/libcpu/i386_parse.y" { struct synonym *newp = xmalloc (sizeof (*newp)); newp->from = (yyvsp[(2) - (3)].str); @@ -1676,9 +1658,8 @@ yyreduce: break; case 12: - -/* Line 1806 of yacc.c */ -#line 284 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 287 "/home/mark/src/elfutils/libcpu/i386_parse.y" { if ((yyvsp[(3) - (6)].field) != NULL && strcmp ((yyvsp[(3) - (6)].field)->name, "RE") != 0 && strcmp ((yyvsp[(3) - (6)].field)->name, "R") != 0) @@ -1764,9 +1745,8 @@ yyreduce: break; case 14: - -/* Line 1806 of yacc.c */ -#line 370 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 373 "/home/mark/src/elfutils/libcpu/i386_parse.y" { struct known_bitfield search; search.name = (yyvsp[(1) - (1)].str); @@ -1784,16 +1764,14 @@ yyreduce: break; case 15: - -/* Line 1806 of yacc.c */ -#line 385 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 388 "/home/mark/src/elfutils/libcpu/i386_parse.y" { (yyval.field) = NULL; } break; case 16: - -/* Line 1806 of yacc.c */ -#line 389 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 392 "/home/mark/src/elfutils/libcpu/i386_parse.y" { check_bits ((yyvsp[(3) - (3)].bit)); @@ -1806,9 +1784,8 @@ yyreduce: break; case 17: - -/* Line 1806 of yacc.c */ -#line 399 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 402 "/home/mark/src/elfutils/libcpu/i386_parse.y" { check_bits ((yyvsp[(1) - (1)].bit)); (yyval.bit) = (yyvsp[(1) - (1)].bit); @@ -1816,9 +1793,8 @@ yyreduce: break; case 18: - -/* Line 1806 of yacc.c */ -#line 406 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 409 "/home/mark/src/elfutils/libcpu/i386_parse.y" { struct bitvalue *runp = (yyvsp[(1) - (2)].bit); while (runp->next != NULL) @@ -1829,16 +1805,14 @@ yyreduce: break; case 19: - -/* Line 1806 of yacc.c */ -#line 414 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 417 "/home/mark/src/elfutils/libcpu/i386_parse.y" { (yyval.bit) = (yyvsp[(1) - (1)].bit); } break; case 20: - -/* Line 1806 of yacc.c */ -#line 418 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 421 "/home/mark/src/elfutils/libcpu/i386_parse.y" { (yyval.bit) = xmalloc (sizeof (struct bitvalue)); (yyval.bit)->type = zeroone; @@ -1848,9 +1822,8 @@ yyreduce: break; case 21: - -/* Line 1806 of yacc.c */ -#line 425 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 428 "/home/mark/src/elfutils/libcpu/i386_parse.y" { (yyval.bit) = xmalloc (sizeof (struct bitvalue)); (yyval.bit)->type = zeroone; @@ -1860,9 +1833,8 @@ yyreduce: break; case 22: - -/* Line 1806 of yacc.c */ -#line 432 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 435 "/home/mark/src/elfutils/libcpu/i386_parse.y" { (yyval.bit) = xmalloc (sizeof (struct bitvalue)); struct known_bitfield search; @@ -1885,23 +1857,20 @@ yyreduce: break; case 23: - -/* Line 1806 of yacc.c */ -#line 454 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 457 "/home/mark/src/elfutils/libcpu/i386_parse.y" { (yyval.arg) = (yyvsp[(2) - (2)].arg); } break; case 24: - -/* Line 1806 of yacc.c */ -#line 456 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 459 "/home/mark/src/elfutils/libcpu/i386_parse.y" { (yyval.arg) = NULL; } break; case 25: - -/* Line 1806 of yacc.c */ -#line 460 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 463 "/home/mark/src/elfutils/libcpu/i386_parse.y" { struct argument *runp = (yyvsp[(1) - (3)].arg); while (runp->next != NULL) @@ -1914,9 +1883,8 @@ yyreduce: break; case 26: - -/* Line 1806 of yacc.c */ -#line 470 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 473 "/home/mark/src/elfutils/libcpu/i386_parse.y" { (yyval.arg) = xmalloc (sizeof (struct argument)); (yyval.arg)->name = combine ((yyvsp[(1) - (1)].name)); @@ -1925,9 +1893,8 @@ yyreduce: break; case 27: - -/* Line 1806 of yacc.c */ -#line 478 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 481 "/home/mark/src/elfutils/libcpu/i386_parse.y" { struct argname *runp = (yyvsp[(1) - (2)].name); while (runp->next != NULL) @@ -1938,16 +1905,14 @@ yyreduce: break; case 28: - -/* Line 1806 of yacc.c */ -#line 486 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 489 "/home/mark/src/elfutils/libcpu/i386_parse.y" { (yyval.name) = (yyvsp[(1) - (1)].name); } break; case 29: - -/* Line 1806 of yacc.c */ -#line 489 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 492 "/home/mark/src/elfutils/libcpu/i386_parse.y" { (yyval.name) = xmalloc (sizeof (struct argname)); (yyval.name)->type = nfield; @@ -1982,9 +1947,8 @@ yyreduce: break; case 30: - -/* Line 1806 of yacc.c */ -#line 521 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 524 "/home/mark/src/elfutils/libcpu/i386_parse.y" { (yyval.name) = xmalloc (sizeof (struct argname)); (yyval.name)->type = string; @@ -1996,9 +1960,8 @@ yyreduce: break; case 31: - -/* Line 1806 of yacc.c */ -#line 530 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 533 "/home/mark/src/elfutils/libcpu/i386_parse.y" { (yyval.name) = xmalloc (sizeof (struct argname)); (yyval.name)->type = string; @@ -2008,9 +1971,8 @@ yyreduce: break; case 32: - -/* Line 1806 of yacc.c */ -#line 537 "i386_parse.y" +/* Line 1792 of yacc.c */ +#line 540 "/home/mark/src/elfutils/libcpu/i386_parse.y" { (yyval.name) = xmalloc (sizeof (struct argname)); (yyval.name)->type = string; @@ -2022,9 +1984,8 @@ yyreduce: break; - -/* Line 1806 of yacc.c */ -#line 2028 "i386_parse.c" +/* Line 1792 of yacc.c */ +#line 1989 "i386_parse.c" default: break; } /* User semantic actions sometimes alter yychar, and that requires @@ -2187,7 +2148,9 @@ yyerrlab1: YY_STACK_PRINT (yyss, yyssp); } + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN *++yyvsp = yylval; + YY_IGNORE_MAYBE_UNINITIALIZED_END /* Shift the error token. */ @@ -2211,7 +2174,7 @@ yyabortlab: yyresult = 1; goto yyreturn; -#if !defined(yyoverflow) || YYERROR_VERBOSE +#if !defined yyoverflow || YYERROR_VERBOSE /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ @@ -2253,9 +2216,8 @@ yyreturn: } - -/* Line 2067 of yacc.c */ -#line 547 "i386_parse.y" +/* Line 2055 of yacc.c */ +#line 550 "/home/mark/src/elfutils/libcpu/i386_parse.y" static void @@ -3394,4 +3356,3 @@ create_mnemonic_table (void) } } #endif - |