[Bug c/105950] > O2 optimization causes runtime (SIGILL) during main initialization

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 14 15:36:22 GMT 2022


--- Comment #25 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to John Kanapes from comment #22)
> It took you 4 posts to explain me what to do.
> It took me 4 posts to understand what you were talking about.
> You should explain better.

You should read better. Comment 3 is perfectly clear.

"For UBSan, you can't just compile with -fsanitize=undefined, you need to link
with that flag as well."

(In reply to John Kanapes from comment #23)
> What do you do with the sources after the ticket?

They will stay attached here. If you don't want them to be public, you need to
reduce it to something smaller that still shows the bug (which you've said you
can't) or put them somewhere online and persuade somebody here to download them
and try to reproduce and reduce it for you.

More information about the Gcc-bugs mailing list