[fpc-devel] Typed addresses by default
Vincent Snijders
vsnijders at quicknet.nl
Thu Oct 5 15:35:06 CEST 2006
Jonas Maebe wrote:
>
> On 4 okt 2006, at 22:01, Florian Klaempfl wrote:
>
>>> Attached patch modifies compiler to enable typed addresses ({$T+}) for
>>> fpc and objfpc modes by default. It fixes the rtl and compiler to
>>> compile again. Most of these fixes are simple pointer to array vs.
>>> pointer to element of array changes, but some reveal ugly code IMHO
>>> ;-).
>>> Anyway, any opinions on whether it is useful to enforce typed addresses
>>> by default ?
>>
>>
>> For me, it is ok, to apply it in objfpc and fpc mode. T- enforces
>> sloppy programming which we don't want after all ;)
>
>
> Can someone fix the testsuite failures resulting from this?
>
Are there any testsuite failures with typeinfo. Lazarus crashes at
startup when accessing the typeinfo. It could be that our code is wrong
now, but maybe wrong typeinfo is generated.
rogram received signal SIGSEGV, Segmentation fault.
$0081c8cb in TYPINFO_GETPROPINFOS$PTYPEINFO$PPROPLIST ()
(gdb) bt
#0 $0081c8cb in TYPINFO_GETPROPINFOS$PTYPEINFO$PPROPLIST ()
#1 $006e1e2c in
PROPEDITS_TDUMMYCLASSFORPROPTYPES_$__CREATE$$TDUMMYCLASSFORPROPTYPES ()
#2 $006df891 in PROPEDITS_INITPROPEDITS ()
#3 $006deac7 in PROPEDITS_init ()
#4 $007ff822 in fpc_initializeunits ()
#5 $007f189e in main ()
Vincent
More information about the fpc-devel
mailing list