From 288a3ef85b7c49f6578d378068e4ad364b79c78d Mon Sep 17 00:00:00 2001 From: lloyd Date: Thu, 13 Sep 2007 14:11:59 +0000 Subject: Add x86-64 to the list of Darwin/OS X platforms --- misc/config/os/darwin | 1 + 1 file changed, 1 insertion(+) (limited to 'misc/config') diff --git a/misc/config/os/darwin b/misc/config/os/darwin index d44e53d4b..248dc3d97 100644 --- a/misc/config/os/darwin +++ b/misc/config/os/darwin @@ -18,6 +18,7 @@ all ia32 +amd64 ppc ppc64 # g5! -- cgit v1.2.3 From 41d8f838660cf82a83453d6ecad397ad4836027c Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 19 Oct 2007 15:38:20 +0000 Subject: Mark x86 and x86-64 as supporting unaligned memory accesses --- misc/config/arch/amd64 | 1 + misc/config/arch/ia32 | 1 + 2 files changed, 2 insertions(+) (limited to 'misc/config') diff --git a/misc/config/arch/amd64 b/misc/config/arch/amd64 index 2291ef055..403ac47ec 100644 --- a/misc/config/arch/amd64 +++ b/misc/config/arch/amd64 @@ -3,6 +3,7 @@ realname "AMD64" default_submodel amd64 endian little +unaligned ok x86-64 diff --git a/misc/config/arch/ia32 b/misc/config/arch/ia32 index 1eec8cdbe..999015af3 100644 --- a/misc/config/arch/ia32 +++ b/misc/config/arch/ia32 @@ -3,6 +3,7 @@ realname "IA-32" default_submodel i586 endian little +unaligned ok x86 -- cgit v1.2.3 From d527b430d6f82fef220ff0461e196183ce343fc9 Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 19 Oct 2007 15:39:17 +0000 Subject: Mark both 32 and 64 bit PowerPC as big endian. Both have little endian variants but AFAIK they are quite rare or perhaps completely extinct now. --- misc/config/arch/ppc | 2 ++ misc/config/arch/ppc64 | 2 ++ 2 files changed, 4 insertions(+) (limited to 'misc/config') diff --git a/misc/config/arch/ppc b/misc/config/arch/ppc index 01cd92ad0..0f7ceac2b 100644 --- a/misc/config/arch/ppc +++ b/misc/config/arch/ppc @@ -1,5 +1,7 @@ realname "PowerPC" +endian big + # G3; probably a reasonable assumption these days default_submodel ppc740 diff --git a/misc/config/arch/ppc64 b/misc/config/arch/ppc64 index cbd74bb9f..2bb789949 100644 --- a/misc/config/arch/ppc64 +++ b/misc/config/arch/ppc64 @@ -1,5 +1,7 @@ realname "PowerPC 64" +endian big + default_submodel power4 -- cgit v1.2.3 From 28532b0a978a35267a1d31002e5585286639fa7f Mon Sep 17 00:00:00 2001 From: lloyd Date: Sat, 20 Oct 2007 21:05:10 +0000 Subject: Make mswin32 an alias for Windows so we will detect it by comparing it with Perl's $^O --- misc/config/os/windows | 1 + 1 file changed, 1 insertion(+) (limited to 'misc/config') diff --git a/misc/config/os/windows b/misc/config/os/windows index 44b2a102b..e1170d79c 100644 --- a/misc/config/os/windows +++ b/misc/config/os/windows @@ -27,4 +27,5 @@ ia64 # in theory win32 +mswin32 -- cgit v1.2.3 From 13d0f7d3423e5b924d857f615e9a9a0d5a1b1a7e Mon Sep 17 00:00:00 2001 From: lloyd Date: Sat, 20 Oct 2007 22:24:01 +0000 Subject: Intel C++ looks to prefer icpc instead of icc (in order to get the the runtime linked in). Also, -KPIC has been disfavored, replaced by -fPIC. --- misc/config/cc/icc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'misc/config') diff --git a/misc/config/cc/icc b/misc/config/cc/icc index ad9957e1d..777e013b7 100644 --- a/misc/config/cc/icc +++ b/misc/config/cc/icc @@ -1,6 +1,6 @@ realname "Intel C++" -binary_name "icc" +binary_name "icpc" compile_option "-c " output_to_option "-o " @@ -14,7 +14,7 @@ debug_flags "-g" no_debug_flags "" lang_flags "" warning_flags "-w1" -so_obj_flags "-KPIC" +so_obj_flags "-fPIC" makefile_style unix -- cgit v1.2.3 From b755090709d12653dcabbe3629ed407016f30716 Mon Sep 17 00:00:00 2001 From: lloyd Date: Sun, 21 Oct 2007 00:12:39 +0000 Subject: Use new options for ICC 10.0 --- misc/config/cc/icc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'misc/config') diff --git a/misc/config/cc/icc b/misc/config/cc/icc index 777e013b7..47c017130 100644 --- a/misc/config/cc/icc +++ b/misc/config/cc/icc @@ -11,7 +11,7 @@ add_lib_option "-l" lib_opt_flags "-O3 -ip -unroll" check_opt_flags "-O2" debug_flags "-g" -no_debug_flags "" +no_debug_flags "-fomit-frame-pointer" lang_flags "" warning_flags "-w1" so_obj_flags "-fPIC" @@ -19,14 +19,14 @@ so_obj_flags "-fPIC" makefile_style unix -i586 -> "-tpp5" -i686 -> "-tpp6 -xiM" -athlon -> "-tpp6 -xiM" -pentium4 -> "-tpp7 -xiMW" +i686 -> "-march=pentium3" +athlon -> "-march=pentium3" +pentium4 -> "-march=pentium4" +"core2duo" -> "-march=sse3" -default -> "$(CXX) -KPIC -shared" +default -> "$(CXX) -fPIC -shared" -- cgit v1.2.3 From b9f4051e2b6561c7af32b95872d337452da4ac2f Mon Sep 17 00:00:00 2001 From: lloyd Date: Sun, 21 Oct 2007 02:13:09 +0000 Subject: Remove the checks that the compiler specified works on the given OS/CPU. All too often this information gets out of of date, so trust the user is specifying something that makes sense if they use --cc, --cpu, or --os. --- configure.pl | 17 ++--------------- misc/config/cc/bcc | 8 -------- misc/config/cc/compaq | 9 --------- misc/config/cc/ekopath | 9 --------- misc/config/cc/gcc | 36 ------------------------------------ misc/config/cc/hpcc | 8 -------- misc/config/cc/icc | 12 +----------- misc/config/cc/kai | 19 ------------------- misc/config/cc/mipspro | 9 --------- misc/config/cc/msvc | 8 -------- misc/config/cc/pgi | 9 --------- misc/config/cc/sgipro64 | 8 -------- misc/config/cc/sunwspro | 10 ---------- misc/config/os/aix | 6 ------ misc/config/os/beos | 5 ----- misc/config/os/cygwin | 6 ------ misc/config/os/darwin | 7 ------- misc/config/os/freebsd | 9 --------- misc/config/os/hpux | 5 ----- misc/config/os/irix | 6 ------ misc/config/os/linux | 19 ------------------- misc/config/os/netbsd | 14 -------------- misc/config/os/openbsd | 10 ---------- misc/config/os/qnx | 8 -------- misc/config/os/solaris | 6 ------ misc/config/os/tru64 | 4 ---- misc/config/os/windows | 6 ------ 27 files changed, 3 insertions(+), 270 deletions(-) (limited to 'misc/config') diff --git a/configure.pl b/configure.pl index e13fdacd9..60f8193e4 100755 --- a/configure.pl +++ b/configure.pl @@ -326,17 +326,6 @@ sub choose_target { my ($arch, $submodel) = figure_out_arch($cpu); - croak(realname($os), " doesn't run on $arch ($submodel)") - unless($arch eq 'generic' or $os eq 'generic' or - in_array($arch, $OPERATING_SYSTEM{$os}{'arch'})); - - croak(realname($cc), " doesn't run on $arch ($submodel)") - unless($arch eq 'generic' or - (in_array($arch, $ccinfo{'arch'}))); - - croak(realname($cc), " doesn't run on ", realname($os)) - unless($os eq 'generic' or (in_array($os, $ccinfo{'os'}))); - # hacks if($cc eq 'gcc') { $ccinfo{'binary_name'} = 'c++' if($os eq 'darwin'); @@ -369,6 +358,8 @@ sub choose_target { } } + autoconfig("$cc $os $arch $submodel"); + add_to($config, { 'compiler' => $cc, 'os' => $os, @@ -1248,7 +1239,6 @@ sub get_os_info { 'install_cmd_data:install_cmd_exec'); read_list($_, $reader, 'aliases', list_push(\@{$info{'aliases'}})); - read_list($_, $reader, 'arch', list_push(\@{$info{'arch'}})); read_list($_, $reader, 'supports_shared', list_push(\@{$info{'supports_shared'}})); @@ -1277,9 +1267,6 @@ sub get_cc_info { match_any_of($_, \%info, 'unquoted', 'makefile_style'); - read_list($_, $reader, 'os', list_push(\@{$info{'os'}})); - read_list($_, $reader, 'arch', list_push(\@{$info{'arch'}})); - sub quoted_mapping { my $hashref = $_[0]; return sub { diff --git a/misc/config/cc/bcc b/misc/config/cc/bcc index 56206fb81..a3bf7cf6f 100644 --- a/misc/config/cc/bcc +++ b/misc/config/cc/bcc @@ -26,11 +26,3 @@ i686 -> "/G6" athlon -> "/G6" pentium4 -> "/G6" - - -ia32 - - - -windows - diff --git a/misc/config/cc/compaq b/misc/config/cc/compaq index 5710698a0..90811b039 100644 --- a/misc/config/cc/compaq +++ b/misc/config/cc/compaq @@ -24,12 +24,3 @@ default -> "$(CXX) -shared -soname $(SONAME)" alpha -> "-arch=SUBMODEL" alpha- - - -alpha - - - -tru64 -linux - diff --git a/misc/config/cc/ekopath b/misc/config/cc/ekopath index abf0b5b1c..f8bd8f2fe 100644 --- a/misc/config/cc/ekopath +++ b/misc/config/cc/ekopath @@ -35,12 +35,3 @@ core2duo -> "-mcpu=core" ia32 -> "-mcpu=anyx86" amd64 -> "-mcpu=athlon64" - - -linux - - - -ia32 -amd64 - diff --git a/misc/config/cc/gcc b/misc/config/cc/gcc index 1485037c2..2111f9940 100644 --- a/misc/config/cc/gcc +++ b/misc/config/cc/gcc @@ -81,39 +81,3 @@ freebsd -> "-pthread" netbsd -> "-pthread" qnx -> "-fexceptions -D_QNX_SOURCE" - - -aix -beos -cygwin -darwin -freebsd -hpux -irix -linux -netbsd -openbsd -qnx -solaris -tru64 -windows - - - -alpha -amd64 -arm -hppa -ia32 -ia64 -m68k -mips32 -mips64 -ppc -ppc64 -s390 -s390x -sh -sparc32 -sparc64 - diff --git a/misc/config/cc/hpcc b/misc/config/cc/hpcc index 7167be329..2048c5bb2 100644 --- a/misc/config/cc/hpcc +++ b/misc/config/cc/hpcc @@ -27,11 +27,3 @@ hppa2.0 -> "+DA2.0W" default -> "$(CXX) +Z -b -Wl,+h,$(SONAME)" # Documented in cc(1), but not CC(1) (?) - - -hppa - - - -hpux - diff --git a/misc/config/cc/icc b/misc/config/cc/icc index 47c017130..8effcfd3b 100644 --- a/misc/config/cc/icc +++ b/misc/config/cc/icc @@ -22,19 +22,9 @@ makefile_style unix i686 -> "-march=pentium3" athlon -> "-march=pentium3" pentium4 -> "-march=pentium4" -"core2duo" -> "-march=sse3" +core2duo -> "-march=sse3" default -> "$(CXX) -fPIC -shared" - - -amd64 -ia32 -ia64 - - - -linux - diff --git a/misc/config/cc/kai b/misc/config/cc/kai index 49afd1a3b..564ca2157 100644 --- a/misc/config/cc/kai +++ b/misc/config/cc/kai @@ -25,22 +25,3 @@ default -> "$(CXX) --soname $(SONAME)" all -> "--one_per" - - -alpha -hppa -ia32 -mips32 -mips64 -sparc32 -sparc64 - - - -hpux -irix -linux -solaris -tru64 - - diff --git a/misc/config/cc/mipspro b/misc/config/cc/mipspro index 2f01cf29e..8ceeb52b7 100644 --- a/misc/config/cc/mipspro +++ b/misc/config/cc/mipspro @@ -37,12 +37,3 @@ mips64-r10000 -> "-mips4 -r10000" mips32 -> "-n32" mips64 -> "-64" - - -mips32 -mips64 - - - -irix - diff --git a/misc/config/cc/msvc b/misc/config/cc/msvc index cb5b56b5d..63ee0a944 100644 --- a/misc/config/cc/msvc +++ b/misc/config/cc/msvc @@ -18,11 +18,3 @@ warning_flags "" ar_command "link /lib" makefile_style nmake - - -ia32 - - - -windows - diff --git a/misc/config/cc/pgi b/misc/config/cc/pgi index 9b5a24611..b67edbcc3 100644 --- a/misc/config/cc/pgi +++ b/misc/config/cc/pgi @@ -26,12 +26,3 @@ athlon -> "-tp k7" pentium4 -> "-tp p6" ia32 -> "-tp px" - - -ia32 - - - -linux -solaris - diff --git a/misc/config/cc/sgipro64 b/misc/config/cc/sgipro64 index b1429df94..5bb561834 100644 --- a/misc/config/cc/sgipro64 +++ b/misc/config/cc/sgipro64 @@ -25,11 +25,3 @@ default -> "$(CXX) -shared -Wl,-soname,$(SONAME)" - - -ia64 - - - -linux - diff --git a/misc/config/cc/sunwspro b/misc/config/cc/sunwspro index 179b06408..842df153f 100644 --- a/misc/config/cc/sunwspro +++ b/misc/config/cc/sunwspro @@ -41,13 +41,3 @@ sparc64 -> "-xchip=SUBMODEL" sparc64- sparc64 -> "-xarch=v9" - - -ia32 -sparc32 -sparc64 - - - -solaris - diff --git a/misc/config/os/aix b/misc/config/os/aix index fd7330f18..cec818580 100644 --- a/misc/config/os/aix +++ b/misc/config/os/aix @@ -5,9 +5,3 @@ os_type unix all - - -ia64 -ppc -ppc64 - diff --git a/misc/config/os/beos b/misc/config/os/beos index 498bd493d..2b12792bb 100644 --- a/misc/config/os/beos +++ b/misc/config/os/beos @@ -11,11 +11,6 @@ doc_dir documentation all - -ia32 -ppc - - haiku diff --git a/misc/config/os/cygwin b/misc/config/os/cygwin index ce10e504b..c2aadea98 100644 --- a/misc/config/os/cygwin +++ b/misc/config/os/cygwin @@ -11,9 +11,3 @@ doc_dir docs #all - - -ia32 -amd64 # in theory -ia64 # in theory - diff --git a/misc/config/os/darwin b/misc/config/os/darwin index 248dc3d97..597d91457 100644 --- a/misc/config/os/darwin +++ b/misc/config/os/darwin @@ -16,13 +16,6 @@ doc_dir doc all - -ia32 -amd64 -ppc -ppc64 # g5! - - macosx diff --git a/misc/config/os/freebsd b/misc/config/os/freebsd index d7818cdc6..6cc184d98 100644 --- a/misc/config/os/freebsd +++ b/misc/config/os/freebsd @@ -7,12 +7,3 @@ install_group wheel all - - -alpha -amd64 -ia32 -ia64 -powerpc -sparc64 - diff --git a/misc/config/os/hpux b/misc/config/os/hpux index 7a12d10dd..6e17d3b73 100644 --- a/misc/config/os/hpux +++ b/misc/config/os/hpux @@ -8,11 +8,6 @@ so_suffix sl all - -hppa -ia64 - - hp-ux diff --git a/misc/config/os/irix b/misc/config/os/irix index 773942391..fd8b43287 100644 --- a/misc/config/os/irix +++ b/misc/config/os/irix @@ -5,9 +5,3 @@ os_type unix all - - -mips32 -mips64 - - diff --git a/misc/config/os/linux b/misc/config/os/linux index 701fc9091..acf224244 100644 --- a/misc/config/os/linux +++ b/misc/config/os/linux @@ -6,22 +6,3 @@ os_type unix all - - -alpha -amd64 -arm -hppa -ia32 -ia64 -m68k -mips32 -mips64 -ppc -ppc64 -sh -sparc32 -sparc64 -s390 -s390x - diff --git a/misc/config/os/netbsd b/misc/config/os/netbsd index b0caeff70..da713e3a0 100644 --- a/misc/config/os/netbsd +++ b/misc/config/os/netbsd @@ -7,17 +7,3 @@ install_group wheel all - - -alpha -amd64 -arm -hppa -ia32 -ia64 -m68k -mips32 -mips64 -ppc -sparc32 - diff --git a/misc/config/os/openbsd b/misc/config/os/openbsd index 8d0329e1e..9f966bf49 100644 --- a/misc/config/os/openbsd +++ b/misc/config/os/openbsd @@ -7,13 +7,3 @@ install_group wheel all - - -alpha -ia32 -m68k -mips32 -ppc -sparc32 -sparc64 - diff --git a/misc/config/os/qnx b/misc/config/os/qnx index cd5ddab5f..28bc8dea9 100644 --- a/misc/config/os/qnx +++ b/misc/config/os/qnx @@ -5,11 +5,3 @@ os_type unix all - - -arm -ia32 -mips32 -ppc -sh - diff --git a/misc/config/os/solaris b/misc/config/os/solaris index 078019584..58b458e9b 100644 --- a/misc/config/os/solaris +++ b/misc/config/os/solaris @@ -9,12 +9,6 @@ install_cmd_exec install -u OWNER -g GROUP -m 755 all - -ia32 -sparc32 -sparc64 - - sunos diff --git a/misc/config/os/tru64 b/misc/config/os/tru64 index e2b264104..e320c1df4 100644 --- a/misc/config/os/tru64 +++ b/misc/config/os/tru64 @@ -6,10 +6,6 @@ os_type unix all - -alpha - - osf1 diff --git a/misc/config/os/windows b/misc/config/os/windows index e1170d79c..2f21da309 100644 --- a/misc/config/os/windows +++ b/misc/config/os/windows @@ -19,12 +19,6 @@ install_group #all - -ia32 -amd64 # in theory -ia64 # in theory - - win32 mswin32 -- cgit v1.2.3 From b79fa270866cc17d2bc500505f32b9ca179315c9 Mon Sep 17 00:00:00 2001 From: lloyd Date: Sun, 21 Oct 2007 19:11:14 +0000 Subject: Make i686 the x86 default CPU (used if the user just says 'x86' or equivalent) --- misc/config/arch/ia32 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc/config') diff --git a/misc/config/arch/ia32 b/misc/config/arch/ia32 index 999015af3..1d2b36af1 100644 --- a/misc/config/arch/ia32 +++ b/misc/config/arch/ia32 @@ -1,6 +1,6 @@ realname "IA-32" -default_submodel i586 +default_submodel i686 endian little unaligned ok -- cgit v1.2.3 From e77e43c6a90df3cd752f2b3a848313a19df41787 Mon Sep 17 00:00:00 2001 From: lloyd Date: Sun, 21 Oct 2007 19:40:38 +0000 Subject: Build Alpha as little-endian by default. --- misc/config/arch/alpha | 1 + 1 file changed, 1 insertion(+) (limited to 'misc/config') diff --git a/misc/config/arch/alpha b/misc/config/arch/alpha index 51c5e7220..16159207f 100644 --- a/misc/config/arch/alpha +++ b/misc/config/arch/alpha @@ -1,6 +1,7 @@ realname "DEC Alpha" default_submodel alpha-ev5 +endian little axp -- cgit v1.2.3 From d7119a19efd1ffe52764a3e62bdb8ddd0f46a89b Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 23 Oct 2007 14:23:42 +0000 Subject: Fix flags for Core2 optimizations with Intel C++ --- misc/config/cc/icc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc/config') diff --git a/misc/config/cc/icc b/misc/config/cc/icc index 8effcfd3b..4d51b5fe9 100644 --- a/misc/config/cc/icc +++ b/misc/config/cc/icc @@ -22,7 +22,7 @@ makefile_style unix i686 -> "-march=pentium3" athlon -> "-march=pentium3" pentium4 -> "-march=pentium4" -core2duo -> "-march=sse3" +core2duo -> "-msse3" -- cgit v1.2.3 From a85553fecdaf6dc6165c7bdcb17dd96588d76067 Mon Sep 17 00:00:00 2001 From: lloyd Date: Sun, 11 Nov 2007 19:16:32 +0000 Subject: Add /Zi to debug flags for Visual Studio --- misc/config/cc/msvc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc/config') diff --git a/misc/config/cc/msvc b/misc/config/cc/msvc index 63ee0a944..5bcec8e23 100644 --- a/misc/config/cc/msvc +++ b/misc/config/cc/msvc @@ -10,7 +10,7 @@ add_lib_option "" lib_opt_flags "/O2 /Ob2" check_opt_flags "/O2" -debug_flags "" +debug_flags "/Zi" no_debug_flags "" lang_flags "/EHsc /GR /D_CONSOLE" warning_flags "" -- cgit v1.2.3