[Bug rtl-optimization/115049] [14/15 Regression] Silent severe miscompilation around inline functions
lh_mouse at 126 dot com
gcc-bugzilla@gcc.gnu.org
Mon Jul 15 08:05:12 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115049
--- Comment #13 from LIU Hao <lh_mouse at 126 dot com> ---
(In reply to LIU Hao from comment #12)
> Created attachment 58662 [details]
> test patch
This fixes the issue for me on x86_64-w64-mingw32.
Note this is actually not target-specific; all targets that implement COMDAT
but not as weak symbols are affected. `decl_binds_to_current_def_p` already
contains a check for weak symbols, so the issue is invisible if COMDAT is
implemented as weak symbols, for example on Linux.
More information about the Gcc-bugs
mailing list