Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2009-10

make all OPT="gtl"

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Vincent Snijders

Hi,

make all OPT="-gtl" in the fpc source fails.
/home/vincent/src/fpc/trunk/compiler/ppc1 -Ur -Ur -Xs -O2 -n -Fi../inc -Fi../i386 -Fi../unix -Fii386 -FE.
-FU/home/vincent/src/fpc/trunk/rtl/units/i386-linux -gtl -di386 -dRELEASE -Us -Sg system.pp
Fatal: Compilation aborted
An unhandled exception occurred at $08139C93 :
EAccessViolation : Access violation
$08139C93 DO_PROC_CALL, line 913 of pexpr.pas
$0813D6C6 FACTOR_READ_ID, line 1587 of pexpr.pas $0813A9F9 FACTOR, line 2209 of pexpr.pas
$0813B51B FACTOR, line 2482 of pexpr.pas
$0813D913 SUB_EXPR, line 2654 of pexpr.pas
$0813D924 SUB_EXPR, line 2656 of pexpr.pas
$0813D924 SUB_EXPR, line 2656 of pexpr.pas
$0813D924 SUB_EXPR, line 2656 of pexpr.pas
$0813DD76 COMP_EXPR, line 2744 of pexpr.pas
$0814AA40 READ_TYPED_CONST_DATA, line 1358 of ptconst.pas $081309B1 CONST_DEC, line 244 of pdecl.pas
$0812C610 READ_INTERFACE_DECLARATIONS, line 1779 of psub.pas $0817405E PROC_UNIT, line 1043 of pmodules.pas
$081608CD COMPILE, line 394 of parser.pas
$08067C68 COMPILE, line 246 of compiler.pas
$08048236 main, line 223 of pp.pas

Should I create a bug report or is using -gt for the compiler not supported.

Vincent

Reply by email

Jonas Maebe
to Vincent Snijders
Vincent Snijders wrote
Should I create a bug report or is using -gt for the compiler not supported.

It should work.

There is one problem with compiling the RTL with -gt if you assign a shortstring to itself (e.g., by passing a global variable variable as var/const-parameter to a function, which then assigns this var parameter to that global variable) on targets that don't use an assembler helper for this. And the compiler does this somewhere while parsing the command line options.

However, I assume this is on i386 and that one does use an assembler helper. Furthermore, that problem only causes the compiler not to compile anything, rather than crash during parsing.

Jonas

Reply by email