[fpc-devel] about bug 0016668 (-gt -O2)

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Jun 8 16:47:32 CEST 2010


On 08 Jun 2010, at 16:46, Martin wrote:

> On 08/06/2010 15:35, Martin wrote:
>>> It's caused by the broken x86 behaviour of "x shl 32 = x". It does  
>>> not affect in any way the correctness of code generated with -gt  
>>> though, except that some variables are indeed initialised with 0  
>>> instead of with the intended trashing value.
>>
> Also out of interest. Where does the shl happen? In the compiler?

Yes. On non-x86 platforms, the variables are trashed correctly.


Jonas



More information about the fpc-devel mailing list