filename | configure |
changeset | 927:17b6b9e245d8 |
prev | 924:195577c0445c |
next | 964:f2f3c7612d06 |
author | nkeynes |
date | Mon Jan 05 04:19:46 2009 +0000 (15 years ago) |
branch | lxdream-mem |
permissions | -rw-r--r-- |
last change | Move address space decls to mmu.h Finally remove sh4_read_long and friends |
file | annotate | diff | log | raw |
1.1 --- a/configure Thu Dec 11 23:29:12 2008 +00001.2 +++ b/configure Mon Jan 05 04:19:46 2009 +00001.3 @@ -6745,6 +6745,94 @@1.7 +{ $as_echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&51.8 +$as_echo_n "checking if we have a working __builtin_frame_address()... " >&6; };1.9 +if test "$cross_compiling" = yes; then1.10 + { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling1.11 +See \`config.log' for more details." >&51.12 +$as_echo "$as_me: error: cannot run test program while cross compiling1.13 +See \`config.log' for more details." >&2;}1.14 + { (exit 1); exit 1; }; }1.15 +else1.16 + cat >conftest.$ac_ext <<_ACEOF1.17 +1.18 + /* confdefs.h. */1.19 +_ACEOF1.20 +cat confdefs.h >>conftest.$ac_ext1.21 +cat >>conftest.$ac_ext <<_ACEOF1.22 +/* end confdefs.h. */1.23 +1.24 +void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }1.25 +int __attribute__((noinline)) foo( int arg, void *exc )1.26 +{1.27 + if( arg < 2 ) {1.28 + *(((void **)__builtin_frame_address(0))+1) = exc;1.29 + }1.30 + return 0;1.31 +}1.32 +1.33 +int main(int argc, char *argv[])1.34 +{1.35 + goto *first_arg(&&start, &&except);1.36 +1.37 +start:1.38 + return foo( argc, &&except ) + 1;1.39 +1.40 +except:1.41 + return 0;1.42 +}1.43 +_ACEOF1.44 +rm -f conftest$ac_exeext1.45 +if { (ac_try="$ac_link"1.46 +case "(($ac_try" in1.47 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.48 + *) ac_try_echo=$ac_try;;1.49 +esac1.50 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""1.51 +$as_echo "$ac_try_echo") >&51.52 + (eval "$ac_link") 2>&51.53 + ac_status=$?1.54 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&51.55 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'1.56 + { (case "(($ac_try" in1.57 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1.58 + *) ac_try_echo=$ac_try;;1.59 +esac1.60 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""1.61 +$as_echo "$ac_try_echo") >&51.62 + (eval "$ac_try") 2>&51.63 + ac_status=$?1.64 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&51.65 + (exit $ac_status); }; }; then1.66 +1.67 + { $as_echo "$as_me:$LINENO: result: yes" >&51.68 +$as_echo "yes" >&6; }1.69 +1.70 +1.71 +cat >>confdefs.h <<\_ACEOF1.72 +#define HAVE_FRAME_ADDRESS 11.73 +_ACEOF1.74 +1.75 +1.76 +else1.77 + $as_echo "$as_me: program exited with status $ac_status" >&51.78 +$as_echo "$as_me: failed program was:" >&51.79 +sed 's/^/| /' conftest.$ac_ext >&51.80 +1.81 +( exit $ac_status )1.82 +1.83 + { $as_echo "$as_me:$LINENO: result: no" >&51.84 +$as_echo "no" >&6; }1.85 + { $as_echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&51.86 +$as_echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}1.87 +fi1.88 +rm -rf conftest.dSYM1.89 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext1.90 +fi1.91 +1.92 +1.93 +1.94 +1.97 lxdream_save_cppflags="$CPPFLAGS"
.