All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Should configure --enable-debug add -Og to CFLAGS?
@ 2019-06-27 15:43 Markus Armbruster
  2019-06-27 16:01 ` Paolo Bonzini
  2019-06-27 16:02 ` Daniel P. Berrangé
  0 siblings, 2 replies; 4+ messages in thread
From: Markus Armbruster @ 2019-06-27 15:43 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Maydell, Daniel P. Berrangé, Paolo Bonzini

The fine manual advises:

'-O0'
     Reduce compilation time and make debugging produce the expected
     results.  This is the default.
[...]
'-Og'
     Optimize debugging experience.  '-Og' should be the optimization
     level of choice for the standard edit-compile-debug cycle, offering
     a reasonable level of optimization while maintaining fast
     compilation and a good debugging experience.  It is a better choice
     than '-O0' for producing debuggable code because some compiler
     passes that collect debug information are disabled at '-O0'.

Our configure --enable-debug effectively picks -O0.  Should it pick -Og
instead?


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

end of thread, other threads:[~2019-06-27 17:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-27 15:43 [Qemu-devel] Should configure --enable-debug add -Og to CFLAGS? Markus Armbruster
2019-06-27 16:01 ` Paolo Bonzini
2019-06-27 16:45   ` Markus Armbruster
2019-06-27 16:02 ` Daniel P. Berrangé

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.