Re: [fpc-devel] Attn: Sven Can not use "specialize" to resolve forward declaration

2021-12-08 Thread Sven Barth via fpc-devel
Martin Frb via fpc-devel schrieb am Do., 9. Dez. 2021, 00:15: > https://gitlab.com/freepascal.org/fpc/source/-/issues/39459 > You wrote > >> No, this can not and this will never work. When a generic parameter has > a constraint that constraint *must* be adhered to and a forward > declaration is *

[fpc-devel] Optimisation challenge!

2021-12-08 Thread J. Gareth Moreton via fpc-devel
Hi everyone, I've noticed a bit of a deep potential optimisation for faster code:     jne     .Lj1806     movb    $13,-40(%rbp)     cmpq    $0,-32(%rbp)     je      .Lj1798     ... .Lj1806:     movb    $1,-40(%rbp) .Lj1798:     cmpb    $1,-40(%rbp)     jne     .Lj1812 If you analyse the jumps a

[fpc-devel] Attn: Sven Can not use "specialize" to resolve forward declaration

2021-12-08 Thread Martin Frb via fpc-devel
https://gitlab.com/freepascal.org/fpc/source/-/issues/39459 You wrote >> No, this can not and this will never work. When a generic parameter has a constraint that constraint /must/ be adhered to and a forward declaration is /not/ a valid type for such a constraint (except for *class* / |TObject