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

Martin fpc at mfriebe.de
Tue Jun 8 17:06:00 CEST 2010


On 08/06/2010 15:47, Jonas Maebe wrote:
>
> 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.

I understand that fixing this in the compiler may have implications, 
needs tests and may end up to be a lot of work...

Is there a possibility / a patch, I could fix it on my installatuon => 
just in order to see, if it helps tracking down the other issue?

Martin




More information about the fpc-devel mailing list