http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57523
schaiba at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |schaiba at gmail dot com --- Comment #1 from schaiba at gmail dot com --- I can confirm this with OpenSXCE 2013.05 and gcc 3.4.3 (Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/specs Configured with: /cosmicrescue/code__OpenSXCE/03__SFW/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++,f77,objc --enable-shared Thread model: posix gcc version 3.4.3 (csl-sol210-3_4-20050802) ). Indeed, eliminating -O2 works.