-g flag does not imply -O0 as stated

-g flag does not imply -O0 as stated

Compile a program (maybe it needs to be large?) with the -g flag, and about 90% of variables are returned as optimized away when you try to view them from within idb. Compile that same program with both -g and -O0 set, and you can view all variables. This is contrary to the release notes stating that -O0 is implied when using -g.

Thought I'd pass that along in case anyone was having these problems. Oh, and it's ifort v8.1.019.

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.