Created
August 22, 2011 13:20
-
-
Save iwadon/1162352 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
int main() | |
{ | |
try { | |
throw "hello"; | |
} catch (const char *e) { | |
std::cout << e << std::endl; | |
} | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imac:~/src/cxx/gcc46% g++-4.6.1 a.cpp -o a -Wall -Wextra -O2 -g -Wl,-dead_strip -v | |
組み込み spec を使用しています。 | |
COLLECT_GCC=g++-4.6.1 | |
COLLECT_LTO_WRAPPER=/Users/don/local/stow/gcc-4.6.1/libexec/gcc/x86_64-apple-darwin11.0.0/4.6.1/lto-wrapper | |
ターゲット: x86_64-apple-darwin11.0.0 | |
configure 設定: ../configure --prefix=/Users/don/local/stow/gcc-4.6.1 --program-suffix=-4.6.1 --enable-bulid-with-cxx --enable-lto --enable-objc-gc --with-gmp=/Users/don/local --enable-languages=c,c++ CC=gcc-4.2 CXX=g++-4.2 CPP=cpp-4.2 LD=ld | |
スレッドモデル: posix | |
gcc バージョン 4.6.1 (GCC) | |
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.7.1' '-o' 'a' '-Wall' '-Wextra' '-O2' '-g' '-v' '-shared-libgcc' '-mtune=core2' | |
/Users/don/local/stow/gcc-4.6.1/libexec/gcc/x86_64-apple-darwin11.0.0/4.6.1/cc1plus -quiet -v -D__DYNAMIC__ a.cpp -fPIC -feliminate-unused-debug-symbols -quiet -dumpbase a.cpp -mmacosx-version-min=10.7.1 -mtune=core2 -auxbase a -g -O2 -Wall -Wextra -version -o /tmp/ccoGaETl.s | |
GNU C++ (GCC) version 4.6.1 (x86_64-apple-darwin11.0.0) | |
compiled by GNU C version 4.6.1, GMP version 5.0.2, MPFR version 3.0.1-p4, MPC version 0.9 | |
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 | |
存在しないディレクトリ "/Users/don/local/stow/gcc-4.6.1/lib/gcc/x86_64-apple-darwin11.0.0/4.6.1/../../../../x86_64-apple-darwin11.0.0/include" を無視します | |
#include "..." の探索はここから始まります: | |
#include <...> の探索はここから始まります: | |
/Users/don/local/stow/gcc-4.6.1/lib/gcc/x86_64-apple-darwin11.0.0/4.6.1/../../../../include/c++/4.6.1 | |
/Users/don/local/stow/gcc-4.6.1/lib/gcc/x86_64-apple-darwin11.0.0/4.6.1/../../../../include/c++/4.6.1/x86_64-apple-darwin11.0.0 | |
/Users/don/local/stow/gcc-4.6.1/lib/gcc/x86_64-apple-darwin11.0.0/4.6.1/../../../../include/c++/4.6.1/backward | |
/Users/don/local/stow/gcc-4.6.1/lib/gcc/x86_64-apple-darwin11.0.0/4.6.1/include | |
/usr/local/include | |
/Users/don/local/stow/gcc-4.6.1/include | |
/Users/don/local/stow/gcc-4.6.1/lib/gcc/x86_64-apple-darwin11.0.0/4.6.1/include-fixed | |
/usr/include | |
/System/Library/Frameworks | |
/Library/Frameworks | |
探索リストの終わりです。 | |
GNU C++ (GCC) version 4.6.1 (x86_64-apple-darwin11.0.0) | |
compiled by GNU C version 4.6.1, GMP version 5.0.2, MPFR version 3.0.1-p4, MPC version 0.9 | |
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 | |
Compiler executable checksum: 858110fc36da1b3bcd3a831cf5cf8e4a | |
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.7.1' '-o' 'a' '-Wall' '-Wextra' '-O2' '-g' '-v' '-shared-libgcc' '-mtune=core2' | |
as -arch x86_64 -force_cpusubtype_ALL -o /tmp/ccUwYpQv.o /tmp/ccoGaETl.s | |
COMPILER_PATH=/Users/don/local/stow/gcc-4.6.1/libexec/gcc/x86_64-apple-darwin11.0.0/4.6.1/:/Users/don/local/stow/gcc-4.6.1/libexec/gcc/x86_64-apple-darwin11.0.0/4.6.1/:/Users/don/local/stow/gcc-4.6.1/libexec/gcc/x86_64-apple-darwin11.0.0/:/Users/don/local/stow/gcc-4.6.1/lib/gcc/x86_64-apple-darwin11.0.0/4.6.1/:/Users/don/local/stow/gcc-4.6.1/lib/gcc/x86_64-apple-darwin11.0.0/ | |
LIBRARY_PATH=/Users/don/local/stow/gcc-4.6.1/lib/gcc/x86_64-apple-darwin11.0.0/4.6.1/:/Users/don/local/stow/gcc-4.6.1/lib/gcc/x86_64-apple-darwin11.0.0/4.6.1/../../../:/usr/lib/ | |
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.7.1' '-o' 'a' '-Wall' '-Wextra' '-O2' '-g' '-v' '-shared-libgcc' '-mtune=core2' | |
/Users/don/local/stow/gcc-4.6.1/libexec/gcc/x86_64-apple-darwin11.0.0/4.6.1/collect2 -dynamic -arch x86_64 -macosx_version_min 10.7.1 -weak_reference_mismatches non-weak -o a -lcrt1.10.5.o -L/Users/don/local/stow/gcc-4.6.1/lib/gcc/x86_64-apple-darwin11.0.0/4.6.1 -L/Users/don/local/stow/gcc-4.6.1/lib/gcc/x86_64-apple-darwin11.0.0/4.6.1/../../.. /tmp/ccUwYpQv.o -dead_strip -lstdc++ -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lSystem -v -idsym -dsym | |
collect2 バージョン 4.6.1 (x86_64 Darwin) | |
/usr/bin/ld -dynamic -arch x86_64 -macosx_version_min 10.7.1 -weak_reference_mismatches non-weak -o a -lcrt1.10.5.o -L/Users/don/local/stow/gcc-4.6.1/lib/gcc/x86_64-apple-darwin11.0.0/4.6.1 -L/Users/don/local/stow/gcc-4.6.1/lib/gcc/x86_64-apple-darwin11.0.0/4.6.1/../../.. /tmp/ccUwYpQv.o -dead_strip -lstdc++ -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lSystem -v | |
@(#)PROGRAM:ld PROJECT:ld64-126.3.2 | |
Library search paths: | |
/Users/don/local/stow/gcc-4.6.1/lib/gcc/x86_64-apple-darwin11.0.0/4.6.1 | |
/Users/don/local/stow/gcc-4.6.1/lib | |
/usr/lib | |
/usr/local/lib | |
Framework search paths: | |
/Library/Frameworks/ | |
/System/Library/Frameworks/ | |
dsymutil a | |
imac:~/src/cxx/gcc46% ./a | |
hello |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment