public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/111243] New: The -Og option inlines functions, making for a poor debugging experience.
@ 2023-08-30 17:58 amohr at amohr dot org
  2023-08-31 10:46 ` [Bug middle-end/111243] " rguenth at gcc dot gnu.org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: amohr at amohr dot org @ 2023-08-30 17:58 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111243

            Bug ID: 111243
           Summary: The -Og option inlines functions, making for a poor
                    debugging experience.
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: amohr at amohr dot org
  Target Milestone: ---

The docs recommend using -Og for debug builds, but that option inlines
functions which makes single-stepping in debuggers difficult/impossible. 
Adding -fno-inline fixes it.

The docs for -Og say that it disables -finline-functions-called-once. Should
-Og also do -fno-inline?

Here's a small example showing the difference between plain '-Og' and '-Og
-fno-inline':

https://godbolt.org/z/evs73cPT1

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

end of thread, other threads:[~2023-09-16 23:24 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-30 17:58 [Bug c++/111243] New: The -Og option inlines functions, making for a poor debugging experience amohr at amohr dot org
2023-08-31 10:46 ` [Bug middle-end/111243] " rguenth at gcc dot gnu.org
2023-08-31 17:31 ` amohr at amohr dot org
2023-09-01  9:09 ` rguenth at gcc dot gnu.org
2023-09-01 15:43 ` xry111 at gcc dot gnu.org
2023-09-01 16:16 ` redi at gcc dot gnu.org
2023-09-01 16:27 ` redi at gcc dot gnu.org
2023-09-01 16:30 ` redi at gcc dot gnu.org
2023-09-01 16:48 ` amohr at amohr dot org
2023-09-01 16:56 ` xry111 at gcc dot gnu.org
2023-09-01 17:13 ` amohr at amohr dot org
2023-09-01 17:30 ` xry111 at gcc dot gnu.org
2023-09-12  7:10 ` rguenther at suse dot de
2023-09-12  7:29 ` jakub at gcc dot gnu.org
2023-09-12  9:35 ` egallager at gcc dot gnu.org
2023-09-16 23:24 ` amohr at amohr dot 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).