------- Comment #7 from ubizjak at gmail dot com 2008-09-11 17:57 ------- There is a runtime difference between -O1 and -O2:
g++ -O1 pr37096.cpp main.o ./a.out nz: 3 g++ -O2 pr37096.cpp main.o ./a.out nz: 3 98 Target: x86_64-unknown-linux-gnu gcc version 4.4.0 20080911 (experimental) [trunk revision 140293] (GCC) Probably target issue, I will look into it. -- ubizjak at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |ubizjak at gmail dot com |dot org | Status|WAITING |ASSIGNED Component|middle-end |target Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2008-09-11 17:57:56 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37096