diff options
Diffstat (limited to 'misc/config/cc')
-rw-r--r-- | misc/config/cc/bcc | 36 | ||||
-rw-r--r-- | misc/config/cc/compaq | 35 | ||||
-rw-r--r-- | misc/config/cc/ekopath | 47 | ||||
-rw-r--r-- | misc/config/cc/gcc | 118 | ||||
-rw-r--r-- | misc/config/cc/hpcc | 37 | ||||
-rw-r--r-- | misc/config/cc/icc | 39 | ||||
-rw-r--r-- | misc/config/cc/kai | 46 | ||||
-rw-r--r-- | misc/config/cc/mipspro | 48 | ||||
-rw-r--r-- | misc/config/cc/msvc | 36 | ||||
-rw-r--r-- | misc/config/cc/pgi | 37 | ||||
-rw-r--r-- | misc/config/cc/sgipro64 | 35 | ||||
-rw-r--r-- | misc/config/cc/sunwspro | 53 |
12 files changed, 567 insertions, 0 deletions
diff --git a/misc/config/cc/bcc b/misc/config/cc/bcc new file mode 100644 index 000000000..f6d687c32 --- /dev/null +++ b/misc/config/cc/bcc @@ -0,0 +1,36 @@ +realname "Borland C++" + +binary_name "bcc32" + +compile_option "-c" +output_to_option "-o" +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +lib_opt_flags "-O2" +check_opt_flags "-O2" +debug_flags "" +no_debug_flags "" +lang_flags "-tWR -tWM -tWC +warning_flags "-w" + +ar_command "tlib /C /P256" + +makefile_style nmake + +<mach_opt> +i486 -> "/G4" +i586 -> "/G5" +i686 -> "/G6" +athlon -> "/G6" +pentium4 -> "/G6" +</mach_opt> + +<arch> +ia32 +</arch> + +<os> +windows +</os> diff --git a/misc/config/cc/compaq b/misc/config/cc/compaq new file mode 100644 index 000000000..3cfa5a687 --- /dev/null +++ b/misc/config/cc/compaq @@ -0,0 +1,35 @@ +realname "Compaq C++" + +binary_name "cxx" + +compile_option "-c" +output_to_option "-o" +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +# -O3 and up seem to be unhappy with Botan +lib_opt_flags "-O2" +check_opt_flags "-O2" +debug_flags "-g" +no_debug_flags "" +lang_flags "-std ansi -D__USE_STD_IOSTREAM" + +makefile_style unix + +<so_link_flags> +default -> "$(CXX) -shared -soname $(SONAME)" +</so_link_flags> + +<mach_opt> +alpha -> "-arch=SUBMODEL" alpha- +</mach_opt> + +<arch> +alpha +</arch> + +<os> +tru64 +linux +</os> diff --git a/misc/config/cc/ekopath b/misc/config/cc/ekopath new file mode 100644 index 000000000..b56b040df --- /dev/null +++ b/misc/config/cc/ekopath @@ -0,0 +1,47 @@ +realname "PathScale EKOPath C++" + +binary_name "pathCC" + +compile_option "-c" +output_to_option "-o" +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +lib_opt_flags "-O3 -OPT:Ofast:alias=disjoint" +check_opt_flags "-O2" +lang_flags "-D_REENTRANT -ansi -Wno-long-long" +warning_flags "-W -Wall" + +so_obj_flags "-fPIC" +debug_flags "-g" + +makefile_style unix + +<so_link_flags> +default -> "$(CXX) -shared -fPIC -Wl,-soname,$(SONAME)" +</so_link_flags> + +<mach_opt> +i386 -> "-mcpu=anyx86" +athlon -> "-mcpu=athlon" +opteron -> "-mcpu=opteron" +em64t -> "-mcpu=em64t" +athlon64 -> "-mcpu=athlon64" +pentium4 -> "-mcpu=pentium4" + +# Reasonable default +amd64 -> "-mcpu=athlon64" +</mach_opt> + +#<mach_abi_linking> +#</mach_abi_linking> + +<os> +linux +</os> + +<arch> +ia32 +amd64 +</arch> diff --git a/misc/config/cc/gcc b/misc/config/cc/gcc new file mode 100644 index 000000000..4514a8c6c --- /dev/null +++ b/misc/config/cc/gcc @@ -0,0 +1,118 @@ +realname "GNU C++" + +binary_name "g++" + +compile_option "-c" +output_to_option "-o" +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +lib_opt_flags "-O2 -finline-functions" +check_opt_flags "-O2" +lang_flags "-D_REENTRANT -ansi -Wno-long-long" +warning_flags "-W -Wall" + +so_obj_flags "-fPIC" +debug_flags "-g" + +makefile_style unix + +<so_link_flags> +# The default works for GNU ld and several other Unix linkers +default -> "$(CXX) -shared -fPIC -Wl,-soname,$(SONAME)" + +# AIX doesn't seem to have soname support (weird...) +aix -> "$(CXX) -shared -fPIC" + +darwin -> "$(CXX) -dynamiclib -fPIC -install_name $(SONAME)" +hpux -> "$(CXX) -shared -fPIC -Wl,+h,$(SONAME)" +solaris -> "$(CXX) -shared -fPIC -Wl,-h,$(SONAME)" +# Gotta use ld directly on BeOS, their GCC is busted +beos -> "ld -shared -h $(SONAME)" +</so_link_flags> + +# Using -momit-leaf-frame-pointer would be a huge win (on x86 anyway, why isn't +# it implemented elsewhere?), but it was added in 3.0 and the current mandate +# is to continue to support 2.95.x, so we don't use it (yet). +<mach_opt> +# Specializations first (they don't need to be, just clearer) +i386 -> "-mcpu=i686" +r10000 -> "-mips4" +alpha-ev67 -> "-mcpu=ev6" # FIXME: GCC 3.1 and on has -march=ev67 +alpha-ev68 -> "-mcpu=ev6" +alpha-ev7 -> "-mcpu=ev6" +ppc601 -> "-mpowerpc -mcpu=601" +sparc64-ultra3 -> "-mcpu=v9 -mtune=ultrasparc3" + +# Default family options (SUBMODEL is substitued with the real submodel) +# Anything after the quotes is what should be *removed* from the submodel name +# before it's put into SUBMODEL. +alpha -> "-mcpu=SUBMODEL" alpha- +amd64 -> "" +arm -> "-mcpu=SUBMODEL" +ia32 -> "-march=SUBMODEL" +hppa -> "-march=SUBMODEL" hppa +m68k -> "-mSUBMODEL" +sh -> "-mSUBMODEL" sh +sparc32 -> "-mcpu=SUBMODEL -Wa,-xarch=v8plus" sparc32- +sparc64 -> "-mcpu=v9 -mtune=ultrasparc" +mips32 -> "-mips1 -mcpu=SUBMODEL" mips32- +mips64 -> "-mips3 -mcpu=SUBMODEL" mips64- +ppc -> "-mcpu=SUBMODEL" ppc +ppc64 -> "-mcpu=SUBMODEL" ppc +</mach_opt> + +# Note that the 'linking' bit means "use this for both compiling *and* linking" +<mach_abi_linking> +amd64 -> "-m64" +mips32 -> "-mabi=n32" +mips64 -> "-mabi=64" +s390 -> "-m31" +s390x -> "-m64" +sparc32 -> "-m32 -mno-app-regs" +sparc64 -> "-m64 -mno-app-regs" +ppc64 -> "-m64" + +# This should probably be used on most/all targets, but the docs are incomplete +openbsd -> "-pthread" +freebsd -> "-pthread" +netbsd -> "-pthread" +qnx -> "-fexceptions" +</mach_abi_linking> + +<os> +aix +beos +cygwin +darwin +freebsd +hpux +irix +linux +netbsd +openbsd +qnx +solaris +tru64 +windows +</os> + +<arch> +alpha +amd64 +arm +hppa +ia32 +ia64 +m68k +mips32 +mips64 +ppc +ppc64 +s390 +s390x +sh +sparc32 +sparc64 +</arch> diff --git a/misc/config/cc/hpcc b/misc/config/cc/hpcc new file mode 100644 index 000000000..73130b7fa --- /dev/null +++ b/misc/config/cc/hpcc @@ -0,0 +1,37 @@ +realname "HP-UX C++" + +binary_name "aCC" + +compile_option "-c" +output_to_option "-o" +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +lib_opt_flags "+O2" +check_opt_flags "+O2" +debug_flags "-g" +no_debug_flags "" +lang_flags "-AA -ext +eh -z" +warning_flags "" # +w +so_obj_flags "+Z" + +makefile_style unix + +<mach_abi_linking> +hppa1.0 -> "+DAportable" +hppa1.1 -> "+DA1.1" +hppa2.0 -> "+DA2.0W" +</mach_abi_linking> + +<so_link_flags> +default -> "$(CXX) +Z -b -Wl,+h,$(SONAME)" # Documented in cc(1), but not CC(1) (?) +</so_link_flags> + +<arch> +hppa +</arch> + +<os> +hpux +</os> diff --git a/misc/config/cc/icc b/misc/config/cc/icc new file mode 100644 index 000000000..67577a0e8 --- /dev/null +++ b/misc/config/cc/icc @@ -0,0 +1,39 @@ +realname "Intel C++" + +binary_name "icc" + +compile_option "-c" +output_to_option "-o" +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +lib_opt_flags "-O3 -ip -unroll" +check_opt_flags "-O2" +debug_flags "-g" +no_debug_flags "" +lang_flags "" +warning_flags "-w1" +so_obj_flags "-KPIC" + +makefile_style unix + +<mach_opt> +i586 -> "-tpp5" +i686 -> "-tpp6 -xiM" +athlon -> "-tpp6 -xiM" +pentium4 -> "-tpp7 -xiMW" +</mach_opt> + +<so_link_flags> +default -> "$(CXX) -KPIC -shared" +</so_link_flags> + +<arch> +ia32 +ia64 +</arch> + +<os> +linux +</os> diff --git a/misc/config/cc/kai b/misc/config/cc/kai new file mode 100644 index 000000000..da668894b --- /dev/null +++ b/misc/config/cc/kai @@ -0,0 +1,46 @@ +realname "KAI C++" + +binary_name "KCC" + +compile_option "-c" +output_to_option "-o" +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +ar_command "KCC -o" + +lib_opt_flags "+K3 --inline_auto_space_time=65 --abstract_pointer" +check_opt_flags "+K3" +lang_flags "-D__KAI_STRICT" +debug_flags "-g" +no_debug_flags "" + +makefile_style unix + +<so_link_flags> +default -> "$(CXX) --soname $(SONAME)" +</so_link_flags> + +<mach_abi_linking> +all -> "--one_per" +</mach_abi_linking> + +<arch> +alpha +hppa +ia32 +mips32 +mips64 +sparc32 +sparc64 +</arch> + +<os> +hpux +irix +linux +solaris +tru64 +</os> + diff --git a/misc/config/cc/mipspro b/misc/config/cc/mipspro new file mode 100644 index 000000000..82dbb9ce1 --- /dev/null +++ b/misc/config/cc/mipspro @@ -0,0 +1,48 @@ +realname "SGI MIPSPro C++" + +binary_name "CC" + +compile_option "-c" +output_to_option "-o" +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +lib_opt_flags "-O3 -OPT:alias=TYPED" +check_opt_flags "-O3 -OPT:alias=TYPED" +debug_flags "-g3" +no_debug_flags "" +so_obj_flags "-KPIC" +lang_flags "-ansi -LANG:ansi-for-init-scope=ON" +# Disabled, because, while my code is fine, it warns about a lot of it's own +# headers <g> +#warning_flags "-fullwarn" + +makefile_style unix + +<so_link_flags> +default -> "$(CXX) -shared -Wl,-soname,$(SONAME)" +</so_link_flags> + +<mach_opt> +mips32 -> "-mips1" +mips64 -> "-mips3" + +mips64-r5000 -> "-mips4 -r5000" +mips64-r8000 -> "-mips4 -r8000" +mips64-r10000 -> "-mips4 -r10000" +</mach_opt> + +<mach_abi_linking> +mips32 -> "-n32" +mips64 -> "-64" +</mach_abi_linking> + +<arch> +mips32 +mips64 +</arch> + +<os> +irix +</os> diff --git a/misc/config/cc/msvc b/misc/config/cc/msvc new file mode 100644 index 000000000..d5dd6ce06 --- /dev/null +++ b/misc/config/cc/msvc @@ -0,0 +1,36 @@ +realname "Visual C++ 2000/2003" + +binary_name "cl /nologo" + +compile_option "/c" +output_to_option "/Fo" +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +lib_opt_flags "/O2 /Ob2" +check_opt_flags "/O2" +debug_flags "" +no_debug_flags "" +lang_flags "/EHsc /GR /D_CONSOLE" +warning_flags "" + +ar_command "link /lib" + +makefile_style nmake + +<mach_opt> +i486 -> "/G4" +i586 -> "/G5" +i686 -> "/G6" +athlon -> "/G6" +pentium4 -> "/G6" +</mach_opt> + +<arch> +ia32 +</arch> + +<os> +windows +</os> diff --git a/misc/config/cc/pgi b/misc/config/cc/pgi new file mode 100644 index 000000000..72799c4f9 --- /dev/null +++ b/misc/config/cc/pgi @@ -0,0 +1,37 @@ +realname "Portland Group C++" + +binary_name "pgCC" + +compile_option "-c" +output_to_option "-o" +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +lib_opt_flags "-fast -Minline" +check_opt_flags "-fast" +so_obj_flags "-fPIC" + +makefile_style unix + +<so_link_flags> +linux -> "$(CXX) -shared -fPIC -Wl,-soname,$(SONAME)" +solaris -> "$(CXX) -G -fPIC -Wl,-h,$(SONAME)" +</so_link_flags> + +<mach_opt> +i586 -> "-tp p5" +i686 -> "-tp p6" +athlon -> "-tp k7" +pentium4 -> "-tp p6" +ia32 -> "-tp px" +</mach_opt> + +<arch> +ia32 +</arch> + +<os> +linux +solaris +</os> diff --git a/misc/config/cc/sgipro64 b/misc/config/cc/sgipro64 new file mode 100644 index 000000000..aa09ebf02 --- /dev/null +++ b/misc/config/cc/sgipro64 @@ -0,0 +1,35 @@ +realname "SGI Pro64" + +binary_name "sgiCC" + +compile_option "-c" +output_to_option "-o" +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +lib_opt_flags "-O3 -OPT:alias=TYPED" +check_opt_flags "-O3 -OPT:alias=TYPED" +debug_flags "-g3" +no_debug_flags "" +so_obj_flags "-KPIC" +lang_flags "-ansi -LANG:ansi-for-init-scope=ON" +warning_flags "-Wall -W" + +makefile_style unix + +<so_link_flags> +default -> "$(CXX) -shared -Wl,-soname,$(SONAME)" +</so_link_flags> + +<mach_opt> + +</mach_opt> + +<arch> +ia64 +</arch> + +<os> +linux +</os> diff --git a/misc/config/cc/sunwspro b/misc/config/cc/sunwspro new file mode 100644 index 000000000..a8b6a0563 --- /dev/null +++ b/misc/config/cc/sunwspro @@ -0,0 +1,53 @@ +realname "Sun Workshop Pro C++" + +binary_name "CC" + +compile_option "-c" +output_to_option "-o" +add_include_dir_option "-I" +add_lib_dir_option "-L" +add_lib_option "-l" + +# The compiler supports up to -xO5, but anything higher than -xO2 causes +# incorrect results, infinite loops, other badness. :( +lib_opt_flags "-xO2" +check_opt_flags "-xO2" +debug_flags "-g" +no_debug_flags "" +so_obj_flags "-KPIC" +warning_flags "+w" +lang_flags "+p -D__EXTENSIONS__" + +makefile_style unix + +<so_link_flags> +default -> "$(CXX) -G -h$(SONAME)" +</so_link_flags> + +<mach_opt> +i386 -> "-xtarget=486" +i486 -> "-xtarget=486" +i586 -> "-xtarget=pentium" +i686 -> "-xtarget=pentium_pro" +pentium4 -> "-xtarget=pentium_pro" +k6 -> "-xtarget=pentium" + +sparc32-v9 -> "-xchip=ultra -xarch=v8" + +sparc32 -> "-xchip=ultra -xarch=SUBMODEL" sparc32- +sparc64 -> "-xchip=SUBMODEL" sparc64- +</mach_opt> + +<mach_abi_linking> +sparc64 -> "-xarch=v9" +</mach_abi_linking> + +<arch> +ia32 +sparc32 +sparc64 +</arch> + +<os> +solaris +</os> |