DMD-0.160 regressions

Thomas Kuehne thomas-dloop at kuehne.cn
Thu Jun 8 07:42:16 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Walter Bright schrieb am 2006-06-07:
> Thomas Kuehne wrote:
>> 
>> 784 regressions between DMD-0.158 and DMD-0.160 were found,
>> however all of them are inline assembler tests that previously
>> failed to compile and now fail to run if compiled with "-fPIC".
>
> The tests rely on accessing static data from inline assembler. Accessing 
> static data with -fPIC requires special code to be generated, but with 
> inline assembler you have to add that code in manually. The compiler 
> won't do it automatically - after all, inline assembler means you 
> control the flame!
>
> So I don't believe it's a compiler bug.
>
> You can alter the inline assembler to pick the data off the stack 
> instead of static data, then it should work.

I never checked how DMD stores constant data ... will take some time to fix.
How about defining version=D_PIC if compiling with -fPIC, just like D_Coverage?

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFEiERX3w+/yD4P9tIRAqZPAJ9M9eHNcoKPrXQOQZok1+ddTg5UagCgiY9X
bQQ4mnUHf59qaSx1nS4XTZU=
=7FFE
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list