| @@ -1,8 +1,8 @@ |
| 1 | | −/* A Bison parser, made by GNU Bison 2.5. */ |
| 1 | +/* A Bison parser, made by GNU Bison 2.7.12-4996. */ |
| 2 | 2 | |
| 3 | 3 | /* Bison implementation for Yacc-like parsers in C |
| 4 | 4 | |
| 5 | | − Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc. |
| 5 | + Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc. |
| 6 | 6 | |
| 7 | 7 | This program is free software: you can redistribute it and/or modify |
| 8 | 8 | it under the terms of the GNU General Public License as published by |
| @@ -44,7 +44,7 @@ · 35 unmodified lines |
| 44 | 44 | #define YYBISON 1 |
| 45 | 45 | |
| 46 | 46 | /* Bison version. */ |
| 47 | | −#define YYBISON_VERSION "2.5" |
| 47 | +#define YYBISON_VERSION "2.7.12-4996" |
| 48 | 48 | |
| 49 | 49 | /* Skeleton name. */ |
| 50 | 50 | #define YYSKELETON_NAME "yacc.c" |
| @@ -58,14 +58,11 @@ · 7 unmodified lines |
| 58 | 58 | /* Pull parsers. */ |
| 59 | 59 | #define YYPULL 1 |
| 60 | 60 | |
| 61 | | −/* Using locations. */ |
| 62 | | −#define YYLSP_NEEDED 0 |
| 63 | 61 | |
| 64 | 62 | |
| 65 | 63 | |
| 66 | 64 | /* Copy the first part of user declarations. */ |
| 67 | | − |
| 68 | | −/* Line 268 of yacc.c */ |
| 65 | +/* Line 371 of yacc.c */ |
| 69 | 66 | #line 21 "dtc-parser.y" |
| 70 | 67 | |
| 71 | 68 | #include <stdio.h> |
| @@ -85,14 +82,16 @@ extern int treesource_error; · 13 unmodified lines |
| 85 | 82 | static unsigned long long eval_literal(const char *s, int base, int bits); |
| 86 | 83 | static unsigned char eval_char_literal(const char *s); |
| 87 | 84 | |
| 85 | +/* Line 371 of yacc.c */ |
| 86 | +#line 87 "dtc-parser.tab.c" |
| 88 | 87 | |
| 89 | | −/* Line 268 of yacc.c */ |
| 90 | | −#line 91 "dtc-parser.tab.c" |
| 91 | | − |
| 92 | | −/* Enabling traces. */ |
| 93 | | −#ifndef YYDEBUG |
| 94 | | −# define YYDEBUG 0 |
| 95 | | −#endif |
| 88 | +# ifndef YY_NULL |
| 89 | +# if defined __cplusplus && 201103L <= __cplusplus |
| 90 | +# define YY_NULL nullptr |
| 91 | +# else |
| 92 | +# define YY_NULL 0 |
| 93 | +# endif |
| 94 | +# endif |
| 96 | 95 | |
| 97 | 96 | /* Enabling verbose error messages. */ |
| 98 | 97 | #ifdef YYERROR_VERBOSE |
| @@ -102,11 +101,17 @@ static unsigned char eval_char_literal(const char *s); · 3 unmodified lines |
| 102 | 101 | # define YYERROR_VERBOSE 0 |
| 103 | 102 | #endif |
| 104 | 103 | |
| 105 | | −/* Enabling the token table. */ |
| 106 | | −#ifndef YYTOKEN_TABLE |
| 107 | | −# define YYTOKEN_TABLE 0 |
| 104 | +/* In a future release of Bison, this section will be replaced |
| 105 | + by #include "dtc-parser.tab.h". */ |
| 106 | +#ifndef YY_YY_DTC_PARSER_TAB_H_INCLUDED |
| 107 | +# define YY_YY_DTC_PARSER_TAB_H_INCLUDED |
| 108 | +/* Enabling traces. */ |
| 109 | +#ifndef YYDEBUG |
| 110 | +# define YYDEBUG 0 |
| 111 | +#endif |
| 112 | +#if YYDEBUG |
| 113 | +extern int yydebug; |
| 108 | 114 | #endif |
| 109 | | − |
| 110 | 115 | |
| 111 | 116 | /* Tokens. */ |
| 112 | 117 | #ifndef YYTOKENTYPE |
| @@ -140,12 +145,10 @@ static unsigned char eval_char_literal(const char *s); · 27 unmodified lines |
| 140 | 145 | #endif |
| 141 | 146 | |
| 142 | 147 | |
| 143 | | − |
| 144 | 148 | #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
| 145 | 149 | typedef union YYSTYPE |
| 146 | 150 | { |
| 147 | | − |
| 148 | | −/* Line 293 of yacc.c */ |
| 151 | +/* Line 387 of yacc.c */ |
| 149 | 152 | #line 40 "dtc-parser.y" |
| 150 | 153 | |
| 151 | 154 | char *propnodename; |
| @@ -168,21 +171,36 @@ typedef union YYSTYPE · 16 unmodified lines |
| 168 | 171 | uint64_t integer; |
| 169 | 172 | |
| 170 | 173 | |
| 171 | | − |
| 172 | | −/* Line 293 of yacc.c */ |
| 173 | | −#line 174 "dtc-parser.tab.c" |
| 174 | +/* Line 387 of yacc.c */ |
| 175 | +#line 176 "dtc-parser.tab.c" |
| 174 | 176 | } YYSTYPE; |
| 175 | 177 | # define YYSTYPE_IS_TRIVIAL 1 |
| 176 | 178 | # define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
| 177 | 179 | # define YYSTYPE_IS_DECLARED 1 |
| 178 | 180 | #endif |
| 179 | 181 | |
| 182 | +extern YYSTYPE yylval; |
| 180 | 183 | |
| 181 | | −/* Copy the second part of user declarations. */ |
| 184 | +#ifdef YYPARSE_PARAM |
| 185 | +#if defined __STDC__ || defined __cplusplus |
| 186 | +int yyparse (void *YYPARSE_PARAM); |
| 187 | +#else |
| 188 | +int yyparse (); |
| 189 | +#endif |
| 190 | +#else /* ! YYPARSE_PARAM */ |
| 191 | +#if defined __STDC__ || defined __cplusplus |
| 192 | +int yyparse (void); |
| 193 | +#else |
| 194 | +int yyparse (); |
| 195 | +#endif |
| 196 | +#endif /* ! YYPARSE_PARAM */ |
| 182 | 197 | |
| 198 | +#endif /* !YY_YY_DTC_PARSER_TAB_H_INCLUDED */ |
| 183 | 199 | |
| 184 | | −/* Line 343 of yacc.c */ |
| 185 | | −#line 186 "dtc-parser.tab.c" |
| 200 | +/* Copy the second part of user declarations. */ |
| 201 | + |
| 202 | +/* Line 390 of yacc.c */ |
| 203 | +#line 204 "dtc-parser.tab.c" |
| 186 | 204 | |
| 187 | 205 | #ifdef short |
| 188 | 206 | # undef short |
| @@ -235,24 +253,33 @@ typedef short int yytype_int16; · 46 unmodified lines |
| 235 | 253 | # if defined YYENABLE_NLS && YYENABLE_NLS |
| 236 | 254 | # if ENABLE_NLS |
| 237 | 255 | # include <libintl.h> /* INFRINGES ON USER NAME SPACE */ |
| 238 | | −# define YY_(msgid) dgettext ("bison-runtime", msgid) |
| 256 | +# define YY_(Msgid) dgettext ("bison-runtime", Msgid) |
| 239 | 257 | # endif |
| 240 | 258 | # endif |
| 241 | 259 | # ifndef YY_ |
| 242 | | −# define YY_(msgid) msgid |
| 260 | +# define YY_(Msgid) Msgid |
| 261 | +# endif |
| 262 | +#endif |
| 263 | + |
| 264 | +#ifndef __attribute__ |
| 265 | +/* This feature is available in gcc versions 2.5 and later. */ |
| 266 | +# if (! defined __GNUC__ || __GNUC__ < 2 \ |
| 267 | + || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)) |
| 268 | +# define __attribute__(Spec) /* empty */ |
| 243 | 269 | # endif |
| 244 | 270 | #endif |
| 245 | 271 | |
| 246 | 272 | /* Suppress unused-variable warnings by "using" E. */ |
| 247 | 273 | #if ! defined lint || defined __GNUC__ |
| 248 | | −# define YYUSE(e) ((void) (e)) |
| 274 | +# define YYUSE(E) ((void) (E)) |
| 249 | 275 | #else |
| 250 | | −# define YYUSE(e) /* empty */ |
| 276 | +# define YYUSE(E) /* empty */ |
| 251 | 277 | #endif |
| 252 | 278 | |
| 279 | + |
| 253 | 280 | /* Identity function, used to suppress warnings about constant conditions. */ |
| 254 | 281 | #ifndef lint |
| 255 | | −# define YYID(n) (n) |
| 282 | +# define YYID(N) (N) |
| 256 | 283 | #else |
| 257 | 284 | #if (defined __STDC__ || defined __C99__FUNC__ \ |
| 258 | 285 | || defined __cplusplus || defined _MSC_VER) |
| @@ -288,6 +315,7 @@ YYID (yyi) · 29 unmodified lines |
| 288 | 315 | # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ |
| 289 | 316 | || defined __cplusplus || defined _MSC_VER) |
| 290 | 317 | # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
| 318 | + /* Use EXIT_SUCCESS as a witness for stdlib.h. */ |
| 291 | 319 | # ifndef EXIT_SUCCESS |
| 292 | 320 | # define EXIT_SUCCESS 0 |
| 293 | 321 | # endif |
| @@ -379,20 +407,20 @@ union yyalloc · 85 unmodified lines |
| 379 | 407 | #endif |
| 380 | 408 | |
| 381 | 409 | #if defined YYCOPY_NEEDED && YYCOPY_NEEDED |
| 382 | | −/* Copy COUNT objects from FROM to TO. The source and destination do |
| 410 | +/* Copy COUNT objects from SRC to DST. The source and destination do |
| 383 | 411 | not overlap. */ |
| 384 | 412 | # ifndef YYCOPY |
| 385 | 413 | # if defined __GNUC__ && 1 < __GNUC__ |
| 386 | | −# define YYCOPY(To, From, Count) \ |
| 387 | | − __builtin_memcpy (To, From, (Count) * sizeof (*(From))) |
| 414 | +# define YYCOPY(Dst, Src, Count) \ |
| 415 | + __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) |
| 388 | 416 | # else |
| 389 | | −# define YYCOPY(To, From, Count) \ |
| 390 | | − do \ |
| 391 | | − { \ |
| 392 | | − YYSIZE_T yyi; \ |
| 393 | | − for (yyi = 0; yyi < (Count); yyi++) \ |
| 394 | | − (To)[yyi] = (From)[yyi]; \ |
| 395 | | − } \ |
| 417 | +# define YYCOPY(Dst, Src, Count) \ |
| 418 | + do \ |
| 419 | + { \ |
| 420 | + YYSIZE_T yyi; \ |
| 421 | + for (yyi = 0; yyi < (Count); yyi++) \ |
| 422 | + (Dst)[yyi] = (Src)[yyi]; \ |
| 423 | + } \ |
| 396 | 424 | while (YYID (0)) |
| 397 | 425 | # endif |
| 398 | 426 | # endif |
| @@ -513,7 +541,7 @@ static const yytype_uint16 yyrline[] = · 114 unmodified lines |
| 513 | 541 | }; |
| 514 | 542 | #endif |
| 515 | 543 | |
| 516 | | −#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE |
| 544 | +#if YYDEBUG || YYERROR_VERBOSE || 0 |
| 517 | 545 | /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. |
| 518 | 546 | First, the terminals, then, starting at YYNTOKENS, nonterminals. */ |
| 519 | 547 | static const char *const yytname[] = |
| @@ -530,7 +558,7 @@ static const char *const yytname[] = · 10 unmodified lines |
| 530 | 558 | "integer_expr", "integer_trinary", "integer_or", "integer_and", |
| 531 | 559 | "integer_bitor", "integer_bitxor", "integer_bitand", "integer_eq", |
| 532 | 560 | "integer_rela", "integer_shift", "integer_add", "integer_mul", |
| 533 | | − "integer_unary", "bytestring", "subnodes", "subnode", 0 |
| 561 | + "integer_unary", "bytestring", "subnodes", "subnode", YY_NULL |
| 534 | 562 | }; |
| 535 | 563 | #endif |
| 536 | 564 | |
| @@ -655,10 +683,10 @@ static const yytype_uint8 yytable[] = · 118 unmodified lines |
| 655 | 683 | 137, 0, 73, 139 |
| 656 | 684 | }; |
| 657 | 685 | |
| 658 | | −#define yypact_value_is_default(yystate) \ |
| 659 | | − ((yystate) == (-78)) |
| 686 | +#define yypact_value_is_default(Yystate) \ |
| 687 | + (!!((Yystate) == (-78))) |
| 660 | 688 | |
| 661 | | −#define yytable_value_is_error(yytable_value) \ |
| 689 | +#define yytable_value_is_error(Yytable_value) \ |
| 662 | 690 | YYID (0) |
| 663 | 691 | |
| 664 | 692 | static const yytype_int16 yycheck[] = |
| @@ -727,62 +755,35 @@ static const yytype_uint8 yystos[] = · 62 unmodified lines |
| 727 | 755 | |
| 728 | 756 | #define YYRECOVERING() (!!yyerrstatus) |
| 729 | 757 | |
| 730 | | −#define YYBACKUP(Token, Value) \ |
| 731 | | −do \ |
| 732 | | − if (yychar == YYEMPTY && yylen == 1) \ |
| 733 | | − { \ |
| 734 | | − yychar = (Token); \ |
| 735 | | − yylval = (Value); \ |
| 736 | | − YYPOPSTACK (1); \ |
| 737 | | − goto yybackup; \ |
| 738 | | − } \ |
| 739 | | − else \ |
| 740 | | − { \ |
| 758 | +#define YYBACKUP(Token, Value) \ |
| 759 | +do \ |
| 760 | + if (yychar == YYEMPTY) \ |
| 761 | + { \ |
| 762 | + yychar = (Token); \ |
| 763 | + yylval = (Value); \ |
| 764 | + YYPOPSTACK (yylen); \ |
| 765 | + yystate = *yyssp; \ |
| 766 | + goto yybackup; \ |
| 767 | + } \ |
| 768 | + else \ |
| 769 | + { \ |
| 741 | 770 | yyerror (YY_("syntax error: cannot back up")); \ |
| 742 | 771 | YYERROR; \ |
| 743 | 772 | } \ |
| 744 | 773 | while (YYID (0)) |
| 745 | 774 | |
| 746 | | − |
| 775 | +/* Error token number */ |
| 747 | 776 | #define YYTERROR 1 |
| 748 | 777 | #define YYERRCODE 256 |
| 749 | 778 | |
| 750 | 779 | |
| 751 | | −/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. |
| 752 | | − If N is 0, then set CURRENT to the empty location which ends |
| 753 | | − the previous symbol: RHS[0] (always defined). */ |
| 754 | | − |
| 755 | | −#define YYRHSLOC(Rhs, K) ((Rhs)[K]) |
| 756 | | −#ifndef YYLLOC_DEFAULT |
| 757 | | −# define YYLLOC_DEFAULT(Current, Rhs, N) \ |
| 758 | | − do \ |
| 759 | | − if (YYID (N)) \ |
| 760 | | − { \ |
| 761 | | − (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ |
| 762 | | − (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ |
| 763 | | − (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ |
| 764 | | − (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ |
| 765 | | − } \ |
| 766 | | − else \ |
| 767 | | − { \ |
| 768 | | − (Current).first_line = (Current).last_line = \ |
| 769 | | − YYRHSLOC (Rhs, 0).last_line; \ |
| 770 | | − (Current).first_column = (Current).last_column = \ |
| 771 | | − YYRHSLOC (Rhs, 0).last_column; \ |
| 772 | | − } \ |
| 773 | | − while (YYID (0)) |
| 774 | | −#endif |
| 775 | | − |
| 776 | | − |
| 777 | 780 | /* This macro is provided for backward compatibility. */ |
| 778 | | − |
| 779 | 781 | #ifndef YY_LOCATION_PRINT |
| 780 | 782 | # define YY_LOCATION_PRINT(File, Loc) ((void) 0) |
| 781 | 783 | #endif |
| 782 | 784 | |
| 783 | 785 | |
| 784 | 786 | /* YYLEX -- calling `yylex' with the right arguments. */ |
| 785 | | − |
| 786 | 787 | #ifdef YYLEX_PARAM |
| 787 | 788 | # define YYLEX yylex (YYLEX_PARAM) |
| 788 | 789 | #else |
| @@ -832,6 +833,8 @@ yy_symbol_value_print (yyoutput, yytype, yyvaluep) · 43 unmodified lines |
| 832 | 833 | YYSTYPE const * const yyvaluep; |
| 833 | 834 | #endif |
| 834 | 835 | { |
| 836 | + FILE *yyo = yyoutput; |
| 837 | + YYUSE (yyo); |
| 835 | 838 | if (!yyvaluep) |
| 836 | 839 | return; |
| 837 | 840 | # ifdef YYPRINT |
| @@ -840,11 +843,7 @@ yy_symbol_value_print (yyoutput, yytype, yyvaluep) · 2 unmodified lines |
| 840 | 843 | # else |
| 841 | 844 | YYUSE (yyoutput); |
| 842 | 845 | # endif |
| 843 | | − switch (yytype) |
| 844 | | − { |
| 845 | | − default: |
| 846 | | − break; |
| 847 | | − } |
| 846 | + YYUSE (yytype); |
| 848 | 847 | } |
| 849 | 848 | |
| 850 | 849 | |
| @@ -1083,12 +1082,11 @@ static int · 232 unmodified lines |
| 1083 | 1082 | yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, |
| 1084 | 1083 | yytype_int16 *yyssp, int yytoken) |
| 1085 | 1084 | { |
| 1086 | | − YYSIZE_T yysize0 = yytnamerr (0, yytname[yytoken]); |
| 1085 | + YYSIZE_T yysize0 = yytnamerr (YY_NULL, yytname[yytoken]); |
| 1087 | 1086 | YYSIZE_T yysize = yysize0; |
| 1088 | | − YYSIZE_T yysize1; |
| 1089 | 1087 | enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; |
| 1090 | 1088 | /* Internationalized format string. */ |
| 1091 | | − const char *yyformat = 0; |
| 1089 | + const char *yyformat = YY_NULL; |
| 1092 | 1090 | /* Arguments of yyformat. */ |
| 1093 | 1091 | char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; |
| 1094 | 1092 | /* Number of reported tokens (one for the "unexpected", one per |
| @@ -1148,11 +1146,13 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, · 53 unmodified lines |
| 1148 | 1146 | break; |
| 1149 | 1147 | } |
| 1150 | 1148 | yyarg[yycount++] = yytname[yyx]; |
| 1151 | | − yysize1 = yysize + yytnamerr (0, yytname[yyx]); |
| 1152 | | − if (! (yysize <= yysize1 |
| 1153 | | − && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) |
| 1154 | | − return 2; |
| 1155 | | − yysize = yysize1; |
| 1149 | + { |
| 1150 | + YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]); |
| 1151 | + if (! (yysize <= yysize1 |
| 1152 | + && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) |
| 1153 | + return 2; |
| 1154 | + yysize = yysize1; |
| 1155 | + } |
| 1156 | 1156 | } |
| 1157 | 1157 | } |
| 1158 | 1158 | } |
| @@ -1172,10 +1172,12 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, · 13 unmodified lines |
| 1172 | 1172 | # undef YYCASE_ |
| 1173 | 1173 | } |
| 1174 | 1174 | |
| 1175 | | − yysize1 = yysize + yystrlen (yyformat); |
| 1176 | | − if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) |
| 1177 | | − return 2; |
| 1178 | | − yysize = yysize1; |
| 1175 | + { |
| 1176 | + YYSIZE_T yysize1 = yysize + yystrlen (yyformat); |
| 1177 | + if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) |
| 1178 | + return 2; |
| 1179 | + yysize = yysize1; |
| 1180 | + } |
| 1179 | 1181 | |
| 1180 | 1182 | if (*yymsg_alloc < yysize) |
| 1181 | 1183 | { |
| @@ -1231,36 +1233,26 @@ yydestruct (yymsg, yytype, yyvaluep) · 49 unmodified lines |
| 1231 | 1233 | yymsg = "Deleting"; |
| 1232 | 1234 | YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); |
| 1233 | 1235 | |
| 1234 | | − switch (yytype) |
| 1235 | | − { |
| 1236 | | − |
| 1237 | | − default: |
| 1238 | | − break; |
| 1239 | | − } |
| 1236 | + YYUSE (yytype); |
| 1240 | 1237 | } |
| 1241 | 1238 | |
| 1242 | 1239 | |
| 1243 | | −/* Prevent warnings from -Wmissing-prototypes. */ |
| 1244 | | −#ifdef YYPARSE_PARAM |
| 1245 | | −#if defined __STDC__ || defined __cplusplus |
| 1246 | | −int yyparse (void *YYPARSE_PARAM); |
| 1247 | | −#else |
| 1248 | | −int yyparse (); |
| 1249 | | −#endif |
| 1250 | | −#else /* ! YYPARSE_PARAM */ |
| 1251 | | −#if defined __STDC__ || defined __cplusplus |
| 1252 | | −int yyparse (void); |
| 1253 | | −#else |
| 1254 | | −int yyparse (); |
| 1255 | | −#endif |
| 1256 | | −#endif /* ! YYPARSE_PARAM */ |
| 1257 | 1240 | |
| 1258 | 1241 | |
| 1259 | 1242 | /* The lookahead symbol. */ |
| 1260 | 1243 | int yychar; |
| 1261 | 1244 | |
| 1245 | + |
| 1246 | +#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| 1247 | +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| 1248 | +# define YY_IGNORE_MAYBE_UNINITIALIZED_END |
| 1249 | +#endif |
| 1250 | +#ifndef YY_INITIAL_VALUE |
| 1251 | +# define YY_INITIAL_VALUE(Value) /* Nothing. */ |
| 1252 | +#endif |
| 1253 | + |
| 1262 | 1254 | /* The semantic value of the lookahead symbol. */ |
| 1263 | | −YYSTYPE yylval; |
| 1255 | +YYSTYPE yylval YY_INITIAL_VALUE(yyval_default); |
| 1264 | 1256 | |
| 1265 | 1257 | /* Number of syntax errors so far. */ |
| 1266 | 1258 | int yynerrs; |
| @@ -1300,7 +1292,7 @@ yyparse () · 33 unmodified lines |
| 1300 | 1292 | `yyss': related to states. |
| 1301 | 1293 | `yyvs': related to semantic values. |
| 1302 | 1294 | |
| 1303 | | − Refer to the stacks thru separate pointers, to allow yyoverflow |
| 1295 | + Refer to the stacks through separate pointers, to allow yyoverflow |
| 1304 | 1296 | to reallocate them elsewhere. */ |
| 1305 | 1297 | |
| 1306 | 1298 | /* The state stack. */ |
| @@ -1318,7 +1310,7 @@ yyparse () · 11 unmodified lines |
| 1318 | 1310 | int yyn; |
| 1319 | 1311 | int yyresult; |
| 1320 | 1312 | /* Lookahead token as an internal (translated) token number. */ |
| 1321 | | − int yytoken; |
| 1313 | + int yytoken = 0; |
| 1322 | 1314 | /* The variables used to return semantic value and location from the |
| 1323 | 1315 | action routines. */ |
| 1324 | 1316 | YYSTYPE yyval; |
| @@ -1336,9 +1328,8 @@ yyparse () · 11 unmodified lines |
| 1336 | 1328 | Keep to zero when no symbol should be popped. */ |
| 1337 | 1329 | int yylen = 0; |
| 1338 | 1330 | |
| 1339 | | − yytoken = 0; |
| 1340 | | − yyss = yyssa; |
| 1341 | | − yyvs = yyvsa; |
| 1331 | + yyssp = yyss = yyssa; |
| 1332 | + yyvsp = yyvs = yyvsa; |
| 1342 | 1333 | yystacksize = YYINITDEPTH; |
| 1343 | 1334 | |
| 1344 | 1335 | YYDPRINTF ((stderr, "Starting parse\n")); |
| @@ -1347,14 +1338,6 @@ yyparse () · 2 unmodified lines |
| 1347 | 1338 | yyerrstatus = 0; |
| 1348 | 1339 | yynerrs = 0; |
| 1349 | 1340 | yychar = YYEMPTY; /* Cause a token to be read. */ |
| 1350 | | − |
| 1351 | | − /* Initialize stack pointers. |
| 1352 | | − Waste one element of value and location stack |
| 1353 | | − so that they stay on the same level as the state stack. |
| 1354 | | − The wasted elements are never initialized. */ |
| 1355 | | − yyssp = yyss; |
| 1356 | | − yyvsp = yyvs; |
| 1357 | | − |
| 1358 | 1341 | goto yysetstate; |
| 1359 | 1342 | |
| 1360 | 1343 | /*------------------------------------------------------------. |
| @@ -1495,7 +1478,9 @@ yybackup: · 134 unmodified lines |
| 1495 | 1478 | yychar = YYEMPTY; |
| 1496 | 1479 | |
| 1497 | 1480 | yystate = yyn; |
| 1481 | + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| 1498 | 1482 | *++yyvsp = yylval; |
| 1483 | + YY_IGNORE_MAYBE_UNINITIALIZED_END |
| 1499 | 1484 | |
| 1500 | 1485 | goto yynewstate; |
| 1501 | 1486 | |
| @@ -1532,8 +1517,7 @@ yyreduce: · 30 unmodified lines |
| 1532 | 1517 | switch (yyn) |
| 1533 | 1518 | { |
| 1534 | 1519 | case 2: |
| 1535 | | − |
| 1536 | | −/* Line 1806 of yacc.c */ |
| 1520 | +/* Line 1787 of yacc.c */ |
| 1537 | 1521 | #line 110 "dtc-parser.y" |
| 1538 | 1522 | { |
| 1539 | 1523 | the_boot_info = build_boot_info((yyvsp[(3) - (4)].re), (yyvsp[(4) - (4)].node), |
| @@ -1542,8 +1526,7 @@ yyreduce: · 2 unmodified lines |
| 1542 | 1526 | break; |
| 1543 | 1527 | |
| 1544 | 1528 | case 3: |
| 1545 | | − |
| 1546 | | −/* Line 1806 of yacc.c */ |
| 1529 | +/* Line 1787 of yacc.c */ |
| 1547 | 1530 | #line 118 "dtc-parser.y" |
| 1548 | 1531 | { |
| 1549 | 1532 | (yyval.re) = NULL; |
| @@ -1551,8 +1534,7 @@ yyreduce: · 1 unmodified line |
| 1551 | 1534 | break; |
| 1552 | 1535 | |
| 1553 | 1536 | case 4: |
| 1554 | | − |
| 1555 | | −/* Line 1806 of yacc.c */ |
| 1537 | +/* Line 1787 of yacc.c */ |
| 1556 | 1538 | #line 122 "dtc-parser.y" |
| 1557 | 1539 | { |
| 1558 | 1540 | (yyval.re) = chain_reserve_entry((yyvsp[(1) - (2)].re), (yyvsp[(2) - (2)].re)); |
| @@ -1560,8 +1542,7 @@ yyreduce: · 1 unmodified line |
| 1560 | 1542 | break; |
| 1561 | 1543 | |
| 1562 | 1544 | case 5: |
| 1563 | | − |
| 1564 | | −/* Line 1806 of yacc.c */ |
| 1545 | +/* Line 1787 of yacc.c */ |
| 1565 | 1546 | #line 129 "dtc-parser.y" |
| 1566 | 1547 | { |
| 1567 | 1548 | (yyval.re) = build_reserve_entry((yyvsp[(2) - (4)].integer), (yyvsp[(3) - (4)].integer)); |
| @@ -1569,8 +1550,7 @@ yyreduce: · 1 unmodified line |
| 1569 | 1550 | break; |
| 1570 | 1551 | |
| 1571 | 1552 | case 6: |
| 1572 | | − |
| 1573 | | −/* Line 1806 of yacc.c */ |
| 1553 | +/* Line 1787 of yacc.c */ |
| 1574 | 1554 | #line 133 "dtc-parser.y" |
| 1575 | 1555 | { |
| 1576 | 1556 | add_label(&(yyvsp[(2) - (2)].re)->labels, (yyvsp[(1) - (2)].labelref)); |
| @@ -1579,8 +1559,7 @@ yyreduce: · 2 unmodified lines |
| 1579 | 1559 | break; |
| 1580 | 1560 | |
| 1581 | 1561 | case 7: |
| 1582 | | − |
| 1583 | | −/* Line 1806 of yacc.c */ |
| 1562 | +/* Line 1787 of yacc.c */ |
| 1584 | 1563 | #line 141 "dtc-parser.y" |
| 1585 | 1564 | { |
| 1586 | 1565 | (yyval.node) = name_node((yyvsp[(2) - (2)].node), ""); |
| @@ -1588,8 +1567,7 @@ yyreduce: · 1 unmodified line |
| 1588 | 1567 | break; |
| 1589 | 1568 | |
| 1590 | 1569 | case 8: |
| 1591 | | − |
| 1592 | | −/* Line 1806 of yacc.c */ |
| 1570 | +/* Line 1787 of yacc.c */ |
| 1593 | 1571 | #line 145 "dtc-parser.y" |
| 1594 | 1572 | { |
| 1595 | 1573 | (yyval.node) = merge_nodes((yyvsp[(1) - (3)].node), (yyvsp[(3) - (3)].node)); |
| @@ -1597,8 +1575,7 @@ yyreduce: · 1 unmodified line |
| 1597 | 1575 | break; |
| 1598 | 1576 | |
| 1599 | 1577 | case 9: |
| 1600 | | − |
| 1601 | | −/* Line 1806 of yacc.c */ |
| 1578 | +/* Line 1787 of yacc.c */ |
| 1602 | 1579 | #line 149 "dtc-parser.y" |
| 1603 | 1580 | { |
| 1604 | 1581 | struct node *target = get_node_by_ref((yyvsp[(1) - (3)].node), (yyvsp[(2) - (3)].labelref)); |
| @@ -1612,8 +1589,7 @@ yyreduce: · 7 unmodified lines |
| 1612 | 1589 | break; |
| 1613 | 1590 | |
| 1614 | 1591 | case 10: |
| 1615 | | − |
| 1616 | | −/* Line 1806 of yacc.c */ |
| 1592 | +/* Line 1787 of yacc.c */ |
| 1617 | 1593 | #line 159 "dtc-parser.y" |
| 1618 | 1594 | { |
| 1619 | 1595 | struct node *target = get_node_by_ref((yyvsp[(1) - (4)].node), (yyvsp[(3) - (4)].labelref)); |
| @@ -1628,8 +1604,7 @@ yyreduce: · 8 unmodified lines |
| 1628 | 1604 | break; |
| 1629 | 1605 | |
| 1630 | 1606 | case 11: |
| 1631 | | − |
| 1632 | | −/* Line 1806 of yacc.c */ |
| 1607 | +/* Line 1787 of yacc.c */ |
| 1633 | 1608 | #line 173 "dtc-parser.y" |
| 1634 | 1609 | { |
| 1635 | 1610 | (yyval.node) = build_node((yyvsp[(2) - (5)].proplist), (yyvsp[(3) - (5)].nodelist)); |
| @@ -1637,8 +1612,7 @@ yyreduce: · 1 unmodified line |
| 1637 | 1612 | break; |
| 1638 | 1613 | |
| 1639 | 1614 | case 12: |
| 1640 | | − |
| 1641 | | −/* Line 1806 of yacc.c */ |
| 1615 | +/* Line 1787 of yacc.c */ |
| 1642 | 1616 | #line 180 "dtc-parser.y" |
| 1643 | 1617 | { |
| 1644 | 1618 | (yyval.proplist) = NULL; |
| @@ -1646,8 +1620,7 @@ yyreduce: · 1 unmodified line |
| 1646 | 1620 | break; |
| 1647 | 1621 | |
| 1648 | 1622 | case 13: |
| 1649 | | − |
| 1650 | | −/* Line 1806 of yacc.c */ |
| 1623 | +/* Line 1787 of yacc.c */ |
| 1651 | 1624 | #line 184 "dtc-parser.y" |
| 1652 | 1625 | { |
| 1653 | 1626 | (yyval.proplist) = chain_property((yyvsp[(2) - (2)].prop), (yyvsp[(1) - (2)].proplist)); |
| @@ -1655,8 +1628,7 @@ yyreduce: · 1 unmodified line |
| 1655 | 1628 | break; |
| 1656 | 1629 | |
| 1657 | 1630 | case 14: |
| 1658 | | − |
| 1659 | | −/* Line 1806 of yacc.c */ |
| 1631 | +/* Line 1787 of yacc.c */ |
| 1660 | 1632 | #line 191 "dtc-parser.y" |
| 1661 | 1633 | { |
| 1662 | 1634 | (yyval.prop) = build_property((yyvsp[(1) - (4)].propnodename), (yyvsp[(3) - (4)].data)); |
| @@ -1664,8 +1636,7 @@ yyreduce: · 1 unmodified line |
| 1664 | 1636 | break; |
| 1665 | 1637 | |
| 1666 | 1638 | case 15: |
| 1667 | | − |
| 1668 | | −/* Line 1806 of yacc.c */ |
| 1639 | +/* Line 1787 of yacc.c */ |
| 1669 | 1640 | #line 195 "dtc-parser.y" |
| 1670 | 1641 | { |
| 1671 | 1642 | (yyval.prop) = build_property((yyvsp[(1) - (2)].propnodename), empty_data); |
| @@ -1673,8 +1644,7 @@ yyreduce: · 1 unmodified line |
| 1673 | 1644 | break; |
| 1674 | 1645 | |
| 1675 | 1646 | case 16: |
| 1676 | | − |
| 1677 | | −/* Line 1806 of yacc.c */ |
| 1647 | +/* Line 1787 of yacc.c */ |
| 1678 | 1648 | #line 199 "dtc-parser.y" |
| 1679 | 1649 | { |
| 1680 | 1650 | (yyval.prop) = build_property_delete((yyvsp[(2) - (3)].propnodename)); |
| @@ -1682,8 +1652,7 @@ yyreduce: · 1 unmodified line |
| 1682 | 1652 | break; |
| 1683 | 1653 | |
| 1684 | 1654 | case 17: |
| 1685 | | − |
| 1686 | | −/* Line 1806 of yacc.c */ |
| 1655 | +/* Line 1787 of yacc.c */ |
| 1687 | 1656 | #line 203 "dtc-parser.y" |
| 1688 | 1657 | { |
| 1689 | 1658 | add_label(&(yyvsp[(2) - (2)].prop)->labels, (yyvsp[(1) - (2)].labelref)); |
| @@ -1692,8 +1661,7 @@ yyreduce: · 2 unmodified lines |
| 1692 | 1661 | break; |
| 1693 | 1662 | |
| 1694 | 1663 | case 18: |
| 1695 | | − |
| 1696 | | −/* Line 1806 of yacc.c */ |
| 1664 | +/* Line 1787 of yacc.c */ |
| 1697 | 1665 | #line 211 "dtc-parser.y" |
| 1698 | 1666 | { |
| 1699 | 1667 | (yyval.data) = data_merge((yyvsp[(1) - (2)].data), (yyvsp[(2) - (2)].data)); |
| @@ -1701,8 +1669,7 @@ yyreduce: · 1 unmodified line |
| 1701 | 1669 | break; |
| 1702 | 1670 | |
| 1703 | 1671 | case 19: |
| 1704 | | − |
| 1705 | | −/* Line 1806 of yacc.c */ |
| 1672 | +/* Line 1787 of yacc.c */ |
| 1706 | 1673 | #line 215 "dtc-parser.y" |
| 1707 | 1674 | { |
| 1708 | 1675 | (yyval.data) = data_merge((yyvsp[(1) - (3)].data), (yyvsp[(2) - (3)].array).data); |
| @@ -1710,8 +1677,7 @@ yyreduce: · 1 unmodified line |
| 1710 | 1677 | break; |
| 1711 | 1678 | |
| 1712 | 1679 | case 20: |
| 1713 | | − |
| 1714 | | −/* Line 1806 of yacc.c */ |
| 1680 | +/* Line 1787 of yacc.c */ |
| 1715 | 1681 | #line 219 "dtc-parser.y" |
| 1716 | 1682 | { |
| 1717 | 1683 | (yyval.data) = data_merge((yyvsp[(1) - (4)].data), (yyvsp[(3) - (4)].data)); |
| @@ -1719,8 +1685,7 @@ yyreduce: · 1 unmodified line |
| 1719 | 1685 | break; |
| 1720 | 1686 | |
| 1721 | 1687 | case 21: |
| 1722 | | − |
| 1723 | | −/* Line 1806 of yacc.c */ |
| 1688 | +/* Line 1787 of yacc.c */ |
| 1724 | 1689 | #line 223 "dtc-parser.y" |
| 1725 | 1690 | { |
| 1726 | 1691 | (yyval.data) = data_add_marker((yyvsp[(1) - (2)].data), REF_PATH, (yyvsp[(2) - (2)].labelref)); |
| @@ -1728,8 +1693,7 @@ yyreduce: · 1 unmodified line |
| 1728 | 1693 | break; |
| 1729 | 1694 | |
| 1730 | 1695 | case 22: |
| 1731 | | − |
| 1732 | | −/* Line 1806 of yacc.c */ |
| 1696 | +/* Line 1787 of yacc.c */ |
| 1733 | 1697 | #line 227 "dtc-parser.y" |
| 1734 | 1698 | { |
| 1735 | 1699 | FILE *f = srcfile_relative_open((yyvsp[(4) - (9)].data).val, NULL); |
| @@ -1750,8 +1714,7 @@ yyreduce: · 14 unmodified lines |
| 1750 | 1714 | break; |
| 1751 | 1715 | |
| 1752 | 1716 | case 23: |
| 1753 | | − |
| 1754 | | −/* Line 1806 of yacc.c */ |
| 1717 | +/* Line 1787 of yacc.c */ |
| 1755 | 1718 | #line 244 "dtc-parser.y" |
| 1756 | 1719 | { |
| 1757 | 1720 | FILE *f = srcfile_relative_open((yyvsp[(4) - (5)].data).val, NULL); |
| @@ -1765,8 +1728,7 @@ yyreduce: · 7 unmodified lines |
| 1765 | 1728 | break; |
| 1766 | 1729 | |
| 1767 | 1730 | case 24: |
| 1768 | | − |
| 1769 | | −/* Line 1806 of yacc.c */ |
| 1731 | +/* Line 1787 of yacc.c */ |
| 1770 | 1732 | #line 254 "dtc-parser.y" |
| 1771 | 1733 | { |
| 1772 | 1734 | (yyval.data) = data_add_marker((yyvsp[(1) - (2)].data), LABEL, (yyvsp[(2) - (2)].labelref)); |
| @@ -1774,8 +1736,7 @@ yyreduce: · 1 unmodified line |
| 1774 | 1736 | break; |
| 1775 | 1737 | |
| 1776 | 1738 | case 25: |
| 1777 | | − |
| 1778 | | −/* Line 1806 of yacc.c */ |
| 1739 | +/* Line 1787 of yacc.c */ |
| 1779 | 1740 | #line 261 "dtc-parser.y" |
| 1780 | 1741 | { |
| 1781 | 1742 | (yyval.data) = empty_data; |
| @@ -1783,8 +1744,7 @@ yyreduce: · 1 unmodified line |
| 1783 | 1744 | break; |
| 1784 | 1745 | |
| 1785 | 1746 | case 26: |
| 1786 | | − |
| 1787 | | −/* Line 1806 of yacc.c */ |
| 1747 | +/* Line 1787 of yacc.c */ |
| 1788 | 1748 | #line 265 "dtc-parser.y" |
| 1789 | 1749 | { |
| 1790 | 1750 | (yyval.data) = (yyvsp[(1) - (2)].data); |
| @@ -1792,8 +1752,7 @@ yyreduce: · 1 unmodified line |
| 1792 | 1752 | break; |
| 1793 | 1753 | |
| 1794 | 1754 | case 27: |
| 1795 | | − |
| 1796 | | −/* Line 1806 of yacc.c */ |
| 1755 | +/* Line 1787 of yacc.c */ |
| 1797 | 1756 | #line 269 "dtc-parser.y" |
| 1798 | 1757 | { |
| 1799 | 1758 | (yyval.data) = data_add_marker((yyvsp[(1) - (2)].data), LABEL, (yyvsp[(2) - (2)].labelref)); |
| @@ -1801,8 +1760,7 @@ yyreduce: · 1 unmodified line |
| 1801 | 1760 | break; |
| 1802 | 1761 | |
| 1803 | 1762 | case 28: |
| 1804 | | − |
| 1805 | | −/* Line 1806 of yacc.c */ |
| 1763 | +/* Line 1787 of yacc.c */ |
| 1806 | 1764 | #line 276 "dtc-parser.y" |
| 1807 | 1765 | { |
| 1808 | 1766 | (yyval.array).data = empty_data; |
| @@ -1821,8 +1779,7 @@ yyreduce: · 12 unmodified lines |
| 1821 | 1779 | break; |
| 1822 | 1780 | |
| 1823 | 1781 | case 29: |
| 1824 | | − |
| 1825 | | −/* Line 1806 of yacc.c */ |
| 1782 | +/* Line 1787 of yacc.c */ |
| 1826 | 1783 | #line 291 "dtc-parser.y" |
| 1827 | 1784 | { |
| 1828 | 1785 | (yyval.array).data = empty_data; |
| @@ -1831,8 +1788,7 @@ yyreduce: · 2 unmodified lines |
| 1831 | 1788 | break; |
| 1832 | 1789 | |
| 1833 | 1790 | case 30: |
| 1834 | | − |
| 1835 | | −/* Line 1806 of yacc.c */ |
| 1791 | +/* Line 1787 of yacc.c */ |
| 1836 | 1792 | #line 296 "dtc-parser.y" |
| 1837 | 1793 | { |
| 1838 | 1794 | if ((yyvsp[(1) - (2)].array).bits < 64) { |
| @@ -1856,8 +1812,7 @@ yyreduce: · 17 unmodified lines |
| 1856 | 1812 | break; |
| 1857 | 1813 | |
| 1858 | 1814 | case 31: |
| 1859 | | − |
| 1860 | | −/* Line 1806 of yacc.c */ |
| 1815 | +/* Line 1787 of yacc.c */ |
| 1861 | 1816 | #line 316 "dtc-parser.y" |
| 1862 | 1817 | { |
| 1863 | 1818 | uint64_t val = ~0ULL >> (64 - (yyvsp[(1) - (2)].array).bits); |
| @@ -1875,8 +1830,7 @@ yyreduce: · 11 unmodified lines |
| 1875 | 1830 | break; |
| 1876 | 1831 | |
| 1877 | 1832 | case 32: |
| 1878 | | − |
| 1879 | | −/* Line 1806 of yacc.c */ |
| 1833 | +/* Line 1787 of yacc.c */ |
| 1880 | 1834 | #line 330 "dtc-parser.y" |
| 1881 | 1835 | { |
| 1882 | 1836 | (yyval.array).data = data_add_marker((yyvsp[(1) - (2)].array).data, LABEL, (yyvsp[(2) - (2)].labelref)); |
| @@ -1884,8 +1838,7 @@ yyreduce: · 1 unmodified line |
| 1884 | 1838 | break; |
| 1885 | 1839 | |
| 1886 | 1840 | case 33: |
| 1887 | | − |
| 1888 | | −/* Line 1806 of yacc.c */ |
| 1841 | +/* Line 1787 of yacc.c */ |
| 1889 | 1842 | #line 337 "dtc-parser.y" |
| 1890 | 1843 | { |
| 1891 | 1844 | (yyval.integer) = eval_literal((yyvsp[(1) - (1)].literal), 0, 64); |
| @@ -1893,8 +1846,7 @@ yyreduce: · 1 unmodified line |
| 1893 | 1846 | break; |
| 1894 | 1847 | |
| 1895 | 1848 | case 34: |
| 1896 | | − |
| 1897 | | −/* Line 1806 of yacc.c */ |
| 1849 | +/* Line 1787 of yacc.c */ |
| 1898 | 1850 | #line 341 "dtc-parser.y" |
| 1899 | 1851 | { |
| 1900 | 1852 | (yyval.integer) = eval_char_literal((yyvsp[(1) - (1)].literal)); |
| @@ -1902,8 +1854,7 @@ yyreduce: · 1 unmodified line |
| 1902 | 1854 | break; |
| 1903 | 1855 | |
| 1904 | 1856 | case 35: |
| 1905 | | − |
| 1906 | | −/* Line 1806 of yacc.c */ |
| 1857 | +/* Line 1787 of yacc.c */ |
| 1907 | 1858 | #line 345 "dtc-parser.y" |
| 1908 | 1859 | { |
| 1909 | 1860 | (yyval.integer) = (yyvsp[(2) - (3)].integer); |
| @@ -1911,162 +1862,139 @@ yyreduce: · 1 unmodified line |
| 1911 | 1862 | break; |
| 1912 | 1863 | |
| 1913 | 1864 | case 38: |
| 1914 | | − |
| 1915 | | −/* Line 1806 of yacc.c */ |
| 1865 | +/* Line 1787 of yacc.c */ |
| 1916 | 1866 | #line 356 "dtc-parser.y" |
| 1917 | 1867 | { (yyval.integer) = (yyvsp[(1) - (5)].integer) ? (yyvsp[(3) - (5)].integer) : (yyvsp[(5) - (5)].integer); } |
| 1918 | 1868 | break; |
| 1919 | 1869 | |
| 1920 | 1870 | case 40: |
| 1921 | | − |
| 1922 | | −/* Line 1806 of yacc.c */ |
| 1871 | +/* Line 1787 of yacc.c */ |
| 1923 | 1872 | #line 361 "dtc-parser.y" |
| 1924 | 1873 | { (yyval.integer) = (yyvsp[(1) - (3)].integer) || (yyvsp[(3) - (3)].integer); } |
| 1925 | 1874 | break; |
| 1926 | 1875 | |
| 1927 | 1876 | case 42: |
| 1928 | | − |
| 1929 | | −/* Line 1806 of yacc.c */ |
| 1877 | +/* Line 1787 of yacc.c */ |
| 1930 | 1878 | #line 366 "dtc-parser.y" |
| 1931 | 1879 | { (yyval.integer) = (yyvsp[(1) - (3)].integer) && (yyvsp[(3) - (3)].integer); } |
| 1932 | 1880 | break; |
| 1933 | 1881 | |
| 1934 | 1882 | case 44: |
| 1935 | | − |
| 1936 | | −/* Line 1806 of yacc.c */ |
| 1883 | +/* Line 1787 of yacc.c */ |
| 1937 | 1884 | #line 371 "dtc-parser.y" |
| 1938 | 1885 | { (yyval.integer) = (yyvsp[(1) - (3)].integer) | (yyvsp[(3) - (3)].integer); } |
| 1939 | 1886 | break; |
| 1940 | 1887 | |
| 1941 | 1888 | case 46: |
| 1942 | | − |
| 1943 | | −/* Line 1806 of yacc.c */ |
| 1889 | +/* Line 1787 of yacc.c */ |
| 1944 | 1890 | #line 376 "dtc-parser.y" |
| 1945 | 1891 | { (yyval.integer) = (yyvsp[(1) - (3)].integer) ^ (yyvsp[(3) - (3)].integer); } |
| 1946 | 1892 | break; |
| 1947 | 1893 | |
| 1948 | 1894 | case 48: |
| 1949 | | − |
| 1950 | | −/* Line 1806 of yacc.c */ |
| 1895 | +/* Line 1787 of yacc.c */ |
| 1951 | 1896 | #line 381 "dtc-parser.y" |
| 1952 | 1897 | { (yyval.integer) = (yyvsp[(1) - (3)].integer) & (yyvsp[(3) - (3)].integer); } |
| 1953 | 1898 | break; |
| 1954 | 1899 | |
| 1955 | 1900 | case 50: |
| 1956 | | − |
| 1957 | | −/* Line 1806 of yacc.c */ |
| 1901 | +/* Line 1787 of yacc.c */ |
| 1958 | 1902 | #line 386 "dtc-parser.y" |
| 1959 | 1903 | { (yyval.integer) = (yyvsp[(1) - (3)].integer) == (yyvsp[(3) - (3)].integer); } |
| 1960 | 1904 | break; |
| 1961 | 1905 | |
| 1962 | 1906 | case 51: |
| 1963 | | − |
| 1964 | | −/* Line 1806 of yacc.c */ |
| 1907 | +/* Line 1787 of yacc.c */ |
| 1965 | 1908 | #line 387 "dtc-parser.y" |
| 1966 | 1909 | { (yyval.integer) = (yyvsp[(1) - (3)].integer) != (yyvsp[(3) - (3)].integer); } |
| 1967 | 1910 | break; |
| 1968 | 1911 | |
| 1969 | 1912 | case 53: |
| 1970 | | − |
| 1971 | | −/* Line 1806 of yacc.c */ |
| 1913 | +/* Line 1787 of yacc.c */ |
| 1972 | 1914 | #line 392 "dtc-parser.y" |
| 1973 | 1915 | { (yyval.integer) = (yyvsp[(1) - (3)].integer) < (yyvsp[(3) - (3)].integer); } |
| 1974 | 1916 | break; |
| 1975 | 1917 | |
| 1976 | 1918 | case 54: |
| 1977 | | − |
| 1978 | | −/* Line 1806 of yacc.c */ |
| 1919 | +/* Line 1787 of yacc.c */ |
| 1979 | 1920 | #line 393 "dtc-parser.y" |
| 1980 | 1921 | { (yyval.integer) = (yyvsp[(1) - (3)].integer) > (yyvsp[(3) - (3)].integer); } |
| 1981 | 1922 | break; |
| 1982 | 1923 | |
| 1983 | 1924 | case 55: |
| 1984 | | − |
| 1985 | | −/* Line 1806 of yacc.c */ |
| 1925 | +/* Line 1787 of yacc.c */ |
| 1986 | 1926 | #line 394 "dtc-parser.y" |
| 1987 | 1927 | { (yyval.integer) = (yyvsp[(1) - (3)].integer) <= (yyvsp[(3) - (3)].integer); } |
| 1988 | 1928 | break; |
| 1989 | 1929 | |
| 1990 | 1930 | case 56: |
| 1991 | | − |
| 1992 | | −/* Line 1806 of yacc.c */ |
| 1931 | +/* Line 1787 of yacc.c */ |
| 1993 | 1932 | #line 395 "dtc-parser.y" |
| 1994 | 1933 | { (yyval.integer) = (yyvsp[(1) - (3)].integer) >= (yyvsp[(3) - (3)].integer); } |
| 1995 | 1934 | break; |
| 1996 | 1935 | |
| 1997 | 1936 | case 57: |
| 1998 | | − |
| 1999 | | −/* Line 1806 of yacc.c */ |
| 1937 | +/* Line 1787 of yacc.c */ |
| 2000 | 1938 | #line 399 "dtc-parser.y" |
| 2001 | 1939 | { (yyval.integer) = (yyvsp[(1) - (3)].integer) << (yyvsp[(3) - (3)].integer); } |
| 2002 | 1940 | break; |
| 2003 | 1941 | |
| 2004 | 1942 | case 58: |
| 2005 | | − |
| 2006 | | −/* Line 1806 of yacc.c */ |
| 1943 | +/* Line 1787 of yacc.c */ |
| 2007 | 1944 | #line 400 "dtc-parser.y" |
| 2008 | 1945 | { (yyval.integer) = (yyvsp[(1) - (3)].integer) >> (yyvsp[(3) - (3)].integer); } |
| 2009 | 1946 | break; |
| 2010 | 1947 | |
| 2011 | 1948 | case 60: |
| 2012 | | − |
| 2013 | | −/* Line 1806 of yacc.c */ |
| 1949 | +/* Line 1787 of yacc.c */ |
| 2014 | 1950 | #line 405 "dtc-parser.y" |
| 2015 | 1951 | { (yyval.integer) = (yyvsp[(1) - (3)].integer) + (yyvsp[(3) - (3)].integer); } |
| 2016 | 1952 | break; |
| 2017 | 1953 | |
| 2018 | 1954 | case 61: |
| 2019 | | − |
| 2020 | | −/* Line 1806 of yacc.c */ |
| 1955 | +/* Line 1787 of yacc.c */ |
| 2021 | 1956 | #line 406 "dtc-parser.y" |
| 2022 | 1957 | { (yyval.integer) = (yyvsp[(1) - (3)].integer) - (yyvsp[(3) - (3)].integer); } |
| 2023 | 1958 | break; |
| 2024 | 1959 | |
| 2025 | 1960 | case 63: |
| 2026 | | − |
| 2027 | | −/* Line 1806 of yacc.c */ |
| 1961 | +/* Line 1787 of yacc.c */ |
| 2028 | 1962 | #line 411 "dtc-parser.y" |
| 2029 | 1963 | { (yyval.integer) = (yyvsp[(1) - (3)].integer) * (yyvsp[(3) - (3)].integer); } |
| 2030 | 1964 | break; |
| 2031 | 1965 | |
| 2032 | 1966 | case 64: |
| 2033 | | − |
| 2034 | | −/* Line 1806 of yacc.c */ |
| 1967 | +/* Line 1787 of yacc.c */ |
| 2035 | 1968 | #line 412 "dtc-parser.y" |
| 2036 | 1969 | { (yyval.integer) = (yyvsp[(1) - (3)].integer) / (yyvsp[(3) - (3)].integer); } |
| 2037 | 1970 | break; |
| 2038 | 1971 | |
| 2039 | 1972 | case 65: |
| 2040 | | − |
| 2041 | | −/* Line 1806 of yacc.c */ |
| 1973 | +/* Line 1787 of yacc.c */ |
| 2042 | 1974 | #line 413 "dtc-parser.y" |
| 2043 | 1975 | { (yyval.integer) = (yyvsp[(1) - (3)].integer) % (yyvsp[(3) - (3)].integer); } |
| 2044 | 1976 | break; |
| 2045 | 1977 | |
| 2046 | 1978 | case 68: |
| 2047 | | − |
| 2048 | | −/* Line 1806 of yacc.c */ |
| 1979 | +/* Line 1787 of yacc.c */ |
| 2049 | 1980 | #line 419 "dtc-parser.y" |
| 2050 | 1981 | { (yyval.integer) = -(yyvsp[(2) - (2)].integer); } |
| 2051 | 1982 | break; |
| 2052 | 1983 | |
| 2053 | 1984 | case 69: |
| 2054 | | − |
| 2055 | | −/* Line 1806 of yacc.c */ |
| 1985 | +/* Line 1787 of yacc.c */ |
| 2056 | 1986 | #line 420 "dtc-parser.y" |
| 2057 | 1987 | { (yyval.integer) = ~(yyvsp[(2) - (2)].integer); } |
| 2058 | 1988 | break; |
| 2059 | 1989 | |
| 2060 | 1990 | case 70: |
| 2061 | | − |
| 2062 | | −/* Line 1806 of yacc.c */ |
| 1991 | +/* Line 1787 of yacc.c */ |
| 2063 | 1992 | #line 421 "dtc-parser.y" |
| 2064 | 1993 | { (yyval.integer) = !(yyvsp[(2) - (2)].integer); } |
| 2065 | 1994 | break; |
| 2066 | 1995 | |
| 2067 | 1996 | case 71: |
| 2068 | | − |
| 2069 | | −/* Line 1806 of yacc.c */ |
| 1997 | +/* Line 1787 of yacc.c */ |
| 2070 | 1998 | #line 426 "dtc-parser.y" |
| 2071 | 1999 | { |
| 2072 | 2000 | (yyval.data) = empty_data; |
| @@ -2074,8 +2002,7 @@ yyreduce: · 1 unmodified line |
| 2074 | 2002 | break; |
| 2075 | 2003 | |
| 2076 | 2004 | case 72: |
| 2077 | | − |
| 2078 | | −/* Line 1806 of yacc.c */ |
| 2005 | +/* Line 1787 of yacc.c */ |
| 2079 | 2006 | #line 430 "dtc-parser.y" |
| 2080 | 2007 | { |
| 2081 | 2008 | (yyval.data) = data_append_byte((yyvsp[(1) - (2)].data), (yyvsp[(2) - (2)].byte)); |
| @@ -2083,8 +2010,7 @@ yyreduce: · 1 unmodified line |
| 2083 | 2010 | break; |
| 2084 | 2011 | |
| 2085 | 2012 | case 73: |
| 2086 | | − |
| 2087 | | −/* Line 1806 of yacc.c */ |
| 2013 | +/* Line 1787 of yacc.c */ |
| 2088 | 2014 | #line 434 "dtc-parser.y" |
| 2089 | 2015 | { |
| 2090 | 2016 | (yyval.data) = data_add_marker((yyvsp[(1) - (2)].data), LABEL, (yyvsp[(2) - (2)].labelref)); |
| @@ -2092,8 +2018,7 @@ yyreduce: · 1 unmodified line |
| 2092 | 2018 | break; |
| 2093 | 2019 | |
| 2094 | 2020 | case 74: |
| 2095 | | − |
| 2096 | | −/* Line 1806 of yacc.c */ |
| 2021 | +/* Line 1787 of yacc.c */ |
| 2097 | 2022 | #line 441 "dtc-parser.y" |
| 2098 | 2023 | { |
| 2099 | 2024 | (yyval.nodelist) = NULL; |
| @@ -2101,8 +2026,7 @@ yyreduce: · 1 unmodified line |
| 2101 | 2026 | break; |
| 2102 | 2027 | |
| 2103 | 2028 | case 75: |
| 2104 | | − |
| 2105 | | −/* Line 1806 of yacc.c */ |
| 2029 | +/* Line 1787 of yacc.c */ |
| 2106 | 2030 | #line 445 "dtc-parser.y" |
| 2107 | 2031 | { |
| 2108 | 2032 | (yyval.nodelist) = chain_node((yyvsp[(1) - (2)].node), (yyvsp[(2) - (2)].nodelist)); |
| @@ -2110,8 +2034,7 @@ yyreduce: · 1 unmodified line |
| 2110 | 2034 | break; |
| 2111 | 2035 | |
| 2112 | 2036 | case 76: |
| 2113 | | − |
| 2114 | | −/* Line 1806 of yacc.c */ |
| 2037 | +/* Line 1787 of yacc.c */ |
| 2115 | 2038 | #line 449 "dtc-parser.y" |
| 2116 | 2039 | { |
| 2117 | 2040 | print_error("syntax error: properties must precede subnodes"); |
| @@ -2120,8 +2043,7 @@ yyreduce: · 2 unmodified lines |
| 2120 | 2043 | break; |
| 2121 | 2044 | |
| 2122 | 2045 | case 77: |
| 2123 | | − |
| 2124 | | −/* Line 1806 of yacc.c */ |
| 2046 | +/* Line 1787 of yacc.c */ |
| 2125 | 2047 | #line 457 "dtc-parser.y" |
| 2126 | 2048 | { |
| 2127 | 2049 | (yyval.node) = name_node((yyvsp[(2) - (2)].node), (yyvsp[(1) - (2)].propnodename)); |
| @@ -2129,8 +2051,7 @@ yyreduce: · 1 unmodified line |
| 2129 | 2051 | break; |
| 2130 | 2052 | |
| 2131 | 2053 | case 78: |
| 2132 | | − |
| 2133 | | −/* Line 1806 of yacc.c */ |
| 2054 | +/* Line 1787 of yacc.c */ |
| 2134 | 2055 | #line 461 "dtc-parser.y" |
| 2135 | 2056 | { |
| 2136 | 2057 | (yyval.node) = name_node(build_node_delete(), (yyvsp[(2) - (3)].propnodename)); |
| @@ -2138,8 +2059,7 @@ yyreduce: · 1 unmodified line |
| 2138 | 2059 | break; |
| 2139 | 2060 | |
| 2140 | 2061 | case 79: |
| 2141 | | − |
| 2142 | | −/* Line 1806 of yacc.c */ |
| 2062 | +/* Line 1787 of yacc.c */ |
| 2143 | 2063 | #line 465 "dtc-parser.y" |
| 2144 | 2064 | { |
| 2145 | 2065 | add_label(&(yyvsp[(2) - (2)].node)->labels, (yyvsp[(1) - (2)].labelref)); |
| @@ -2148,9 +2068,8 @@ yyreduce: · 2 unmodified lines |
| 2148 | 2068 | break; |
| 2149 | 2069 | |
| 2150 | 2070 | |
| 2151 | | − |
| 2152 | | −/* Line 1806 of yacc.c */ |
| 2153 | | −#line 2154 "dtc-parser.tab.c" |
| 2071 | +/* Line 1787 of yacc.c */ |
| 2072 | +#line 2073 "dtc-parser.tab.c" |
| 2154 | 2073 | default: break; |
| 2155 | 2074 | } |
| 2156 | 2075 | /* User semantic actions sometimes alter yychar, and that requires |
| @@ -2313,7 +2232,9 @@ yyerrlab1: · 156 unmodified lines |
| 2313 | 2232 | YY_STACK_PRINT (yyss, yyssp); |
| 2314 | 2233 | } |
| 2315 | 2234 | |
| 2235 | + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| 2316 | 2236 | *++yyvsp = yylval; |
| 2237 | + YY_IGNORE_MAYBE_UNINITIALIZED_END |
| 2317 | 2238 | |
| 2318 | 2239 | |
| 2319 | 2240 | /* Shift the error token. */ |
| @@ -2337,7 +2258,7 @@ yyabortlab: · 17 unmodified lines |
| 2337 | 2258 | yyresult = 1; |
| 2338 | 2259 | goto yyreturn; |
| 2339 | 2260 | |
| 2340 | | −#if !defined(yyoverflow) || YYERROR_VERBOSE |
| 2261 | +#if !defined yyoverflow || YYERROR_VERBOSE |
| 2341 | 2262 | /*-------------------------------------------------. |
| 2342 | 2263 | | yyexhaustedlab -- memory exhaustion comes here. | |
| 2343 | 2264 | `-------------------------------------------------*/ |
| @@ -2379,8 +2300,7 @@ yyreturn: · 35 unmodified lines |
| 2379 | 2300 | } |
| 2380 | 2301 | |
| 2381 | 2302 | |
| 2382 | | − |
| 2383 | | −/* Line 2067 of yacc.c */ |
| 2303 | +/* Line 2050 of yacc.c */ |
| 2384 | 2304 | #line 471 "dtc-parser.y" |
| 2385 | 2305 | |
| 2386 | 2306 | |
| @@ -2444,4 +2364,3 @@ static unsigned char eval_char_literal(const char *s) · 57 unmodified lines |
| 2444 | 2364 | |
| 2445 | 2365 | return c; |
| 2446 | 2366 | } |
| 2447 | | − |