This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: using '-g' with optimizations


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]