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]

How can I have a combination combination of debug build and compiler's optimization warnings


Hello, 

I am looking for a way to do the following with gcc:

compile my application with the -g flag _and_ no -O flags and still get  the 
warnings about uninitialized variables.

I know that gcc does the "data flow analysis"  only when optimization (-O) 
options are specified. Is there an option/new feature/workaround so that I 
can get a debug build of my application and the more sophisticated warnings 
available with the optimization build?

Thank you

Michalis Giannakidis


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