public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Avoid removing an if (false) statement and its corresponding branch
@ 2023-07-23 12:45 Julian Waters
  2023-07-23 14:14 ` Gabriel Ravier
  0 siblings, 1 reply; 5+ messages in thread
From: Julian Waters @ 2023-07-23 12:45 UTC (permalink / raw)
  To: gcc-help

[-- Attachment #1: Type: text/plain, Size: 226 bytes --]

Hi all,

Is there a way to stop gcc from nuking an if (false) statement and the
corresponding branch from the compiled code for debugging purposes?
Even turning off all optimizations doesn't achieve this

best regards,
Julian

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-07-25  5:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-23 12:45 Avoid removing an if (false) statement and its corresponding branch Julian Waters
2023-07-23 14:14 ` Gabriel Ravier
2023-07-23 14:27   ` Julian Waters
2023-07-23 16:53     ` David Brown
2023-07-25  5:52       ` Julian Waters

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).