revision 913:edc494bde24b
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 913:edc494bde24b |
parent | 912:c5606ea44232 |
child | 914:72abecf5a315 |
author | nkeynes |
date | Fri Oct 31 03:27:43 2008 +0000 (13 years ago) |
Enable sse-math for all platforms
1.1 --- a/configure Fri Oct 31 03:24:49 2008 +00001.2 +++ b/configure Fri Oct 31 03:27:43 2008 +00001.3 @@ -1474,7 +1474,7 @@1.4 --disable-translator Disable the SH4 translator (Enabled by default)1.5 --disable-optimized Disable compile-time optimizations (Enabled by1.6 default)1.7 - --enable-profiled Enable profiling build (implies disable-optimized)1.8 + --enable-profiled Enable profiling build1.9 --enable-trace Enable generation of IO traces (warning: hurts1.10 performance)1.11 --enable-watch Enable watchpoints in the debugger (warning: hurts1.12 @@ -6647,23 +6647,28 @@1.16 +if test "x$enable_optimized" = "xyes"; then1.17 + CFLAGS="-g -O2 -msse2 -mfpmath=sse"1.18 + if test "x$enable_profiled" != "xyes"; then1.19 + CFLAGS="$CFLAGS -fexceptions -fomit-frame-pointer"1.20 +1.21 +cat >>confdefs.h <<\_ACEOF1.22 +#define HAVE_EXCEPTIONS 11.23 +_ACEOF1.24 +1.25 + fi1.26 +1.27 +cat >>confdefs.h <<\_ACEOF1.28 +#define HAVE_FASTCALL 11.29 +_ACEOF1.30 +1.31 +else1.32 + CFLAGS="-g3"1.33 +fi1.34 +1.35 if test "x$enable_profiled" = "xyes"; then1.36 - CFLAGS="-g -pg -fprofile-arcs"1.37 + CFLAGS="$CFLAGS -pg"1.38 LDFLAGS="$LDFLAGS -pg";1.39 -elif test "x$enable_optimized" = "xyes"; then1.40 - CFLAGS="-g -O2 -fexceptions -fomit-frame-pointer"1.41 -1.42 -cat >>confdefs.h <<\_ACEOF1.43 -#define HAVE_EXCEPTIONS 11.44 -_ACEOF1.45 -1.46 -1.47 -cat >>confdefs.h <<\_ACEOF1.48 -#define HAVE_FASTCALL 11.49 -_ACEOF1.50 -1.51 -else1.52 - CFLAGS="-g3"1.53 fi1.55 if test "x$GCC" = "xyes"; then
2.1 --- a/configure.in Fri Oct 31 03:24:49 2008 +00002.2 +++ b/configure.in Fri Oct 31 03:27:43 2008 +00002.3 @@ -29,7 +29,7 @@2.4 AS_HELP_STRING( [--disable-optimized], [Disable compile-time optimizations (Enabled by default)]),2.5 [true], [enable_optimized=yes] )2.6 AC_ARG_ENABLE( profiled,2.7 - AS_HELP_STRING( [--enable-profiled], [Enable profiling build (implies disable-optimized)]),2.8 + AS_HELP_STRING( [--enable-profiled], [Enable profiling build]),2.9 [if test "$enableval" == "yes"; then2.10 enable_profiled=yes;2.11 fi] )2.12 @@ -60,17 +60,23 @@2.14 dnl ------------2.16 -if test "x$enable_profiled" = "xyes"; then2.17 - CFLAGS="-g -pg -fprofile-arcs"2.18 - LDFLAGS="$LDFLAGS -pg";2.19 -elif test "x$enable_optimized" = "xyes"; then2.20 - CFLAGS="-g -O2 -fexceptions -fomit-frame-pointer"2.21 - AC_DEFINE(HAVE_EXCEPTIONS, [1], [Have exception stack-frame information])2.22 +if test "x$enable_optimized" = "xyes"; then2.23 + CFLAGS="-g -O2 -msse2 -mfpmath=sse"2.24 + if test "x$enable_profiled" != "xyes"; then2.25 + dnl -fomit-frame-pointer can't be used with -pg2.26 + CFLAGS="$CFLAGS -fexceptions -fomit-frame-pointer"2.27 + AC_DEFINE(HAVE_EXCEPTIONS, [1], [Have exception stack-frame information])2.28 + fi2.29 AC_DEFINE(HAVE_FASTCALL, [1], [Use fast register-passing calling conventions])2.30 else2.31 CFLAGS="-g3"2.32 fi2.34 +if test "x$enable_profiled" = "xyes"; then2.35 + CFLAGS="$CFLAGS -pg"2.36 + LDFLAGS="$LDFLAGS -pg";2.37 +fi2.38 +2.39 if test "x$GCC" = "xyes"; then2.40 CFLAGS="$CFLAGS -fno-strict-aliasing"2.41 fi
.