[Bug lto/122430] Call to empty interposable function is optimized away with -flto -fPIC -fsemantic-interposition
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Oct 26 06:54:12 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122430
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
t.so.ltrans0.ltrans.128t.dse2: Deleted dead store: gimple_call <g, NULL>
>From t.so-t.c.056t.local-pure-const1:
```
Function is locally const.
Function found to be const: g/1
Function found to be nothrow: g
```
Which is fine But somehow that information is written out during wpa stage for
the partition of f and used.
More information about the Gcc-bugs
mailing list