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

Michalis Giannakidis mgiann@beta-cae.gr
Tue Jun 6 14:11:00 GMT 2006


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



More information about the Gcc-help mailing list