compile with gcc option -O0 or -O

Ian Lance Taylor iant@google.com
Fri Sep 16 05:41:00 GMT 2011


zou wonder <wonder.zou@gmail.com> writes:

> but one weird problem is that the following codes compiled with option -O0

You need to show us a small complete self-contained example.

Normally a program which works at -O0 and fails at -O1 has an
uninitialized variable somewhere.

Ian



More information about the Gcc-help mailing list