This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How can I have a combination combination of debug build and compiler's optimization warnings
- From: Michalis Giannakidis <mgiann at beta-cae dot gr>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 6 Jun 2006 17:13:53 +0300
- Subject: 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