Article View: gnu.gcc.help
Article #52154Help needed with gcc-2.3.3 om Motorola system.
From: Eigil Krogh Sorensen
Date: Thu, 28 Jan 1993 21:30
Date: Thu, 28 Jan 1993 21:30
1626 lines
66375 bytes
66375 bytes
Are you able to help with the following problem.
SYSTEM
Motorola sysV68 R3 V5.1 (mvme147/68030 based)
PROGRAM
gcc-2.3.3 (C++)
PROBLEM
gcc-2.3.3 error while compiling the enclosed program e1.ii. The
problem comes with anonymous unions.
To make it possible to compare the same program (e1.ii) was
compiled with gcc-2.3.3 on both Motorola sysV68 R3 V5.1
(mvme147/68030 based) and a sun4c sparc with option -dy. The
compilations were done with the following commands:
sun4c
-----
gcctest -v -dy -S -o e1.x e1.ii 2>&sun-dy-outp
Motorola
--------
gcctest -v -dy -S -o e1.x e1.ii > m3300-dy-outp 2>&1
The output of both these compilations are enclosed to. (File
m3300-dy-outp for the Motorola and sun-dy-outp for the sun).
Also enclosed is a diff between the output from the Motorola and
the sun.
As it can be seen the parser outputs are excately the same except
that the motorola ends up with errors which the sun does not.
(The errors from the gcc-2.3.3 on the Motorola are:
e1.ii: In method `errarg::errarg (const char *)':
e1.ii:14: class `errarg' does not have any field named `s' )
How can I trace where the error in the Motorola gcc-2.3.3 is ?
Which of the gcc source files should I look into. Which gcc
part writes out the error message.
Any suggestions are wellcome.
-- Eigil Krogh Sorensen.
--------------------------------------------------------------------
e1.ii (the file compiled)
-------------------------
class errarg {
enum { EMPTY, STRING, CHAR, INTEGER, DOUBLE } type;
union {
const char *s;
int n;
char c;
double d;
};
public:
errarg(const char *);
};
errarg::errarg(const char *p) : s(p ? p : "(null)"), type(STRING)
{
}
-------------------------------------------------------------------
Diff between output from the motorola gcc-2.3.3 and the sun4c gcc-
2.3.3.
---------------------------------------------------------------------
diff m3300-dy-outp sun-dy-outp
1c1
< Reading specs from /usr/gnu/lib/gcc-lib/3300/2.3.3/specs
---
> Reading specs from /a/home/austin/eks/mycmds/lib/gcc-lib/sparc-sun-sunos4.1.1/2.3.3/specs
3,4c3,4
< /usr/gnu/lib/gcc-lib/3300/2.3.3/cc1plus e1.ii -quiet -dy -version -o e1.x
< GNU C++ version 2.3.3 (68k, SGS/AT&T sysV68 syntax) compiled by GNU C version 2.3.3.
---
> /a/home/austin/eks/mycmds/lib/gcc-lib/sparc-sun-sunos4.1.1/2.3.3/cc1plus e1.ii -quiet -dy -version -o e1.x
> GNU C++ version 2.3.3 (sparc) compiled by GNU C version 2.3.3.
687,688d686
< e1.ii: In method `errarg::errarg (const char *)':
< e1.ii:14: class `errarg' does not have any field named `s'
------------------------------------------------------------------
Output from the Motorola gcc-2.3.3 (m3300-dy-outp)
--------------------------------------------------
Reading specs from /usr/gnu/lib/gcc-lib/3300/2.3.3/specs
gcc version 2.3.3
/usr/gnu/lib/gcc-lib/3300/2.3.3/cc1plus e1.ii -quiet -dy -version -o e1.x
GNU C++ version 2.3.3 (68k, SGS/AT&T sysV68 syntax) compiled by GNU C version 2.3.3.
Starting parse
Entering state 0
Reading a token: Next token is 289 (AGGR `class')
Reducing via rule 3 (line 287), -> @1
state stack now 0
Entering state 2
Next token is 289 (AGGR `class')
Shifting token 289 (AGGR), Entering state 13
Reducing via rule 332 (line 2055), AGGR -> aggr
state stack now 0 2
Entering state 43
Reading a token: Next token is 337 (IDENTIFIER_DEFN `errarg')
Shifting token 337 (IDENTIFIER_DEFN), Entering state 183
Reducing via rule 106 (line 779), IDENTIFIER_DEFN -> identifier_defn
state stack now 0 2 43
Entering state 186
Reducing via rule 344 (line 2091), aggr identifier_defn -> named_class_head_sans_basetype_defn
state stack now 0 2
Entering state 45
Reducing via rule 347 (line 2108), -> @17
state stack now 0 2 45
Entering state 189
Reading a token: Next token is 123 ('{')
Reducing via rule 352 (line 2129), -> maybe_base_class_list
state stack now 0 2 45 189
Entering state 347
Reducing via rule 348 (line 2113), named_class_head_sans_basetype_defn @17 maybe_base_class_list -> named_class_head
state stack now 0 2
Entering state 46
Reducing via rule 351 (line 2127), named_class_head -> class_head
state stack now 0 2
Entering state 48
Next token is 123 ('{')
Shifting token 123 ('{'), Entering state 190
Reducing via rule 368 (line 2230), '{' -> left_curly
state stack now 0 2 48
Entering state 191
Reading a token: Next token is 268 (ENUM)
Shifting token 268 (ENUM), Entering state 10
Reading a token: Next token is 123 ('{')
Shifting token 123 ('{'), Entering state 63
Reading a token: Next token is 258 (IDENTIFIER `EMPTY')
Reducing via rule 322 (line 1959), -> @15
state stack now 0 2 48 191 10 63
Entering state 251
Next token is 258 (IDENTIFIER `EMPTY')
Shifting token 258 (IDENTIFIER), Entering state 61
Reducing via rule 103 (line 773), IDENTIFIER -> identifier
state stack now 0 2 48 191 10 63 251
Entering state 469
Reading a token: Next token is 44 (',')
Reducing via rule 410 (line 2462), identifier -> enumerator
state stack now 0 2 48 191 10 63 251
Entering state 471
Reducing via rule 408 (line 2456), enumerator -> enumlist
state stack now 0 2 48 191 10 63 251
Entering state 470
Next token is 44 (',')
Shifting token 44 (','), Entering state 677
Reading a token: Next token is 258 (IDENTIFIER `STRING')
Shifting token 258 (IDENTIFIER), Entering state 61
Reducing via rule 103 (line 773), IDENTIFIER -> identifier
state stack now 0 2 48 191 10 63 251 470 677
Entering state 469
Reading a token: Next token is 44 (',')
Reducing via rule 410 (line 2462), identifier -> enumerator
state stack now 0 2 48 191 10 63 251 470 677
Entering state 834
Reducing via rule 409 (line 2458), enumlist ',' enumerator -> enumlist
state stack now 0 2 48 191 10 63 251
Entering state 470
Next token is 44 (',')
Shifting token 44 (','), Entering state 677
Reading a token: Next token is 258 (IDENTIFIER `CHAR')
Shifting token 258 (IDENTIFIER), Entering state 61
Reducing via rule 103 (line 773), IDENTIFIER -> identifier
state stack now 0 2 48 191 10 63 251 470 677
Entering state 469
Reading a token: Next token is 44 (',')
Reducing via rule 410 (line 2462), identifier -> enumerator
state stack now 0 2 48 191 10 63 251 470 677
Entering state 834
Reducing via rule 409 (line 2458), enumlist ',' enumerator -> enumlist
state stack now 0 2 48 191 10 63 251
Entering state 470
Next token is 44 (',')
Shifting token 44 (','), Entering state 677
Reading a token: Next token is 258 (IDENTIFIER `INTEGER')
Shifting token 258 (IDENTIFIER), Entering state 61
Reducing via rule 103 (line 773), IDENTIFIER -> identifier
state stack now 0 2 48 191 10 63 251 470 677
Entering state 469
Reading a token: Next token is 44 (',')
Reducing via rule 410 (line 2462), identifier -> enumerator
state stack now 0 2 48 191 10 63 251 470 677
Entering state 834
Reducing via rule 409 (line 2458), enumlist ',' enumerator -> enumlist
state stack now 0 2 48 191 10 63 251
Entering state 470
Next token is 44 (',')
Shifting token 44 (','), Entering state 677
Reading a token: Next token is 258 (IDENTIFIER `DOUBLE')
Shifting token 258 (IDENTIFIER), Entering state 61
Reducing via rule 103 (line 773), IDENTIFIER -> identifier
state stack now 0 2 48 191 10 63 251 470 677
Entering state 469
Reading a token: Next token is 125 ('}')
Reducing via rule 410 (line 2462), identifier -> enumerator
state stack now 0 2 48 191 10 63 251 470 677
Entering state 834
Reducing via rule 409 (line 2458), enumlist ',' enumerator -> enumlist
state stack now 0 2 48 191 10 63 251
Entering state 470
Next token is 125 ('}')
Reducing via rule 330 (line 2048), -> maybecomma_warn
state stack now 0 2 48 191 10 63 251 470
Entering state 678
Next token is 125 ('}')
Shifting token 125 ('}'), Entering state 835
Reducing via rule 323 (line 1962), ENUM '{' @15 enumlist maybecomma_warn '}' -> structsp
state stack now 0 2 48 191
Entering state 42
Reducing via rule 274 (line 1764), structsp -> typespec
state stack now 0 2 48 191
Entering state 39
Next token is 258 (IDENTIFIER `type')
Reducing via rule 256 (line 1685), typespec -> typed_declspecs
state stack now 0 2 48 191
Entering state 351
Next token is 258 (IDENTIFIER `type')
Shifting token 258 (IDENTIFIER), Entering state 570
Reading a token: Next token is 59 (';')
Reducing via rule 457 (line 2583), IDENTIFIER -> notype_declarator
state stack now 0 2 48 191 351
Entering state 155
Next token is 59 (';')
Reducing via rule 253 (line 1674), notype_declarator -> declarator
state stack now 0 2 48 191 351
Entering state 575
Next token is 59 (';')
Reducing via rule 638 (line 3725), -> maybe_raises
state stack now 0 2 48 191 351 575
Entering state 766
Next token is 59 (';')
Reducing via rule 288 (line 1796), -> maybeasm
state stack now 0 2 48 191 351 575 766
Entering state 921
Next token is 59 (';')
Reducing via rule 299 (line 1860), -> maybe_attribute
state stack now 0 2 48 191 351 575 766 921
Entering state 1041
Next token is 59 (';')
Reducing via rule 398 (line 2413), declarator maybe_raises maybeasm maybe_attribute -> component_declarator0
state stack now 0 2 48 191 351
Entering state 577
Reducing via rule 396 (line 2401), component_declarator0 -> components
state stack now 0 2 48 191 351
Entering state 576
Next token is 59 (';')
Shifting token 59 (';'), Entering state 768
Reducing via rule 376 (line 2277), typed_declspecs components ';' -> component_decl
state stack now 0 2 48 191
Entering state 355
Reducing via rule 373 (line 2266), component_decl -> component_decl_list
state stack now 0 2 48 191
Entering state 354
Reading a token: Next token is 289 (AGGR `union')
Shifting token 289 (AGGR), Entering state 13
Reducing via rule 332 (line 2055), AGGR -> aggr
state stack now 0 2 48 191 354
Entering state 43
Reading a token: Next token is 123 ('{')
Shifting token 123 ('{'), Entering state 180
Reducing via rule 349 (line 2122), aggr '{' -> unnamed_class_head
state stack now 0 2 48 191 354
Entering state 47
Reducing via rule 350 (line 2127), unnamed_class_head -> class_head
state stack now 0 2 48 191 354
Entering state 48
Reading a token: Next token is 123 ('{')
Shifting token 123 ('{'), Entering state 190
Reducing via rule 368 (line 2230), '{' -> left_curly
state stack now 0 2 48 191 354 48
Entering state 191
Reading a token: Next token is 263 (TYPE_QUAL)
Shifting token 263 (TYPE_QUAL), Entering state 9
Reducing via rule 264 (line 1718), TYPE_QUAL -> declmods
state stack now 0 2 48 191 354 48 191
Entering state 352
Reading a token: Next token is 262 (TYPESPEC `char')
Shifting token 262 (TYPESPEC), Entering state 8
Reducing via rule 275 (line 1765), TYPESPEC -> typespec
state stack now 0 2 48 191 354 48 191 352
Entering state 163
Reading a token: Next token is 42 ('*')
Reducing via rule 257 (line 1688), declmods typespec -> typed_declspecs
state stack now 0 2 48 191 354 48 191
Entering state 351
Next token is 42 ('*')
Shifting token 42 ('*'), Entering state 147
Reducing via rule 419 (line 2491), -> type_quals
state stack now 0 2 48 191 354 48 191 351 147
Entering state 318
Reading a token: Next token is 258 (IDENTIFIER `s')
Shifting token 258 (IDENTIFIER), Entering state 4
Reducing via rule 457 (line 2583), IDENTIFIER -> notype_declarator
state stack now 0 2 48 191 354 48 191 351 147 318
Entering state 281
Reading a token: Next token is 59 (';')
Reducing via rule 453 (line 2575), '*' type_quals notype_declarator -> notype_declarator
state stack now 0 2 48 191 354 48 191 351
Entering state 155
Next token is 59 (';')
Reducing via rule 253 (line 1674), notype_declarator -> declarator
state stack now 0 2 48 191 354 48 191 351
Entering state 575
Next token is 59 (';')
Reducing via rule 638 (line 3725), -> maybe_raises
state stack now 0 2 48 191 354 48 191 351 575
Entering state 766
Next token is 59 (';')
Reducing via rule 288 (line 1796), -> maybeasm
state stack now 0 2 48 191 354 48 191 351 575 766
Entering state 921
Next token is 59 (';')
Reducing via rule 299 (line 1860), -> maybe_attribute
state stack now 0 2 48 191 354 48 191 351 575 766 921
Entering state 1041
Next token is 59 (';')
Reducing via rule 398 (line 2413), declarator maybe_raises maybeasm maybe_attribute -> component_declarator0
state stack now 0 2 48 191 354 48 191 351
Entering state 577
Reducing via rule 396 (line 2401), component_declarator0 -> components
state stack now 0 2 48 191 354 48 191 351
Entering state 576
Next token is 59 (';')
Shifting token 59 (';'), Entering state 768
Reducing via rule 376 (line 2277), typed_declspecs components ';' -> component_decl
state stack now 0 2 48 191 354 48 191
Entering state 355
Reducing via rule 373 (line 2266), component_decl -> component_decl_list
state stack now 0 2 48 191 354 48 191
Entering state 354
Reading a token: Next token is 262 (TYPESPEC `int')
Shifting token 262 (TYPESPEC), Entering state 8
Reducing via rule 275 (line 1765), TYPESPEC -> typespec
state stack now 0 2 48 191 354 48 191 354
Entering state 39
Reading a token: Next token is 258 (IDENTIFIER `n')
Reducing via rule 256 (line 1685), typespec -> typed_declspecs
state stack now 0 2 48 191 354 48 191 354
Entering state 351
Next token is 258 (IDENTIFIER `n')
Shifting token 258 (IDENTIFIER), Entering state 570
Reading a token: Next token is 59 (';')
Reducing via rule 457 (line 2583), IDENTIFIER -> notype_declarator
state stack now 0 2 48 191 354 48 191 354 351
Entering state 155
Next token is 59 (';')
Reducing via rule 253 (line 1674), notype_declarator -> declarator
state stack now 0 2 48 191 354 48 191 354 351
Entering state 575
Next token is 59 (';')
Reducing via rule 638 (line 3725), -> maybe_raises
state stack now 0 2 48 191 354 48 191 354 351 575
Entering state 766
Next token is 59 (';')
Reducing via rule 288 (line 1796), -> maybeasm
state stack now 0 2 48 191 354 48 191 354 351 575 766
Entering state 921
Next token is 59 (';')
Reducing via rule 299 (line 1860), -> maybe_attribute
state stack now 0 2 48 191 354 48 191 354 351 575 766 921
Entering state 1041
Next token is 59 (';')
Reducing via rule 398 (line 2413), declarator maybe_raises maybeasm maybe_attribute -> component_declarator0
state stack now 0 2 48 191 354 48 191 354 351
Entering state 577
Reducing via rule 396 (line 2401), component_declarator0 -> components
state stack now 0 2 48 191 354 48 191 354 351
Entering state 576
Next token is 59 (';')
Shifting token 59 (';'), Entering state 768
Reducing via rule 376 (line 2277), typed_declspecs components ';' -> component_decl
state stack now 0 2 48 191 354 48 191 354
Entering state 585
Reducing via rule 374 (line 2269), component_decl_list component_decl -> component_decl_list
state stack now 0 2 48 191 354 48 191
Entering state 354
Reading a token: Next token is 262 (TYPESPEC `char')
Shifting token 262 (TYPESPEC), Entering state 8
Reducing via rule 275 (line 1765), TYPESPEC -> typespec
state stack now 0 2 48 191 354 48 191 354
Entering state 39
Reading a token: Next token is 258 (IDENTIFIER `c')
Reducing via rule 256 (line 1685), typespec -> typed_declspecs
state stack now 0 2 48 191 354 48 191 354
Entering state 351
Next token is 258 (IDENTIFIER `c')
Shifting token 258 (IDENTIFIER), Entering state 570
Reading a token: Next token is 59 (';')
Reducing via rule 457 (line 2583), IDENTIFIER -> notype_declarator
state stack now 0 2 48 191 354 48 191 354 351
Entering state 155
Next token is 59 (';')
Reducing via rule 253 (line 1674), notype_declarator -> declarator
state stack now 0 2 48 191 354 48 191 354 351
Entering state 575
Next token is 59 (';')
Reducing via rule 638 (line 3725), -> maybe_raises
state stack now 0 2 48 191 354 48 191 354 351 575
Entering state 766
Next token is 59 (';')
Reducing via rule 288 (line 1796), -> maybeasm
state stack now 0 2 48 191 354 48 191 354 351 575 766
Entering state 921
Next token is 59 (';')
Reducing via rule 299 (line 1860), -> maybe_attribute
state stack now 0 2 48 191 354 48 191 354 351 575 766 921
Entering state 1041
Next token is 59 (';')
Reducing via rule 398 (line 2413), declarator maybe_raises maybeasm maybe_attribute -> component_declarator0
state stack now 0 2 48 191 354 48 191 354 351
Entering state 577
Reducing via rule 396 (line 2401), component_declarator0 -> components
state stack now 0 2 48 191 354 48 191 354 351
Entering state 576
Next token is 59 (';')
Shifting token 59 (';'), Entering state 768
Reducing via rule 376 (line 2277), typed_declspecs components ';' -> component_decl
state stack now 0 2 48 191 354 48 191 354
Entering state 585
Reducing via rule 374 (line 2269), component_decl_list component_decl -> component_decl_list
state stack now 0 2 48 191 354 48 191
Entering state 354
Reading a token: Next token is 262 (TYPESPEC `double')
Shifting token 262 (TYPESPEC), Entering state 8
Reducing via rule 275 (line 1765), TYPESPEC -> typespec
state stack now 0 2 48 191 354 48 191 354
Entering state 39
Reading a token: Next token is 258 (IDENTIFIER `d')
Reducing via rule 256 (line 1685), typespec -> typed_declspecs
state stack now 0 2 48 191 354 48 191 354
Entering state 351
Next token is 258 (IDENTIFIER `d')
Shifting token 258 (IDENTIFIER), Entering state 570
Reading a token: Next token is 59 (';')
Reducing via rule 457 (line 2583), IDENTIFIER -> notype_declarator
state stack now 0 2 48 191 354 48 191 354 351
Entering state 155
Next token is 59 (';')
Reducing via rule 253 (line 1674), notype_declarator -> declarator
state stack now 0 2 48 191 354 48 191 354 351
Entering state 575
Next token is 59 (';')
Reducing via rule 638 (line 3725), -> maybe_raises
state stack now 0 2 48 191 354 48 191 354 351 575
Entering state 766
Next token is 59 (';')
Reducing via rule 288 (line 1796), -> maybeasm
state stack now 0 2 48 191 354 48 191 354 351 575 766
Entering state 921
Next token is 59 (';')
Reducing via rule 299 (line 1860), -> maybe_attribute
state stack now 0 2 48 191 354 48 191 354 351 575 766 921
Entering state 1041
Next token is 59 (';')
Reducing via rule 398 (line 2413), declarator maybe_raises maybeasm maybe_attribute -> component_declarator0
state stack now 0 2 48 191 354 48 191 354 351
Entering state 577
Reducing via rule 396 (line 2401), component_declarator0 -> components
state stack now 0 2 48 191 354 48 191 354 351
Entering state 576
Next token is 59 (';')
Shifting token 59 (';'), Entering state 768
Reducing via rule 376 (line 2277), typed_declspecs components ';' -> component_decl
state stack now 0 2 48 191 354 48 191 354
Entering state 585
Reducing via rule 374 (line 2269), component_decl_list component_decl -> component_decl_list
state stack now 0 2 48 191 354 48 191
Entering state 354
Reading a token: Next token is 125 ('}')
Reducing via rule 370 (line 2259), component_decl_list -> opt.component_decl_list
state stack now 0 2 48 191 354 48 191
Entering state 353
Next token is 125 ('}')
Shifting token 125 ('}'), Entering state 583
Reducing via rule 326 (line 1973), class_head left_curly opt.component_decl_list '}' -> structsp
state stack now 0 2 48 191 354
Entering state 42
Reducing via rule 274 (line 1764), structsp -> typespec
state stack now 0 2 48 191 354
Entering state 39
Next token is 59 (';')
Reducing via rule 256 (line 1685), typespec -> typed_declspecs
state stack now 0 2 48 191 354
Entering state 351
Next token is 59 (';')
Reducing via rule 395 (line 2398), -> components
state stack now 0 2 48 191 354 351
Entering state 576
Next token is 59 (';')
Shifting token 59 (';'), Entering state 768
Reducing via rule 376 (line 2277), typed_declspecs components ';' -> component_decl
state stack now 0 2 48 191 354
Entering state 585
Reducing via rule 374 (line 2269), component_decl_list component_decl -> component_decl_list
state stack now 0 2 48 191
Entering state 354
Reading a token: Next token is 290 (VISSPEC)
Reducing via rule 370 (line 2259), component_decl_list -> opt.component_decl_list
state stack now 0 2 48 191
Entering state 353
Next token is 290 (VISSPEC)
Shifting token 290 (VISSPEC), Entering state 582
Reading a token: Next token is 58 (':')
Shifting token 58 (':'), Entering state 777
Reading a token: Next token is 259 (TYPENAME `errarg')
Shifting token 259 (TYPENAME), Entering state 127
Reading a token: Next token is 40 ('(')
Reducing via rule 276 (line 1766), TYPENAME -> typespec
state stack now 0 2 48 191 353 582 777
Entering state 39
Next token is 40 ('(')
Reducing via rule 256 (line 1685), typespec -> typed_declspecs
state stack now 0 2 48 191 353 582 777
Entering state 351
Next token is 40 ('(')
Shifting token 40 ('('), Entering state 574
Reading a token: Next token is 263 (TYPE_QUAL)
Shifting token 263 (TYPE_QUAL), Entering state 9
Reducing via rule 264 (line 1718), TYPE_QUAL -> declmods
state stack now 0 2 48 191 353 582 777 351 574
Entering state 246
Reading a token: Next token is 262 (TYPESPEC `char')
Shifting token 262 (TYPESPEC), Entering state 8
Reducing via rule 275 (line 1765), TYPESPEC -> typespec
state stack now 0 2 48 191 353 582 777 351 574 246
Entering state 163
Reading a token: Next token is 42 ('*')
Reducing via rule 257 (line 1688), declmods typespec -> typed_declspecs
state stack now 0 2 48 191 353 582 777 351 574
Entering state 245
Reducing via rule 636 (line 3699), -> dont_see_typename
state stack now 0 2 48 191 353 582 777 351 574 245
Entering state 461
Next token is 42 ('*')
Shifting token 42 ('*'), Entering state 664
Reducing via rule 419 (line 2491), -> type_quals
state stack now 0 2 48 191 353 582 777 351 574 245 461 664
Entering state 828
Reading a token: Next token is 41 (')')
Reducing via rule 481 (line 2691), '*' type_quals -> absdcl1
state stack now 0 2 48 191 353 582 777 351 574 245 461
Entering state 271
Next token is 41 (')')
Reducing via rule 415 (line 2479), absdcl1 -> absdcl
state stack now 0 2 48 191 353 582 777 351 574 245 461
Entering state 666
Reducing via rule 632 (line 3689), absdcl -> abs_or_notype_decl
state stack now 0 2 48 191 353 582 777 351 574 245 461
Entering state 668
Reducing via rule 630 (line 3668), typed_declspecs dont_see_typename abs_or_notype_decl -> parm
state stack now 0 2 48 191 353 582 777 351 574
Entering state 249
Next token is 41 (')')
Reducing via rule 624 (line 3649), parm -> parms
state stack now 0 2 48 191 353 582 777 351 574
Entering state 248
Next token is 41 (')')
Reducing via rule 617 (line 3606), parms -> parmlist
state stack now 0 2 48 191 353 582 777 351 574
Entering state 765
Next token is 41 (')')
Shifting token 41 (')'), Entering state 920
Reading a token: Next token is 59 (';')
Shifting token 59 (';'), Entering state 1038
Reducing via rule 377 (line 2342), typed_declspecs '(' parmlist ')' ';' -> component_decl
state stack now 0 2 48 191 353 582 777
Entering state 355
Reducing via rule 373 (line 2266), component_decl -> component_decl_list
state stack now 0 2 48 191 353 582 777
Entering state 929
Reading a token: Next token is 125 ('}')
Reducing via rule 371 (line 2261), opt.component_decl_list VISSPEC ':' component_decl_list -> opt.component_decl_list
state stack now 0 2 48 191
Entering state 353
Next token is 125 ('}')
Shifting token 125 ('}'), Entering state 583
Reducing via rule 326 (line 1973), class_head left_curly opt.component_decl_list '}' -> structsp
state stack now 0 2
Entering state 42
Reducing via rule 274 (line 1764), structsp -> typespec
state stack now 0 2
Entering state 39
Next token is 59 (';')
Reducing via rule 256 (line 1685), typespec -> typed_declspecs
state stack now 0 2
Entering state 37
Next token is 59 (';')
Shifting token 59 (';'), Entering state 150
Reducing via rule 55 (line 507), typed_declspecs ';' -> datadef
state stack now 0 2
Entering state 32
Reducing via rule 9 (line 306), datadef -> extdef
state stack now 0 2
Entering state 54
Reducing via rule 4 (line 289), @1 extdef -> extdefs
state stack now 0
Entering state 1
Reading a token: Next token is 259 (TYPENAME `errarg')
Shifting token 259 (TYPENAME), Entering state 5
Reading a token: Next token is 300 (SCOPE)
Shifting token 300 (SCOPE), Entering state 58
Reducing via rule 476 (line 2659), TYPENAME SCOPE -> typename_scope
state stack now 0 1
Entering state 51
Reducing via rule 474 (line 2634), typename_scope -> scoped_id
state stack now 0 1
Entering state 50
Reducing via rule 419 (line 2491), -> type_quals
state stack now 0 1 50
Entering state 113
Reading a token: Next token is 259 (TYPENAME `errarg')
Reducing via rule 635 (line 3695), type_quals -> see_typename
state stack now 0 1 50
Entering state 199
Next token is 259 (TYPENAME `errarg')
Shifting token 259 (TYPENAME), Entering state 379
Reading a token: Next token is 40 ('(')
Reducing via rule 463 (line 2609), scoped_id see_typename TYPENAME -> notype_declarator
state stack now 0 1
Entering state 49
Next token is 40 ('(')
Shifting token 40 ('('), Entering state 194
Reading a token: Next token is 263 (TYPE_QUAL)
Shifting token 263 (TYPE_QUAL), Entering state 359
Reading a token: Next token is 262 (TYPESPEC `char')
Reducing via rule 264 (line 1718), TYPE_QUAL -> declmods
state stack now 0 1 49 194
Entering state 246
Next token is 262 (TYPESPEC `char')
Shifting token 262 (TYPESPEC), Entering state 8
Reducing via rule 275 (line 1765), TYPESPEC -> typespec
state stack now 0 1 49 194 246
Entering state 163
Reading a token: Next token is 42 ('*')
Reducing via rule 257 (line 1688), declmods typespec -> typed_declspecs
state stack now 0 1 49 194
Entering state 245
Reducing via rule 636 (line 3699), -> dont_see_typename
state stack now 0 1 49 194 245
Entering state 461
Next token is 42 ('*')
Shifting token 42 ('*'), Entering state 664
Reducing via rule 419 (line 2491), -> type_quals
state stack now 0 1 49 194 245 461 664
Entering state 828
Reading a token: Next token is 258 (IDENTIFIER `p')
Shifting token 258 (IDENTIFIER), Entering state 4
Reducing via rule 457 (line 2583), IDENTIFIER -> notype_declarator
state stack now 0 1 49 194 245 461 664 828
Entering state 281
Reading a token: Next token is 41 (')')
Reducing via rule 453 (line 2575), '*' type_quals notype_declarator -> notype_declarator
state stack now 0 1 49 194 245 461
Entering state 667
Next token is 41 (')')
Reducing via rule 633 (line 3690), notype_declarator -> abs_or_notype_decl
state stack now 0 1 49 194 245 461
Entering state 668
Reducing via rule 630 (line 3668), typed_declspecs dont_see_typename abs_or_notype_decl -> parm
state stack now 0 1 49 194
Entering state 249
Next token is 41 (')')
Reducing via rule 624 (line 3649), parm -> parms
state stack now 0 1 49 194
Entering state 248
Next token is 41 (')')
Reducing via rule 617 (line 3606), parms -> parmlist
state stack now 0 1 49 194
Entering state 363
Next token is 41 (')')
Shifting token 41 (')'), Entering state 589
Reducing via rule 419 (line 2491), -> type_quals
state stack now 0 1 49 194 363 589
Entering state 782
Reading a token: Next token is 58 (':')
Reducing via rule 449 (line 2567), notype_declarator '(' parmlist ')' type_quals -> notype_declarator
state stack now 0 1
Entering state 49
Next token is 58 (':')
Reducing via rule 638 (line 3725), -> maybe_raises
state stack now 0 1 49
Entering state 198
Next token is 58 (':')
Reducing via rule 69 (line 585), notype_declarator maybe_raises -> fn.def1
state stack now 0 1
Entering state 34
Next token is 58 (':')
Shifting token 58 (':'), Entering state 134
Reducing via rule 88 (line 703), -> .set_base_init
state stack now 0 1 34 134
Entering state 300
Reading a token: Next token is 258 (IDENTIFIER `s')
Shifting token 258 (IDENTIFIER), Entering state 61
Reducing via rule 103 (line 773), IDENTIFIER -> identifier
state stack now 0 1 34 134 300
Entering state 520
Reading a token: Next token is 40 ('(')
Shifting token 40 ('('), Entering state 711
Reading a token: Next token is 258 (IDENTIFIER `p')
Shifting token 258 (IDENTIFIER), Entering state 203
Reducing via rule 201 (line 1247), IDENTIFIER -> primary
state stack now 0 1 34 134 300 520 711
Entering state 231
Next token is 63 ('?')
Reducing via rule 141 (line 945), primary -> unary_expr
state stack now 0 1 34 134 300 520 711
Entering state 228
Reducing via rule 172 (line 1147), unary_expr -> cast_expr
state stack now 0 1 34 134 300 520 711
Entering state 229
Reducing via rule 178 (line 1182), cast_expr -> expr_no_commas
state stack now 0 1 34 134 300 520 711
Entering state 361
Next token is 63 ('?')
Shifting token 63 ('?'), Entering state 414
Reading a token: Next token is 258 (IDENTIFIER `p')
Shifting token 258 (IDENTIFIER), Entering state 203
Reducing via rule 201 (line 1247), IDENTIFIER -> primary
state stack now 0 1 34 134 300 520 711 361 414
Entering state 231
Next token is 58 (':')
Reducing via rule 141 (line 945), primary -> unary_expr
state stack now 0 1 34 134 300 520 711 361 414
Entering state 228
Reducing via rule 172 (line 1147), unary_expr -> cast_expr
state stack now 0 1 34 134 300 520 711 361 414
Entering state 229
Reducing via rule 178 (line 1182), cast_expr -> expr_no_commas
state stack now 0 1 34 134 300 520 711 361 414
Entering state 256
Next token is 58 (':')
Reducing via rule 137 (line 933), expr_no_commas -> expr
state stack now 0 1 34 134 300 520 711 361 414
Entering state 625
Reducing via rule 607 (line 3564), expr -> xexpr
state stack now 0 1 34 134 300 520 711 361 414
Entering state 626
Next token is 58 (':')
Shifting token 58 (':'), Entering state 808
Reading a token: Next token is 265 (STRING)
Shifting token 265 (STRING), Entering state 206
Reducing via rule 240 (line 1596), STRING -> string
state stack now 0 1 34 134 300 520 711 361 414 626 808
Entering state 234
Reading a token: Next token is 41 (')')
Reducing via rule 204 (line 1266), string -> primary
state stack now 0 1 34 134 300 520 711 361 414 626 808
Entering state 231
Next token is 41 (')')
Reducing via rule 141 (line 945), primary -> unary_expr
state stack now 0 1 34 134 300 520 711 361 414 626 808
Entering state 228
Reducing via rule 172 (line 1147), unary_expr -> cast_expr
state stack now 0 1 34 134 300 520 711 361 414 626 808
Entering state 229
Reducing via rule 178 (line 1182), cast_expr -> expr_no_commas
state stack now 0 1 34 134 300 520 711 361 414 626 808
Entering state 943
Next token is 41 (')')
Reducing via rule 196 (line 1218), expr_no_commas '?' xexpr ':' expr_no_commas -> expr_no_commas
state stack now 0 1 34 134 300 520 711
Entering state 361
Next token is 41 (')')
Reducing via rule 138 (line 936), expr_no_commas -> nonnull_exprlist
state stack now 0 1 34 134 300 520 711
Entering state 849
Next token is 41 (')')
Shifting token 41 (')'), Entering state 964
Reducing via rule 95 (line 749), identifier '(' nonnull_exprlist ')' -> member_init
e1.ii: In method `errarg::errarg (const char *)':
e1.ii:14: class `errarg' does not have any field named `s'
state stack now 0 1 34 134 300
Entering state 519
Reducing via rule 90 (line 729), member_init -> member_init_list
state stack now 0 1 34 134 300
Entering state 518
Reading a token: Next token is 44 (',')
Shifting token 44 (','), Entering state 709
Reading a token: Next token is 258 (IDENTIFIER `type')
Shifting token 258 (IDENTIFIER), Entering state 61
Reducing via rule 103 (line 773), IDENTIFIER -> identifier
state stack now 0 1 34 134 300 518 709
Entering state 520
Reading a token: Next token is 40 ('(')
Shifting token 40 ('('), Entering state 711
Reading a token: Next token is 258 (IDENTIFIER `STRING')
Shifting token 258 (IDENTIFIER), Entering state 203
Reducing via rule 201 (line 1247), IDENTIFIER -> primary
state stack now 0 1 34 134 300 518 709 520 711
Entering state 231
Next token is 41 (')')
Reducing via rule 141 (line 945), primary -> unary_expr
state stack now 0 1 34 134 300 518 709 520 711
Entering state 228
Reducing via rule 172 (line 1147), unary_expr -> cast_expr
state stack now 0 1 34 134 300 518 709 520 711
Entering state 229
Reducing via rule 178 (line 1182), cast_expr -> expr_no_commas
state stack now 0 1 34 134 300 518 709 520 711
Entering state 361
Next token is 41 (')')
Reducing via rule 138 (line 936), expr_no_commas -> nonnull_exprlist
state stack now 0 1 34 134 300 518 709 520 711
Entering state 849
Next token is 41 (')')
Shifting token 41 (')'), Entering state 964
Reducing via rule 95 (line 749), identifier '(' nonnull_exprlist ')' -> member_init
state stack now 0 1 34 134 300 518 709
Entering state 848
Reducing via rule 91 (line 731), member_init_list ',' member_init -> member_init_list
state stack now 0 1 34 134 300
Entering state 518
Reading a token: Next token is 123 ('{')
Reducing via rule 87 (line 694), ':' .set_base_init member_init_list -> base_init
state stack now 0 1 34
Entering state 137
Next token is 123 ('{')
Shifting token 123 ('{'), Entering state 308
Reading a token: Next token is 125 ('}')
Shifting token 125 ('}'), Entering state 533
Reducing via rule 513 (line 2829), '{' '}' -> compstmt
state stack now 0 1 34 137
Entering state 310
Reducing via rule 511 (line 2823), compstmt -> compstmt_or_error
state stack now 0 1 34 137
Entering state 309
Reducing via rule 59 (line 530), fn.def1 base_init compstmt_or_error -> fndef
state stack now 0 1
Entering state 33
Reducing via rule 8 (line 303), fndef -> extdef
state stack now 0 1
Entering state 27
Reducing via rule 5 (line 290), extdefs extdef -> extdefs
state stack now 0
Entering state 1
Reading a token: Now at end of input.
Reducing via rule 2 (line 279), extdefs -> program
state stack now 0
Entering state 1269
Now at end of input.
Shifting token 0 ($), Entering state 1270
Now at end of input.
------------------------------------------------------------------
Output from the Sun4c gcc-2.3.3 (sun-dy-outp)
----------------------------------------------
Reading specs from /a/home/austin/eks/mycmds/lib/gcc-lib/sparc-sun-sunos4.1.1/2.3.3/specs
gcc version 2.3.3
/a/home/austin/eks/mycmds/lib/gcc-lib/sparc-sun-sunos4.1.1/2.3.3/cc1plus e1.ii -quiet -dy -version -o e1.x
GNU C++ version 2.3.3 (sparc) compiled by GNU C version 2.3.3.
Starting parse
Entering state 0
Reading a token: Next token is 289 (AGGR `class')
Reducing via rule 3 (line 287), -> @1
state stack now 0
Entering state 2
Next token is 289 (AGGR `class')
Shifting token 289 (AGGR), Entering state 13
Reducing via rule 332 (line 2055), AGGR -> aggr
state stack now 0 2
Entering state 43
Reading a token: Next token is 337 (IDENTIFIER_DEFN `errarg')
Shifting token 337 (IDENTIFIER_DEFN), Entering state 183
Reducing via rule 106 (line 779), IDENTIFIER_DEFN -> identifier_defn
state stack now 0 2 43
Entering state 186
Reducing via rule 344 (line 2091), aggr identifier_defn -> named_class_head_sans_basetype_defn
state stack now 0 2
Entering state 45
Reducing via rule 347 (line 2108), -> @17
state stack now 0 2 45
Entering state 189
Reading a token: Next token is 123 ('{')
Reducing via rule 352 (line 2129), -> maybe_base_class_list
state stack now 0 2 45 189
Entering state 347
Reducing via rule 348 (line 2113), named_class_head_sans_basetype_defn @17 maybe_base_class_list -> named_class_head
state stack now 0 2
Entering state 46
Reducing via rule 351 (line 2127), named_class_head -> class_head
state stack now 0 2
Entering state 48
Next token is 123 ('{')
Shifting token 123 ('{'), Entering state 190
Reducing via rule 368 (line 2230), '{' -> left_curly
state stack now 0 2 48
Entering state 191
Reading a token: Next token is 268 (ENUM)
Shifting token 268 (ENUM), Entering state 10
Reading a token: Next token is 123 ('{')
Shifting token 123 ('{'), Entering state 63
Reading a token: Next token is 258 (IDENTIFIER `EMPTY')
Reducing via rule 322 (line 1959), -> @15
state stack now 0 2 48 191 10 63
Entering state 251
Next token is 258 (IDENTIFIER `EMPTY')
Shifting token 258 (IDENTIFIER), Entering state 61
Reducing via rule 103 (line 773), IDENTIFIER -> identifier
state stack now 0 2 48 191 10 63 251
Entering state 469
Reading a token: Next token is 44 (',')
Reducing via rule 410 (line 2462), identifier -> enumerator
state stack now 0 2 48 191 10 63 251
Entering state 471
Reducing via rule 408 (line 2456), enumerator -> enumlist
state stack now 0 2 48 191 10 63 251
Entering state 470
Next token is 44 (',')
Shifting token 44 (','), Entering state 677
Reading a token: Next token is 258 (IDENTIFIER `STRING')
Shifting token 258 (IDENTIFIER), Entering state 61
Reducing via rule 103 (line 773), IDENTIFIER -> identifier
state stack now 0 2 48 191 10 63 251 470 677
Entering state 469
Reading a token: Next token is 44 (',')
Reducing via rule 410 (line 2462), identifier -> enumerator
state stack now 0 2 48 191 10 63 251 470 677
Entering state 834
Reducing via rule 409 (line 2458), enumlist ',' enumerator -> enumlist
state stack now 0 2 48 191 10 63 251
Entering state 470
Next token is 44 (',')
Shifting token 44 (','), Entering state 677
Reading a token: Next token is 258 (IDENTIFIER `CHAR')
Shifting token 258 (IDENTIFIER), Entering state 61
Reducing via rule 103 (line 773), IDENTIFIER -> identifier
state stack now 0 2 48 191 10 63 251 470 677
Entering state 469
Reading a token: Next token is 44 (',')
Reducing via rule 410 (line 2462), identifier -> enumerator
state stack now 0 2 48 191 10 63 251 470 677
Entering state 834
Reducing via rule 409 (line 2458), enumlist ',' enumerator -> enumlist
state stack now 0 2 48 191 10 63 251
Entering state 470
Next token is 44 (',')
Shifting token 44 (','), Entering state 677
Reading a token: Next token is 258 (IDENTIFIER `INTEGER')
Shifting token 258 (IDENTIFIER), Entering state 61
Reducing via rule 103 (line 773), IDENTIFIER -> identifier
state stack now 0 2 48 191 10 63 251 470 677
Entering state 469
Reading a token: Next token is 44 (',')
Reducing via rule 410 (line 2462), identifier -> enumerator
state stack now 0 2 48 191 10 63 251 470 677
Entering state 834
Reducing via rule 409 (line 2458), enumlist ',' enumerator -> enumlist
state stack now 0 2 48 191 10 63 251
Entering state 470
Next token is 44 (',')
Shifting token 44 (','), Entering state 677
Reading a token: Next token is 258 (IDENTIFIER `DOUBLE')
Shifting token 258 (IDENTIFIER), Entering state 61
Reducing via rule 103 (line 773), IDENTIFIER -> identifier
state stack now 0 2 48 191 10 63 251 470 677
Entering state 469
Reading a token: Next token is 125 ('}')
Reducing via rule 410 (line 2462), identifier -> enumerator
state stack now 0 2 48 191 10 63 251 470 677
Entering state 834
Reducing via rule 409 (line 2458), enumlist ',' enumerator -> enumlist
state stack now 0 2 48 191 10 63 251
Entering state 470
Next token is 125 ('}')
Reducing via rule 330 (line 2048), -> maybecomma_warn
state stack now 0 2 48 191 10 63 251 470
Entering state 678
Next token is 125 ('}')
Shifting token 125 ('}'), Entering state 835
Reducing via rule 323 (line 1962), ENUM '{' @15 enumlist maybecomma_warn '}' -> structsp
state stack now 0 2 48 191
Entering state 42
Reducing via rule 274 (line 1764), structsp -> typespec
state stack now 0 2 48 191
Entering state 39
Next token is 258 (IDENTIFIER `type')
Reducing via rule 256 (line 1685), typespec -> typed_declspecs
state stack now 0 2 48 191
Entering state 351
Next token is 258 (IDENTIFIER `type')
Shifting token 258 (IDENTIFIER), Entering state 570
Reading a token: Next token is 59 (';')
Reducing via rule 457 (line 2583), IDENTIFIER -> notype_declarator
state stack now 0 2 48 191 351
Entering state 155
Next token is 59 (';')
Reducing via rule 253 (line 1674), notype_declarator -> declarator
state stack now 0 2 48 191 351
Entering state 575
Next token is 59 (';')
Reducing via rule 638 (line 3725), -> maybe_raises
state stack now 0 2 48 191 351 575
Entering state 766
Next token is 59 (';')
Reducing via rule 288 (line 1796), -> maybeasm
state stack now 0 2 48 191 351 575 766
Entering state 921
Next token is 59 (';')
Reducing via rule 299 (line 1860), -> maybe_attribute
state stack now 0 2 48 191 351 575 766 921
Entering state 1041
Next token is 59 (';')
Reducing via rule 398 (line 2413), declarator maybe_raises maybeasm maybe_attribute -> component_declarator0
state stack now 0 2 48 191 351
Entering state 577
Reducing via rule 396 (line 2401), component_declarator0 -> components
state stack now 0 2 48 191 351
Entering state 576
Next token is 59 (';')
Shifting token 59 (';'), Entering state 768
Reducing via rule 376 (line 2277), typed_declspecs components ';' -> component_decl
state stack now 0 2 48 191
Entering state 355
Reducing via rule 373 (line 2266), component_decl -> component_decl_list
state stack now 0 2 48 191
Entering state 354
Reading a token: Next token is 289 (AGGR `union')
Shifting token 289 (AGGR), Entering state 13
Reducing via rule 332 (line 2055), AGGR -> aggr
state stack now 0 2 48 191 354
Entering state 43
Reading a token: Next token is 123 ('{')
Shifting token 123 ('{'), Entering state 180
Reducing via rule 349 (line 2122), aggr '{' -> unnamed_class_head
state stack now 0 2 48 191 354
Entering state 47
Reducing via rule 350 (line 2127), unnamed_class_head -> class_head
state stack now 0 2 48 191 354
Entering state 48
Reading a token: Next token is 123 ('{')
Shifting token 123 ('{'), Entering state 190
Reducing via rule 368 (line 2230), '{' -> left_curly
state stack now 0 2 48 191 354 48
Entering state 191
Reading a token: Next token is 263 (TYPE_QUAL)
Shifting token 263 (TYPE_QUAL), Entering state 9
Reducing via rule 264 (line 1718), TYPE_QUAL -> declmods
state stack now 0 2 48 191 354 48 191
Entering state 352
Reading a token: Next token is 262 (TYPESPEC `char')
Shifting token 262 (TYPESPEC), Entering state 8
Reducing via rule 275 (line 1765), TYPESPEC -> typespec
state stack now 0 2 48 191 354 48 191 352
Entering state 163
Reading a token: Next token is 42 ('*')
Reducing via rule 257 (line 1688), declmods typespec -> typed_declspecs
state stack now 0 2 48 191 354 48 191
Entering state 351
Next token is 42 ('*')
Shifting token 42 ('*'), Entering state 147
Reducing via rule 419 (line 2491), -> type_quals
state stack now 0 2 48 191 354 48 191 351 147
Entering state 318
Reading a token: Next token is 258 (IDENTIFIER `s')
Shifting token 258 (IDENTIFIER), Entering state 4
Reducing via rule 457 (line 2583), IDENTIFIER -> notype_declarator
state stack now 0 2 48 191 354 48 191 351 147 318
Entering state 281
Reading a token: Next token is 59 (';')
Reducing via rule 453 (line 2575), '*' type_quals notype_declarator -> notype_declarator
state stack now 0 2 48 191 354 48 191 351
Entering state 155
Next token is 59 (';')
Reducing via rule 253 (line 1674), notype_declarator -> declarator
state stack now 0 2 48 191 354 48 191 351
Entering state 575
Next token is 59 (';')
Reducing via rule 638 (line 3725), -> maybe_raises
state stack now 0 2 48 191 354 48 191 351 575
Entering state 766
Next token is 59 (';')
Reducing via rule 288 (line 1796), -> maybeasm
state stack now 0 2 48 191 354 48 191 351 575 766
Entering state 921
Next token is 59 (';')
Reducing via rule 299 (line 1860), -> maybe_attribute
state stack now 0 2 48 191 354 48 191 351 575 766 921
Entering state 1041
Next token is 59 (';')
Reducing via rule 398 (line 2413), declarator maybe_raises maybeasm maybe_attribute -> component_declarator0
state stack now 0 2 48 191 354 48 191 351
Entering state 577
Reducing via rule 396 (line 2401), component_declarator0 -> components
state stack now 0 2 48 191 354 48 191 351
Entering state 576
Next token is 59 (';')
Shifting token 59 (';'), Entering state 768
Reducing via rule 376 (line 2277), typed_declspecs components ';' -> component_decl
state stack now 0 2 48 191 354 48 191
Entering state 355
Reducing via rule 373 (line 2266), component_decl -> component_decl_list
state stack now 0 2 48 191 354 48 191
Entering state 354
Reading a token: Next token is 262 (TYPESPEC `int')
Shifting token 262 (TYPESPEC), Entering state 8
Reducing via rule 275 (line 1765), TYPESPEC -> typespec
state stack now 0 2 48 191 354 48 191 354
Entering state 39
Reading a token: Next token is 258 (IDENTIFIER `n')
Reducing via rule 256 (line 1685), typespec -> typed_declspecs
state stack now 0 2 48 191 354 48 191 354
Entering state 351
Next token is 258 (IDENTIFIER `n')
Shifting token 258 (IDENTIFIER), Entering state 570
Reading a token: Next token is 59 (';')
Reducing via rule 457 (line 2583), IDENTIFIER -> notype_declarator
state stack now 0 2 48 191 354 48 191 354 351
Entering state 155
Next token is 59 (';')
Reducing via rule 253 (line 1674), notype_declarator -> declarator
state stack now 0 2 48 191 354 48 191 354 351
Entering state 575
Next token is 59 (';')
Reducing via rule 638 (line 3725), -> maybe_raises
state stack now 0 2 48 191 354 48 191 354 351 575
Entering state 766
Next token is 59 (';')
Reducing via rule 288 (line 1796), -> maybeasm
state stack now 0 2 48 191 354 48 191 354 351 575 766
Entering state 921
Next token is 59 (';')
Reducing via rule 299 (line 1860), -> maybe_attribute
state stack now 0 2 48 191 354 48 191 354 351 575 766 921
Entering state 1041
Next token is 59 (';')
Reducing via rule 398 (line 2413), declarator maybe_raises maybeasm maybe_attribute -> component_declarator0
state stack now 0 2 48 191 354 48 191 354 351
Entering state 577
Reducing via rule 396 (line 2401), component_declarator0 -> components
state stack now 0 2 48 191 354 48 191 354 351
Entering state 576
Next token is 59 (';')
Shifting token 59 (';'), Entering state 768
Reducing via rule 376 (line 2277), typed_declspecs components ';' -> component_decl
state stack now 0 2 48 191 354 48 191 354
Entering state 585
Reducing via rule 374 (line 2269), component_decl_list component_decl -> component_decl_list
state stack now 0 2 48 191 354 48 191
Entering state 354
Reading a token: Next token is 262 (TYPESPEC `char')
Shifting token 262 (TYPESPEC), Entering state 8
Reducing via rule 275 (line 1765), TYPESPEC -> typespec
state stack now 0 2 48 191 354 48 191 354
Entering state 39
Reading a token: Next token is 258 (IDENTIFIER `c')
Reducing via rule 256 (line 1685), typespec -> typed_declspecs
state stack now 0 2 48 191 354 48 191 354
Entering state 351
Next token is 258 (IDENTIFIER `c')
Shifting token 258 (IDENTIFIER), Entering state 570
Reading a token: Next token is 59 (';')
Reducing via rule 457 (line 2583), IDENTIFIER -> notype_declarator
state stack now 0 2 48 191 354 48 191 354 351
Entering state 155
Next token is 59 (';')
Reducing via rule 253 (line 1674), notype_declarator -> declarator
state stack now 0 2 48 191 354 48 191 354 351
Entering state 575
Next token is 59 (';')
Reducing via rule 638 (line 3725), -> maybe_raises
state stack now 0 2 48 191 354 48 191 354 351 575
Entering state 766
Next token is 59 (';')
Reducing via rule 288 (line 1796), -> maybeasm
state stack now 0 2 48 191 354 48 191 354 351 575 766
Entering state 921
Next token is 59 (';')
Reducing via rule 299 (line 1860), -> maybe_attribute
state stack now 0 2 48 191 354 48 191 354 351 575 766 921
Entering state 1041
Next token is 59 (';')
Reducing via rule 398 (line 2413), declarator maybe_raises maybeasm maybe_attribute -> component_declarator0
state stack now 0 2 48 191 354 48 191 354 351
Entering state 577
Reducing via rule 396 (line 2401), component_declarator0 -> components
state stack now 0 2 48 191 354 48 191 354 351
Entering state 576
Next token is 59 (';')
Shifting token 59 (';'), Entering state 768
Reducing via rule 376 (line 2277), typed_declspecs components ';' -> component_decl
state stack now 0 2 48 191 354 48 191 354
Entering state 585
Reducing via rule 374 (line 2269), component_decl_list component_decl -> component_decl_list
state stack now 0 2 48 191 354 48 191
Entering state 354
Reading a token: Next token is 262 (TYPESPEC `double')
Shifting token 262 (TYPESPEC), Entering state 8
Reducing via rule 275 (line 1765), TYPESPEC -> typespec
state stack now 0 2 48 191 354 48 191 354
Entering state 39
Reading a token: Next token is 258 (IDENTIFIER `d')
Reducing via rule 256 (line 1685), typespec -> typed_declspecs
state stack now 0 2 48 191 354 48 191 354
Entering state 351
Next token is 258 (IDENTIFIER `d')
Shifting token 258 (IDENTIFIER), Entering state 570
Reading a token: Next token is 59 (';')
Reducing via rule 457 (line 2583), IDENTIFIER -> notype_declarator
state stack now 0 2 48 191 354 48 191 354 351
Entering state 155
Next token is 59 (';')
Reducing via rule 253 (line 1674), notype_declarator -> declarator
state stack now 0 2 48 191 354 48 191 354 351
Entering state 575
Next token is 59 (';')
Reducing via rule 638 (line 3725), -> maybe_raises
state stack now 0 2 48 191 354 48 191 354 351 575
Entering state 766
Next token is 59 (';')
Reducing via rule 288 (line 1796), -> maybeasm
state stack now 0 2 48 191 354 48 191 354 351 575 766
Entering state 921
Next token is 59 (';')
Reducing via rule 299 (line 1860), -> maybe_attribute
state stack now 0 2 48 191 354 48 191 354 351 575 766 921
Entering state 1041
Next token is 59 (';')
Reducing via rule 398 (line 2413), declarator maybe_raises maybeasm maybe_attribute -> component_declarator0
state stack now 0 2 48 191 354 48 191 354 351
Entering state 577
Reducing via rule 396 (line 2401), component_declarator0 -> components
state stack now 0 2 48 191 354 48 191 354 351
Entering state 576
Next token is 59 (';')
Shifting token 59 (';'), Entering state 768
Reducing via rule 376 (line 2277), typed_declspecs components ';' -> component_decl
state stack now 0 2 48 191 354 48 191 354
Entering state 585
Reducing via rule 374 (line 2269), component_decl_list component_decl -> component_decl_list
state stack now 0 2 48 191 354 48 191
Entering state 354
Reading a token: Next token is 125 ('}')
Reducing via rule 370 (line 2259), component_decl_list -> opt.component_decl_list
state stack now 0 2 48 191 354 48 191
Entering state 353
Next token is 125 ('}')
Shifting token 125 ('}'), Entering state 583
Reducing via rule 326 (line 1973), class_head left_curly opt.component_decl_list '}' -> structsp
state stack now 0 2 48 191 354
Entering state 42
Reducing via rule 274 (line 1764), structsp -> typespec
state stack now 0 2 48 191 354
Entering state 39
Next token is 59 (';')
Reducing via rule 256 (line 1685), typespec -> typed_declspecs
state stack now 0 2 48 191 354
Entering state 351
Next token is 59 (';')
Reducing via rule 395 (line 2398), -> components
state stack now 0 2 48 191 354 351
Entering state 576
Next token is 59 (';')
Shifting token 59 (';'), Entering state 768
Reducing via rule 376 (line 2277), typed_declspecs components ';' -> component_decl
state stack now 0 2 48 191 354
Entering state 585
Reducing via rule 374 (line 2269), component_decl_list component_decl -> component_decl_list
state stack now 0 2 48 191
Entering state 354
Reading a token: Next token is 290 (VISSPEC)
Reducing via rule 370 (line 2259), component_decl_list -> opt.component_decl_list
state stack now 0 2 48 191
Entering state 353
Next token is 290 (VISSPEC)
Shifting token 290 (VISSPEC), Entering state 582
Reading a token: Next token is 58 (':')
Shifting token 58 (':'), Entering state 777
Reading a token: Next token is 259 (TYPENAME `errarg')
Shifting token 259 (TYPENAME), Entering state 127
Reading a token: Next token is 40 ('(')
Reducing via rule 276 (line 1766), TYPENAME -> typespec
state stack now 0 2 48 191 353 582 777
Entering state 39
Next token is 40 ('(')
Reducing via rule 256 (line 1685), typespec -> typed_declspecs
state stack now 0 2 48 191 353 582 777
Entering state 351
Next token is 40 ('(')
Shifting token 40 ('('), Entering state 574
Reading a token: Next token is 263 (TYPE_QUAL)
Shifting token 263 (TYPE_QUAL), Entering state 9
Reducing via rule 264 (line 1718), TYPE_QUAL -> declmods
state stack now 0 2 48 191 353 582 777 351 574
Entering state 246
Reading a token: Next token is 262 (TYPESPEC `char')
Shifting token 262 (TYPESPEC), Entering state 8
Reducing via rule 275 (line 1765), TYPESPEC -> typespec
state stack now 0 2 48 191 353 582 777 351 574 246
Entering state 163
Reading a token: Next token is 42 ('*')
Reducing via rule 257 (line 1688), declmods typespec -> typed_declspecs
state stack now 0 2 48 191 353 582 777 351 574
Entering state 245
Reducing via rule 636 (line 3699), -> dont_see_typename
state stack now 0 2 48 191 353 582 777 351 574 245
Entering state 461
Next token is 42 ('*')
Shifting token 42 ('*'), Entering state 664
Reducing via rule 419 (line 2491), -> type_quals
state stack now 0 2 48 191 353 582 777 351 574 245 461 664
Entering state 828
Reading a token: Next token is 41 (')')
Reducing via rule 481 (line 2691), '*' type_quals -> absdcl1
state stack now 0 2 48 191 353 582 777 351 574 245 461
Entering state 271
Next token is 41 (')')
Reducing via rule 415 (line 2479), absdcl1 -> absdcl
state stack now 0 2 48 191 353 582 777 351 574 245 461
Entering state 666
Reducing via rule 632 (line 3689), absdcl -> abs_or_notype_decl
state stack now 0 2 48 191 353 582 777 351 574 245 461
Entering state 668
Reducing via rule 630 (line 3668), typed_declspecs dont_see_typename abs_or_notype_decl -> parm
state stack now 0 2 48 191 353 582 777 351 574
Entering state 249
Next token is 41 (')')
Reducing via rule 624 (line 3649), parm -> parms
state stack now 0 2 48 191 353 582 777 351 574
Entering state 248
Next token is 41 (')')
Reducing via rule 617 (line 3606), parms -> parmlist
state stack now 0 2 48 191 353 582 777 351 574
Entering state 765
Next token is 41 (')')
Shifting token 41 (')'), Entering state 920
Reading a token: Next token is 59 (';')
Shifting token 59 (';'), Entering state 1038
Reducing via rule 377 (line 2342), typed_declspecs '(' parmlist ')' ';' -> component_decl
state stack now 0 2 48 191 353 582 777
Entering state 355
Reducing via rule 373 (line 2266), component_decl -> component_decl_list
state stack now 0 2 48 191 353 582 777
Entering state 929
Reading a token: Next token is 125 ('}')
Reducing via rule 371 (line 2261), opt.component_decl_list VISSPEC ':' component_decl_list -> opt.component_decl_list
state stack now 0 2 48 191
Entering state 353
Next token is 125 ('}')
Shifting token 125 ('}'), Entering state 583
Reducing via rule 326 (line 1973), class_head left_curly opt.component_decl_list '}' -> structsp
state stack now 0 2
Entering state 42
Reducing via rule 274 (line 1764), structsp -> typespec
state stack now 0 2
Entering state 39
Next token is 59 (';')
Reducing via rule 256 (line 1685), typespec -> typed_declspecs
state stack now 0 2
Entering state 37
Next token is 59 (';')
Shifting token 59 (';'), Entering state 150
Reducing via rule 55 (line 507), typed_declspecs ';' -> datadef
state stack now 0 2
Entering state 32
Reducing via rule 9 (line 306), datadef -> extdef
state stack now 0 2
Entering state 54
Reducing via rule 4 (line 289), @1 extdef -> extdefs
state stack now 0
Entering state 1
Reading a token: Next token is 259 (TYPENAME `errarg')
Shifting token 259 (TYPENAME), Entering state 5
Reading a token: Next token is 300 (SCOPE)
Shifting token 300 (SCOPE), Entering state 58
Reducing via rule 476 (line 2659), TYPENAME SCOPE -> typename_scope
state stack now 0 1
Entering state 51
Reducing via rule 474 (line 2634), typename_scope -> scoped_id
state stack now 0 1
Entering state 50
Reducing via rule 419 (line 2491), -> type_quals
state stack now 0 1 50
Entering state 113
Reading a token: Next token is 259 (TYPENAME `errarg')
Reducing via rule 635 (line 3695), type_quals -> see_typename
state stack now 0 1 50
Entering state 199
Next token is 259 (TYPENAME `errarg')
Shifting token 259 (TYPENAME), Entering state 379
Reading a token: Next token is 40 ('(')
Reducing via rule 463 (line 2609), scoped_id see_typename TYPENAME -> notype_declarator
state stack now 0 1
Entering state 49
Next token is 40 ('(')
Shifting token 40 ('('), Entering state 194
Reading a token: Next token is 263 (TYPE_QUAL)
Shifting token 263 (TYPE_QUAL), Entering state 359
Reading a token: Next token is 262 (TYPESPEC `char')
Reducing via rule 264 (line 1718), TYPE_QUAL -> declmods
state stack now 0 1 49 194
Entering state 246
Next token is 262 (TYPESPEC `char')
Shifting token 262 (TYPESPEC), Entering state 8
Reducing via rule 275 (line 1765), TYPESPEC -> typespec
state stack now 0 1 49 194 246
Entering state 163
Reading a token: Next token is 42 ('*')
Reducing via rule 257 (line 1688), declmods typespec -> typed_declspecs
state stack now 0 1 49 194
Entering state 245
Reducing via rule 636 (line 3699), -> dont_see_typename
state stack now 0 1 49 194 245
Entering state 461
Next token is 42 ('*')
Shifting token 42 ('*'), Entering state 664
Reducing via rule 419 (line 2491), -> type_quals
state stack now 0 1 49 194 245 461 664
Entering state 828
Reading a token: Next token is 258 (IDENTIFIER `p')
Shifting token 258 (IDENTIFIER), Entering state 4
Reducing via rule 457 (line 2583), IDENTIFIER -> notype_declarator
state stack now 0 1 49 194 245 461 664 828
Entering state 281
Reading a token: Next token is 41 (')')
Reducing via rule 453 (line 2575), '*' type_quals notype_declarator -> notype_declarator
state stack now 0 1 49 194 245 461
Entering state 667
Next token is 41 (')')
Reducing via rule 633 (line 3690), notype_declarator -> abs_or_notype_decl
state stack now 0 1 49 194 245 461
Entering state 668
Reducing via rule 630 (line 3668), typed_declspecs dont_see_typename abs_or_notype_decl -> parm
state stack now 0 1 49 194
Entering state 249
Next token is 41 (')')
Reducing via rule 624 (line 3649), parm -> parms
state stack now 0 1 49 194
Entering state 248
Next token is 41 (')')
Reducing via rule 617 (line 3606), parms -> parmlist
state stack now 0 1 49 194
Entering state 363
Next token is 41 (')')
Shifting token 41 (')'), Entering state 589
Reducing via rule 419 (line 2491), -> type_quals
state stack now 0 1 49 194 363 589
Entering state 782
Reading a token: Next token is 58 (':')
Reducing via rule 449 (line 2567), notype_declarator '(' parmlist ')' type_quals -> notype_declarator
state stack now 0 1
Entering state 49
Next token is 58 (':')
Reducing via rule 638 (line 3725), -> maybe_raises
state stack now 0 1 49
Entering state 198
Next token is 58 (':')
Reducing via rule 69 (line 585), notype_declarator maybe_raises -> fn.def1
state stack now 0 1
Entering state 34
Next token is 58 (':')
Shifting token 58 (':'), Entering state 134
Reducing via rule 88 (line 703), -> .set_base_init
state stack now 0 1 34 134
Entering state 300
Reading a token: Next token is 258 (IDENTIFIER `s')
Shifting token 258 (IDENTIFIER), Entering state 61
Reducing via rule 103 (line 773), IDENTIFIER -> identifier
state stack now 0 1 34 134 300
Entering state 520
Reading a token: Next token is 40 ('(')
Shifting token 40 ('('), Entering state 711
Reading a token: Next token is 258 (IDENTIFIER `p')
Shifting token 258 (IDENTIFIER), Entering state 203
Reducing via rule 201 (line 1247), IDENTIFIER -> primary
state stack now 0 1 34 134 300 520 711
Entering state 231
Next token is 63 ('?')
Reducing via rule 141 (line 945), primary -> unary_expr
state stack now 0 1 34 134 300 520 711
Entering state 228
Reducing via rule 172 (line 1147), unary_expr -> cast_expr
state stack now 0 1 34 134 300 520 711
Entering state 229
Reducing via rule 178 (line 1182), cast_expr -> expr_no_commas
state stack now 0 1 34 134 300 520 711
Entering state 361
Next token is 63 ('?')
Shifting token 63 ('?'), Entering state 414
Reading a token: Next token is 258 (IDENTIFIER `p')
Shifting token 258 (IDENTIFIER), Entering state 203
Reducing via rule 201 (line 1247), IDENTIFIER -> primary
state stack now 0 1 34 134 300 520 711 361 414
Entering state 231
Next token is 58 (':')
Reducing via rule 141 (line 945), primary -> unary_expr
state stack now 0 1 34 134 300 520 711 361 414
Entering state 228
Reducing via rule 172 (line 1147), unary_expr -> cast_expr
state stack now 0 1 34 134 300 520 711 361 414
Entering state 229
Reducing via rule 178 (line 1182), cast_expr -> expr_no_commas
state stack now 0 1 34 134 300 520 711 361 414
Entering state 256
Next token is 58 (':')
Reducing via rule 137 (line 933), expr_no_commas -> expr
state stack now 0 1 34 134 300 520 711 361 414
Entering state 625
Reducing via rule 607 (line 3564), expr -> xexpr
state stack now 0 1 34 134 300 520 711 361 414
Entering state 626
Next token is 58 (':')
Shifting token 58 (':'), Entering state 808
Reading a token: Next token is 265 (STRING)
Shifting token 265 (STRING), Entering state 206
Reducing via rule 240 (line 1596), STRING -> string
state stack now 0 1 34 134 300 520 711 361 414 626 808
Entering state 234
Reading a token: Next token is 41 (')')
Reducing via rule 204 (line 1266), string -> primary
state stack now 0 1 34 134 300 520 711 361 414 626 808
Entering state 231
Next token is 41 (')')
Reducing via rule 141 (line 945), primary -> unary_expr
state stack now 0 1 34 134 300 520 711 361 414 626 808
Entering state 228
Reducing via rule 172 (line 1147), unary_expr -> cast_expr
state stack now 0 1 34 134 300 520 711 361 414 626 808
Entering state 229
Reducing via rule 178 (line 1182), cast_expr -> expr_no_commas
state stack now 0 1 34 134 300 520 711 361 414 626 808
Entering state 943
Next token is 41 (')')
Reducing via rule 196 (line 1218), expr_no_commas '?' xexpr ':' expr_no_commas -> expr_no_commas
state stack now 0 1 34 134 300 520 711
Entering state 361
Next token is 41 (')')
Reducing via rule 138 (line 936), expr_no_commas -> nonnull_exprlist
state stack now 0 1 34 134 300 520 711
Entering state 849
Next token is 41 (')')
Shifting token 41 (')'), Entering state 964
Reducing via rule 95 (line 749), identifier '(' nonnull_exprlist ')' -> member_init
state stack now 0 1 34 134 300
Entering state 519
Reducing via rule 90 (line 729), member_init -> member_init_list
state stack now 0 1 34 134 300
Entering state 518
Reading a token: Next token is 44 (',')
Shifting token 44 (','), Entering state 709
Reading a token: Next token is 258 (IDENTIFIER `type')
Shifting token 258 (IDENTIFIER), Entering state 61
Reducing via rule 103 (line 773), IDENTIFIER -> identifier
state stack now 0 1 34 134 300 518 709
Entering state 520
Reading a token: Next token is 40 ('(')
Shifting token 40 ('('), Entering state 711
Reading a token: Next token is 258 (IDENTIFIER `STRING')
Shifting token 258 (IDENTIFIER), Entering state 203
Reducing via rule 201 (line 1247), IDENTIFIER -> primary
state stack now 0 1 34 134 300 518 709 520 711
Entering state 231
Next token is 41 (')')
Reducing via rule 141 (line 945), primary -> unary_expr
state stack now 0 1 34 134 300 518 709 520 711
Entering state 228
Reducing via rule 172 (line 1147), unary_expr -> cast_expr
state stack now 0 1 34 134 300 518 709 520 711
Entering state 229
Reducing via rule 178 (line 1182), cast_expr -> expr_no_commas
state stack now 0 1 34 134 300 518 709 520 711
Entering state 361
Next token is 41 (')')
Reducing via rule 138 (line 936), expr_no_commas -> nonnull_exprlist
state stack now 0 1 34 134 300 518 709 520 711
Entering state 849
Next token is 41 (')')
Shifting token 41 (')'), Entering state 964
Reducing via rule 95 (line 749), identifier '(' nonnull_exprlist ')' -> member_init
state stack now 0 1 34 134 300 518 709
Entering state 848
Reducing via rule 91 (line 731), member_init_list ',' member_init -> member_init_list
state stack now 0 1 34 134 300
Entering state 518
Reading a token: Next token is 123 ('{')
Reducing via rule 87 (line 694), ':' .set_base_init member_init_list -> base_init
state stack now 0 1 34
Entering state 137
Next token is 123 ('{')
Shifting token 123 ('{'), Entering state 308
Reading a token: Next token is 125 ('}')
Shifting token 125 ('}'), Entering state 533
Reducing via rule 513 (line 2829), '{' '}' -> compstmt
state stack now 0 1 34 137
Entering state 310
Reducing via rule 511 (line 2823), compstmt -> compstmt_or_error
state stack now 0 1 34 137
Entering state 309
Reducing via rule 59 (line 530), fn.def1 base_init compstmt_or_error -> fndef
state stack now 0 1
Entering state 33
Reducing via rule 8 (line 303), fndef -> extdef
state stack now 0 1
Entering state 27
Reducing via rule 5 (line 290), extdefs extdef -> extdefs
state stack now 0
Entering state 1
Reading a token: Now at end of input.
Reducing via rule 2 (line 279), extdefs -> program
state stack now 0
Entering state 1269
Now at end of input.
Shifting token 0 ($), Entering state 1270
Now at end of input.
Technical Details
Message-ID:
<m0nHhYQ-00006CC@vki68.aar-vki.dk>Path:
arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!agate!spool.mu.edu!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!vki68.aar-vki.DK!eksShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,80487772aa925c41,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-01-28 23:29:53 PST Path: arc1-ca.pugleaf.net!sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!agate!spool.mu.edu!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!vki68.aar-vki.DK!eks From: eks@vki68.aar-vki.DK (Eigil Krogh Sorensen) Newsgroups: gnu.gcc.help Subject: Help needed with gcc-2.3.3 om Motorola system. Date: 28 Jan 1993 16:30:49 -0500 Organization: GNUs Not Usenet Lines: 1626 Sender: daemon@cis.ohio-state.edu Distribution: gnu Message-ID: <m0nHhYQ-00006CC@vki68.aar-vki.dk>