1.1 --- a/configure Thu Oct 30 00:06:49 2008 +0000
1.2 +++ b/configure Fri Oct 31 03:24:49 2008 +0000
1.11 @@ -1473,6 +1474,7 @@
1.12 --disable-translator Disable the SH4 translator (Enabled by default)
1.13 --disable-optimized Disable compile-time optimizations (Enabled by
1.15 + --enable-profiled Enable profiling build (implies disable-optimized)
1.16 --enable-trace Enable generation of IO traces (warning: hurts
1.18 --enable-watch Enable watchpoints in the debugger (warning: hurts
1.19 @@ -6575,6 +6577,13 @@
1.20 enable_optimized=yes
1.23 +# Check whether --enable-profiled was given.
1.24 +if test "${enable_profiled+set}" = set; then
1.25 + enableval=$enable_profiled; if test "$enableval" == "yes"; then
1.26 + enable_profiled=yes;
1.30 # Check whether --enable-trace was given.
1.31 if test "${enable_trace+set}" = set; then
1.32 enableval=$enable_trace; if test "$enableval" == "yes"; then
1.33 @@ -6638,11 +6647,25 @@
1.37 -if test "x$enable_optimized" = "xyes"; then
1.39 +if test "x$enable_profiled" = "xyes"; then
1.40 + CFLAGS="-g -pg -fprofile-arcs"
1.41 + LDFLAGS="$LDFLAGS -pg";
1.42 +elif test "x$enable_optimized" = "xyes"; then
1.43 + CFLAGS="-g -O2 -fexceptions -fomit-frame-pointer"
1.45 +cat >>confdefs.h <<\_ACEOF
1.46 +#define HAVE_EXCEPTIONS 1
1.50 +cat >>confdefs.h <<\_ACEOF
1.51 +#define HAVE_FASTCALL 1
1.58 if test "x$GCC" = "xyes"; then
1.59 CFLAGS="$CFLAGS -fno-strict-aliasing"
1.61 @@ -6865,14 +6888,6 @@
1.65 -if test "x$enable_optimized" = "xyes"; then
1.66 - CFLAGS="$CFLAGS -fexceptions -fomit-frame-pointer"
1.68 -cat >>confdefs.h <<\_ACEOF
1.69 -#define HAVE_EXCEPTIONS 1