This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: using '-g' with optimizations
- From: Andrew Haley <aph-gcc at littlepinkcloud dot COM>
- To: Jim Marshall <jim dot marshall at wbemsolutions dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 12 Jul 2007 19:50:53 +0100
- Subject: Re: using '-g' with optimizations
- References: <f75sqs$aio$1@sea.gmane.org>
Jim Marshall writes:
> I know this has been asked a million times, but...
>
> The GCC docs say you can use -g along with optimizations. However -g
> implies that certain optimizations are disabled (e.g. function
> inlining).
No, it doesn't. We inline regardless of -g.
> So I am curious as to what side affect adding -g along with -O2
> will have on the generated code (no inlined functions etc...)
Nothing.
Andrew.