* Should GCC emit the same code for compilation with '-g' and without '-g'
@ 2018-05-01 19:53 Chengnian Sun
2018-05-01 19:58 ` Jakub Jelinek
0 siblings, 1 reply; 2+ messages in thread
From: Chengnian Sun @ 2018-05-01 19:53 UTC (permalink / raw)
To: gcc
Hi,
Does gcc have a requirement about the impact of emitting debug info on the
generated code? Should the code be the same no matter whether '-g' is
specified?
Thank you.
--
Best Regards.
Chengnian
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Should GCC emit the same code for compilation with '-g' and without '-g'
2018-05-01 19:53 Should GCC emit the same code for compilation with '-g' and without '-g' Chengnian Sun
@ 2018-05-01 19:58 ` Jakub Jelinek
0 siblings, 0 replies; 2+ messages in thread
From: Jakub Jelinek @ 2018-05-01 19:58 UTC (permalink / raw)
To: Chengnian Sun; +Cc: gcc
On Tue, May 01, 2018 at 12:53:45PM -0700, Chengnian Sun wrote:
> Does gcc have a requirement about the impact of emitting debug info on the
> generated code? Should the code be the same no matter whether '-g' is
> specified?
Yes (except for selective scheduling, but that warns if you combine
-fselecting-scheduling{,2} together with -fvar-tracking-assignments
and disables the latter by default).
Jakub
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-01 19:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-01 19:53 Should GCC emit the same code for compilation with '-g' and without '-g' Chengnian Sun
2018-05-01 19:58 ` Jakub Jelinek
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).