public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug target/85927] ud2 instruction generated starting with gcc 8 [not found] <bug-85927-4@http.gcc.gnu.org/bugzilla/> @ 2021-12-31 10:07 ` pskocik at gmail dot com 2021-12-31 10:25 ` jakub at gcc dot gnu.org 1 sibling, 0 replies; 2+ messages in thread From: pskocik at gmail dot com @ 2021-12-31 10:07 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85927 Petr Skocik <pskocik at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pskocik at gmail dot com --- Comment #5 from Petr Skocik <pskocik at gmail dot com> --- I think it'd be more welcome if gcc just put nothing there like clang does. ^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug target/85927] ud2 instruction generated starting with gcc 8 [not found] <bug-85927-4@http.gcc.gnu.org/bugzilla/> 2021-12-31 10:07 ` [Bug target/85927] ud2 instruction generated starting with gcc 8 pskocik at gmail dot com @ 2021-12-31 10:25 ` jakub at gcc dot gnu.org 1 sibling, 0 replies; 2+ messages in thread From: jakub at gcc dot gnu.org @ 2021-12-31 10:25 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85927 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org, | |uros at gcc dot gnu.org --- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The ud2 is there since naked has been implemented for x86 in PR25967. It is true it is a kind of debugging aid, so perhaps more suitable for sanitization or if we add some option to decide preferred behavior on e.g. __builtin_unreachable or for detected UB in the code (whether to use __builtin_unreachable with its current behavior, just assume it doesn't happen and don't emit anything in there, or whether to act as __builtin_trap etc.). But without it e.g. the reporter wouldn't know so easily the function is invalid and won't work correctly. ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-31 10:25 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-85927-4@http.gcc.gnu.org/bugzilla/> 2021-12-31 10:07 ` [Bug target/85927] ud2 instruction generated starting with gcc 8 pskocik at gmail dot com 2021-12-31 10:25 ` jakub at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).