filename | configure.in |
changeset | 966:0f0320cb3650 |
prev | 964:f2f3c7612d06 |
next | 977:8514fb4bc101 |
author | nkeynes |
date | Mon Jan 26 07:26:24 2009 +0000 (15 years ago) |
permissions | -rw-r--r-- |
last change | Add read_byte_for_write mem function for correct implementation of AND.B and friends with TLB enabled. Add read_byte and read_long MMIO stubs to do correct sign extension of IO reads |
file | annotate | diff | log | raw |
1.1 --- a/configure.in Thu Jan 15 04:15:11 2009 +00001.2 +++ b/configure.in Mon Jan 26 07:26:24 2009 +00001.3 @@ -25,7 +25,9 @@1.5 AC_ARG_ENABLE( strict-warn,1.6 AS_HELP_STRING( [--enable-strict-warn], [Enable strict compilation warnings]),1.7 - [CFLAGS="$CFLAGS -Werror -Wall -Wno-unused"], [])1.8 + [if test "$enableval" == "yes"; then1.9 + enable_strictwarn=yes1.10 + fi] )1.11 AC_ARG_ENABLE( translator,1.12 AS_HELP_STRING( [--disable-translator], [Disable the SH4 translator (Enabled by default)]),1.13 [true], [enable_translator=yes] )1.14 @@ -77,10 +79,11 @@1.16 if test "x$enable_optimized" = "xyes"; then1.17 CFLAGS="$CFLAGS $CCOPT"1.18 - OBJCFLAGS="$OBJCFLAGS $CCOPT"1.19 + OBJCFLAGS="$OBJCFLAGS $OBJCOPT"1.20 if test "x$enable_profiled" != "xyes"; then1.21 dnl -fomit-frame-pointer can't be used with -pg1.22 CFLAGS="$CFLAGS -fomit-frame-pointer"1.23 + OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"1.24 fi1.25 else1.26 CFLAGS="$CFLAGS -g3"1.27 @@ -93,6 +96,11 @@1.28 OBJCFLAGS="$OBJCFLAGS -pg";1.29 fi1.31 +if test "x$enable_strictwarn" = "xyes"; then1.32 + CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"1.33 + OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"1.34 +fi1.35 +1.36 AC_CHECK_FASTCALL([1.37 AC_DEFINE(HAVE_FASTCALL, [1], [Use fast register-passing calling conventions])1.38 ])
.