filename | configure |
changeset | 909:b4a21af8ce8c |
prev | 906:268ea359f884 |
next | 913:edc494bde24b |
author | nkeynes |
date | Fri Oct 31 02:57:59 2008 +0000 (15 years ago) |
permissions | -rw-r--r-- |
last change | Declare mem_copy_* functions as FASTCALL Split sh4_flush_store_queue into TLB/non-TLB versions, and optimize slightly based on that |
file | annotate | diff | log | raw |
1.1 --- a/configure Thu Oct 30 00:06:49 2008 +00001.2 +++ b/configure Fri Oct 31 02:57:59 2008 +00001.3 @@ -805,6 +805,7 @@1.4 enable_strict_warn1.5 enable_translator1.6 enable_optimized1.7 +enable_profiled1.8 enable_trace1.9 enable_watch1.10 enable_sh4stats1.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 by1.14 default)1.15 + --enable-profiled Enable profiling build (implies disable-optimized)1.16 --enable-trace Enable generation of IO traces (warning: hurts1.17 performance)1.18 --enable-watch Enable watchpoints in the debugger (warning: hurts1.19 @@ -6575,6 +6577,13 @@1.20 enable_optimized=yes1.21 fi1.23 +# Check whether --enable-profiled was given.1.24 +if test "${enable_profiled+set}" = set; then1.25 + enableval=$enable_profiled; if test "$enableval" == "yes"; then1.26 + enable_profiled=yes;1.27 + fi1.28 +fi1.29 +1.30 # Check whether --enable-trace was given.1.31 if test "${enable_trace+set}" = set; then1.32 enableval=$enable_trace; if test "$enableval" == "yes"; then1.33 @@ -6638,11 +6647,25 @@1.37 -if test "x$enable_optimized" = "xyes"; then1.38 - CFLAGS="-g -O2"1.39 +if test "x$enable_profiled" = "xyes"; then1.40 + CFLAGS="-g -pg -fprofile-arcs"1.41 + LDFLAGS="$LDFLAGS -pg";1.42 +elif test "x$enable_optimized" = "xyes"; then1.43 + CFLAGS="-g -O2 -fexceptions -fomit-frame-pointer"1.44 +1.45 +cat >>confdefs.h <<\_ACEOF1.46 +#define HAVE_EXCEPTIONS 11.47 +_ACEOF1.48 +1.49 +1.50 +cat >>confdefs.h <<\_ACEOF1.51 +#define HAVE_FASTCALL 11.52 +_ACEOF1.53 +1.54 else1.55 CFLAGS="-g3"1.56 fi1.57 +1.58 if test "x$GCC" = "xyes"; then1.59 CFLAGS="$CFLAGS -fno-strict-aliasing"1.60 fi1.61 @@ -6865,14 +6888,6 @@1.62 _ACEOF1.64 fi1.65 -if test "x$enable_optimized" = "xyes"; then1.66 - CFLAGS="$CFLAGS -fexceptions -fomit-frame-pointer"1.67 -1.68 -cat >>confdefs.h <<\_ACEOF1.69 -#define HAVE_EXCEPTIONS 11.70 -_ACEOF1.71 -1.72 -fi
.