Search
lxdream.org :: lxdream :: r913:edc494bde24b
lxdream 0.9.1
released Jun 29
Download Now
changeset913:edc494bde24b
parent912:c5606ea44232
child914:72abecf5a315
authornkeynes
dateFri Oct 31 03:27:43 2008 +0000 (11 years ago)
Enable sse-math for all platforms
configure
configure.in
1.1 --- a/configure Fri Oct 31 03:24:49 2008 +0000
1.2 +++ b/configure Fri Oct 31 03:27:43 2008 +0000
1.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 by
1.6 default)
1.7 - --enable-profiled Enable profiling build (implies disable-optimized)
1.8 + --enable-profiled Enable profiling build
1.9 --enable-trace Enable generation of IO traces (warning: hurts
1.10 performance)
1.11 --enable-watch Enable watchpoints in the debugger (warning: hurts
1.12 @@ -6647,23 +6647,28 @@
1.13
1.14
1.15
1.16 +if test "x$enable_optimized" = "xyes"; then
1.17 + CFLAGS="-g -O2 -msse2 -mfpmath=sse"
1.18 + if test "x$enable_profiled" != "xyes"; then
1.19 + CFLAGS="$CFLAGS -fexceptions -fomit-frame-pointer"
1.20 +
1.21 +cat >>confdefs.h <<\_ACEOF
1.22 +#define HAVE_EXCEPTIONS 1
1.23 +_ACEOF
1.24 +
1.25 + fi
1.26 +
1.27 +cat >>confdefs.h <<\_ACEOF
1.28 +#define HAVE_FASTCALL 1
1.29 +_ACEOF
1.30 +
1.31 +else
1.32 + CFLAGS="-g3"
1.33 +fi
1.34 +
1.35 if test "x$enable_profiled" = "xyes"; then
1.36 - CFLAGS="-g -pg -fprofile-arcs"
1.37 + CFLAGS="$CFLAGS -pg"
1.38 LDFLAGS="$LDFLAGS -pg";
1.39 -elif test "x$enable_optimized" = "xyes"; then
1.40 - CFLAGS="-g -O2 -fexceptions -fomit-frame-pointer"
1.41 -
1.42 -cat >>confdefs.h <<\_ACEOF
1.43 -#define HAVE_EXCEPTIONS 1
1.44 -_ACEOF
1.45 -
1.46 -
1.47 -cat >>confdefs.h <<\_ACEOF
1.48 -#define HAVE_FASTCALL 1
1.49 -_ACEOF
1.50 -
1.51 -else
1.52 - CFLAGS="-g3"
1.53 fi
1.54
1.55 if test "x$GCC" = "xyes"; then
2.1 --- a/configure.in Fri Oct 31 03:24:49 2008 +0000
2.2 +++ b/configure.in Fri Oct 31 03:27:43 2008 +0000
2.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"; then
2.10 enable_profiled=yes;
2.11 fi] )
2.12 @@ -60,17 +60,23 @@
2.13
2.14 dnl ------------
2.15
2.16 -if test "x$enable_profiled" = "xyes"; then
2.17 - CFLAGS="-g -pg -fprofile-arcs"
2.18 - LDFLAGS="$LDFLAGS -pg";
2.19 -elif test "x$enable_optimized" = "xyes"; then
2.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"; then
2.23 + CFLAGS="-g -O2 -msse2 -mfpmath=sse"
2.24 + if test "x$enable_profiled" != "xyes"; then
2.25 + dnl -fomit-frame-pointer can't be used with -pg
2.26 + CFLAGS="$CFLAGS -fexceptions -fomit-frame-pointer"
2.27 + AC_DEFINE(HAVE_EXCEPTIONS, [1], [Have exception stack-frame information])
2.28 + fi
2.29 AC_DEFINE(HAVE_FASTCALL, [1], [Use fast register-passing calling conventions])
2.30 else
2.31 CFLAGS="-g3"
2.32 fi
2.33
2.34 +if test "x$enable_profiled" = "xyes"; then
2.35 + CFLAGS="$CFLAGS -pg"
2.36 + LDFLAGS="$LDFLAGS -pg";
2.37 +fi
2.38 +
2.39 if test "x$GCC" = "xyes"; then
2.40 CFLAGS="$CFLAGS -fno-strict-aliasing"
2.41 fi
.