[fpc-devel] probably incorrect debug-line-info generated by fpc 2.6.2 and trunk

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Nov 10 22:55:53 CET 2013


On 10 Nov 2013, at 22:42, Martin wrote:

> Why is the
> movl    %eax,-12(%ebp)
> generated at the start of i:=i+1
> 
> Why does a statement save an outdated value to memory?

Because the load back from memory that came right after it got removed by a peephole optimisation. Peephole optimisations are by definition local and have no clue about what happens next, and hence the store remains.


Jonas


More information about the fpc-devel mailing list