Recent

Author Topic: Q about subverting type compatibility  (Read 1103 times)

BlackDoomer

  • New member
  • *
  • Posts: 9
  • Dmitry D. Chernov
    • Doom 2D - One of the best 2D platformers with amazing netgame!
Re: Q about subverting type compatibility
« Reply #15 on: October 25, 2024, 02:28:22 pm »
Came across this topic accidentally.
It seems that somewhat recently I wrote a report about exactly same (or at least closely related) problem but regarding documentation:
https://gitlab.com/freepascal.org/fpc/documentation/-/issues/39386

I filed a bug report with all available documentation against trunk.

#40944
A direct link would be better: https://gitlab.com/freepascal.org/fpc/source/-/issues/40944

Thaddy

  • Hero Member
  • *****
  • Posts: 16193
  • Censorship about opinions does not belong here.
Re: Q about subverting type compatibility
« Reply #16 on: October 25, 2024, 02:33:31 pm »
It was clearly explained by the core team that it was constant propagation. In my view there is no reason, other than that constant propagation can be added to -O2 (the second lowest optimization level)
Even then I have my doubts, because this manifestation is rare. (and currently only correct in -O4)
It is a strange beast.
« Last Edit: October 25, 2024, 02:38:26 pm by Thaddy »
If I smell bad code it usually is bad code and that includes my own code.

 

TinyPortal © 2005-2018