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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux