------- Comment #4 from chat95 at mac dot com 2007-02-05 02:39 ------- it seems amd64 only. with i386-portbld-freebsd6.2, % g++42 -v Using built-in specs. Target: i386-portbld-freebsd6.2 Configured with: ./..//gcc-4.2-20070110/configure --disable-nls --with-system-zlib --with-libiconv-prefix=/usr/local --with-gmp=/usr/local --program-suffix=42 --libdir=/usr/local/lib/gcc-4.2.0 --with-gxx-include-dir=/usr/local/lib/gcc-4.2.0/include/c++/ --infodir=/usr/local/info/gcc42 --disable-rpath --prefix=/usr/local i386-portbld-freebsd6.2 Thread model: posix gcc version 4.2.0 20070110 (prerelease)
% g++42 -O -fno-strict-aliasing -pipe -o gendoc gendoc.cc ; ldd ./gendoc ./gendoc: libstdc++.so.6 => /usr/local/lib/gcc-4.2.0/libstdc++.so.6 (0x280ed000) libm.so.4 => /lib/libm.so.4 (0x281ca000) libgcc_s.so.1 => /usr/local/lib/gcc-4.2.0/libgcc_s.so.1 (0x281e0000) libc.so.6 => /lib/libc.so.6 (0x281ea000) % ./gendoc ... works. % g++42 -pipe -o gendoc gendoc.cc ; ldd ./gendoc ./gendoc: libstdc++.so.6 => /usr/local/lib/gcc-4.2.0/libstdc++.so.6 (0x280ef000) libm.so.4 => /lib/libm.so.4 (0x281cc000) libgcc_s.so.1 => /usr/local/lib/gcc-4.2.0/libgcc_s.so.1 (0x281e2000) libc.so.6 => /lib/libc.so.6 (0x281ec000) % ./gendoc ... works. it seems it DOES only happens to amd64... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30423