Rev 5199 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5199 | Rev 6324 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | /* A Bison parser, made by GNU Bison 2.3. */ |
1 | /* A Bison parser, made by GNU Bison 3.0. */ |
Line 2... | Line 2... | ||
2 | 2 | ||
Line 3... | Line 3... | ||
3 | /* Skeleton interface for Bison's Yacc-like parsers in C |
3 | /* Bison interface for Yacc-like parsers in C |
4 | - | ||
Line 5... | Line 4... | ||
5 | Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 |
4 | |
6 | Free Software Foundation, Inc. |
5 | Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc. |
7 | 6 | ||
8 | This program is free software; you can redistribute it and/or modify |
7 | This program is free software: you can redistribute it and/or modify |
Line 9... | Line 8... | ||
9 | it under the terms of the GNU General Public License as published by |
8 | it under the terms of the GNU General Public License as published by |
10 | the Free Software Foundation; either version 2, or (at your option) |
9 | the Free Software Foundation, either version 3 of the License, or |
11 | any later version. |
10 | (at your option) any later version. |
12 | 11 | ||
Line 13... | Line 12... | ||
13 | This program is distributed in the hope that it will be useful, |
12 | This program is distributed in the hope that it will be useful, |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
- | |
16 | GNU General Public License for more details. |
- | |
Line 17... | Line 14... | ||
17 | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 | You should have received a copy of the GNU General Public License |
15 | GNU General Public License for more details. |
19 | along with this program; if not, write to the Free Software |
16 | |
20 | Foundation, Inc., 51 Franklin Street, Fifth Floor, |
17 | You should have received a copy of the GNU General Public License |
Line 31... | Line 28... | ||
31 | License without this special exception. |
28 | License without this special exception. |
Line 32... | Line 29... | ||
32 | 29 | ||
33 | This special exception was added by the Free Software Foundation in |
30 | This special exception was added by the Free Software Foundation in |
Line -... | Line 31... | ||
- | 31 | version 2.2 of Bison. */ |
|
- | 32 | ||
- | 33 | #ifndef YY_YY_LDGRAM_H_INCLUDED |
|
- | 34 | # define YY_YY_LDGRAM_H_INCLUDED |
|
- | 35 | /* Debug traces. */ |
|
- | 36 | #ifndef YYDEBUG |
|
- | 37 | # define YYDEBUG 0 |
|
- | 38 | #endif |
|
- | 39 | #if YYDEBUG |
|
- | 40 | extern int yydebug; |
|
34 | version 2.2 of Bison. */ |
41 | #endif |
35 | 42 | ||
36 | /* Tokens. */ |
43 | /* Token type. */ |
37 | #ifndef YYTOKENTYPE |
- | |
38 | # define YYTOKENTYPE |
- | |
39 | /* Put the tokens into the symbol table, so that GDB and other debuggers |
44 | #ifndef YYTOKENTYPE |
- | 45 | # define YYTOKENTYPE |
|
40 | know about them. */ |
46 | enum yytokentype |
41 | enum yytokentype { |
47 | { |
42 | INT = 258, |
48 | INT = 258, |
43 | NAME = 259, |
49 | NAME = 259, |
44 | LNAME = 260, |
50 | LNAME = 260, |
45 | OREQ = 261, |
51 | PLUSEQ = 261, |
46 | ANDEQ = 262, |
52 | MINUSEQ = 262, |
47 | RSHIFTEQ = 263, |
53 | MULTEQ = 263, |
48 | LSHIFTEQ = 264, |
54 | DIVEQ = 264, |
49 | DIVEQ = 265, |
55 | LSHIFTEQ = 265, |
50 | MULTEQ = 266, |
56 | RSHIFTEQ = 266, |
51 | MINUSEQ = 267, |
57 | ANDEQ = 267, |
52 | PLUSEQ = 268, |
58 | OREQ = 268, |
53 | OROR = 269, |
59 | OROR = 269, |
54 | ANDAND = 270, |
60 | ANDAND = 270, |
55 | NE = 271, |
61 | EQ = 271, |
56 | EQ = 272, |
62 | NE = 272, |
57 | GE = 273, |
63 | LE = 273, |
58 | LE = 274, |
64 | GE = 274, |
59 | RSHIFT = 275, |
65 | LSHIFT = 275, |
60 | LSHIFT = 276, |
66 | RSHIFT = 276, |
61 | UNARY = 277, |
67 | UNARY = 277, |
62 | END = 278, |
68 | END = 278, |
63 | ALIGN_K = 279, |
69 | ALIGN_K = 279, |
Line 171... | Line 177... | ||
171 | #endif |
177 | #endif |
172 | /* Tokens. */ |
178 | /* Tokens. */ |
173 | #define INT 258 |
179 | #define INT 258 |
174 | #define NAME 259 |
180 | #define NAME 259 |
175 | #define LNAME 260 |
181 | #define LNAME 260 |
176 | #define OREQ 261 |
182 | #define PLUSEQ 261 |
177 | #define ANDEQ 262 |
183 | #define MINUSEQ 262 |
178 | #define RSHIFTEQ 263 |
184 | #define MULTEQ 263 |
179 | #define LSHIFTEQ 264 |
185 | #define DIVEQ 264 |
180 | #define DIVEQ 265 |
186 | #define LSHIFTEQ 265 |
181 | #define MULTEQ 266 |
187 | #define RSHIFTEQ 266 |
182 | #define MINUSEQ 267 |
188 | #define ANDEQ 267 |
183 | #define PLUSEQ 268 |
189 | #define OREQ 268 |
184 | #define OROR 269 |
190 | #define OROR 269 |
185 | #define ANDAND 270 |
191 | #define ANDAND 270 |
186 | #define NE 271 |
192 | #define EQ 271 |
187 | #define EQ 272 |
193 | #define NE 272 |
188 | #define GE 273 |
194 | #define LE 273 |
189 | #define LE 274 |
195 | #define GE 274 |
190 | #define RSHIFT 275 |
196 | #define LSHIFT 275 |
191 | #define LSHIFT 276 |
197 | #define RSHIFT 276 |
192 | #define UNARY 277 |
198 | #define UNARY 277 |
193 | #define END 278 |
199 | #define END 278 |
194 | #define ALIGN_K 279 |
200 | #define ALIGN_K 279 |
195 | #define BLOCK 280 |
201 | #define BLOCK 280 |
196 | #define BIND 281 |
202 | #define BIND 281 |
Line 297... | Line 303... | ||
297 | #define ALIGN_WITH_INPUT 382 |
303 | #define ALIGN_WITH_INPUT 382 |
298 | #define EXCLUDE_FILE 383 |
304 | #define EXCLUDE_FILE 383 |
299 | #define CONSTANT 384 |
305 | #define CONSTANT 384 |
300 | #define INPUT_DYNAMIC_LIST 385 |
306 | #define INPUT_DYNAMIC_LIST 385 |
Line 301... | Line -... | ||
301 | - | ||
302 | - | ||
303 | - | ||
- | 307 | ||
304 | 308 | /* Value type. */ |
|
305 | #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
309 | #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
306 | typedef union YYSTYPE |
310 | typedef union YYSTYPE YYSTYPE; |
307 | #line 60 "ldgram.y" |
311 | union YYSTYPE |
- | 312 | { |
|
- | 313 | #line 60 "ldgram.y" /* yacc.c:1915 */ |
|
308 | { |
314 | |
309 | bfd_vma integer; |
315 | bfd_vma integer; |
310 | struct big_int |
316 | struct big_int |
311 | { |
317 | { |
312 | bfd_vma integer; |
318 | bfd_vma integer; |
Line 332... | Line 338... | ||
332 | struct lang_nocrossref *nocrossref; |
338 | struct lang_nocrossref *nocrossref; |
333 | struct lang_output_section_phdr_list *section_phdr; |
339 | struct lang_output_section_phdr_list *section_phdr; |
334 | struct bfd_elf_version_deps *deflist; |
340 | struct bfd_elf_version_deps *deflist; |
335 | struct bfd_elf_version_expr *versyms; |
341 | struct bfd_elf_version_expr *versyms; |
336 | struct bfd_elf_version_tree *versnode; |
342 | struct bfd_elf_version_tree *versnode; |
337 | } |
343 | |
338 | /* Line 1529 of yacc.c. */ |
- | |
339 | #line 340 "ldgram.h" |
344 | #line 345 "ldgram.h" /* yacc.c:1915 */ |
340 | YYSTYPE; |
345 | }; |
341 | # define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
- | |
342 | # define YYSTYPE_IS_DECLARED 1 |
- | |
343 | # define YYSTYPE_IS_TRIVIAL 1 |
346 | # define YYSTYPE_IS_TRIVIAL 1 |
- | 347 | # define YYSTYPE_IS_DECLARED 1 |
|
344 | #endif |
348 | #endif |
Line -... | Line 349... | ||
- | 349 | ||
345 | 350 | ||
Line -... | Line 351... | ||
- | 351 | extern YYSTYPE yylval; |
|
- | 352 | ||
- | 353 | int yyparse (void); |