GPC with gcc-4.[23]

Adriaan van Os gpc at microbizz.nl
Sun Jun 26 17:23:47 CEST 2011


Waldek Hebisch wrote:
> I did some work on updating gpc to newer gcc versions.  You can
> find it at GitHub:
> 
> https://github.com/hebisch/gpc

1. It looks like the snapshot is incompatible with bison-2.5

In file included from parse.c:70:
../../gcc-4.3.5/gcc/p/parse.h:163: error: redefinition of 'union YYSTYPE'
parse.h:176: error: conflicting types for 'YYSTYPE'
parse.h:176: error: previous declaration of 'YYSTYPE' was here
parse.h:196: error: conflicting types for 'yylval'
parse.h:196: error: previous declaration of 'yylval' was here
parse.c:4399: error: conflicting types for 'yylval'
parse.h:196: error: previous declaration of 'yylval' was here
parse.y: In function 'locations':
parse.y:2439: warning: assignment discards qualifiers from pointer target type
parse.y:2448: warning: assignment discards qualifiers from pointer target type


2. A few compiler switches cause ICE's

[P18:~/gpc/testgpc/adriaan] adriaan% gpc --mudflap hello.pas
hello.pas: In main program:
hello.pas:7: internal compiler error: mudflap: this language is not supported
Please submit a full bug report,
with preprocessed source if appropriate.
See unsupported for instructions.

[P18:~/gpc/testgpc/adriaan] adriaan% gpc --rtl-abstract-sequences hello.pas
hello.pas: In main program:
hello.pas:9: error: unrecognizable insn:
(insn 58 0 0 (set (reg:SI 0 ax)
         (symbol_ref:SI ("*L4") [flags 0x2])) -1 (nil))
hello.pas:9: internal compiler error: in insn_default_length, at insn-attrtab.c:1374
Please submit a full bug report,
with preprocessed source if appropriate.
See unsupported for instructions.

[P18:~/gpc/testgpc/adriaan] adriaan% gpc -imultilib hello.pas
gpc1: warning: command line option "-imultilib" is valid for C/C++/ObjC/ObjC++ but not for Pascal
<built-in>:0: internal compiler error: in init_gpc_lex, at p/gpc-lex.c:245
Please submit a full bug report,
with preprocessed source if appropriate.
See unsupported for instructions.

Regards,

Adriaan van Os



































More information about the Gpc mailing list