------- Comment #2 from rlogel at navtech dot aero 2010-01-07 16:49 ------- # Vaild Excutable g++ -v -save-temps -o shared_ptr_test.exc shared_ptr_test.cpp
# Invalid Excutable g++ -v -save-temps -O2 -o shared_ptr_test.exc shared_ptr_test.cpp GCC output: $ g++ -v -save-temps -O2 -o shared_ptr_test.exc shared_ptr_test.cpp Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux Thread model: posix gcc version 3.4.6 20060404 (Red Hat 3.4.6-9) /usr/libexec/gcc/i386-redhat-linux/3.4.6/cc1plus -E -quiet -v -D_GNU_SOURCE shared_ptr_test.cpp -O2 -o shared_ptr_test.ii ignoring nonexistent directory "/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../i386-redhat-linux/include" #include "..." search starts here: #include <...> search starts here: /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6 /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6/i386-redhat-linux /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../../include/c++/3.4.6/backward /usr/local/include /usr/lib/gcc/i386-redhat-linux/3.4.6/include /usr/include End of search list. /usr/libexec/gcc/i386-redhat-linux/3.4.6/cc1plus -fpreprocessed shared_ptr_test.ii -quiet -dumpbase shared_ptr_test.cpp -auxbase shared_ptr_test -O2 -version -o shared_ptr_test.s GNU C++ version 3.4.6 20060404 (Red Hat 3.4.6-9) (i386-redhat-linux) compiled by GNU C version 3.4.6 20060404 (Red Hat 3.4.6-9). GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 as -V -Qy -o shared_ptr_test.o shared_ptr_test.s GNU assembler version 2.15.92.0.2 (i386-redhat-linux) using BFD version 2.15.92.0.2 20040927 /usr/libexec/gcc/i386-redhat-linux/3.4.6/collect2 --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o shared_ptr_test.exc /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crt1.o /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crti.o /usr/lib/gcc/i386-redhat-linux/3.4.6/crtbegin.o -L/usr/lib/gcc/i386-redhat-linux/3.4.6 -L/usr/lib/gcc/i386-redhat-linux/3.4.6 -L/usr/lib/gcc/i386-redhat-linux/3.4.6/../../.. shared_ptr_test.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/i386-redhat-linux/3.4.6/crtend.o /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crtn.o -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42649