Search
lxdream.org :: lxdream/configure :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure
changeset 1147:e04e4af64626
prev1115:90292b2f2243
next1174:252d50f93cf6
author nkeynes
date Mon Nov 08 22:10:47 2010 +1000 (9 years ago)
permissions -rw-r--r--
last change Suggest to the compiler a little more firmly that it inline the x86op
functions (as these are nearly always called with constants, they can
usually be reduced down pretty dramatically)
file annotate diff log raw
1.1 --- a/configure Wed Sep 08 08:42:09 2010 +1000
1.2 +++ b/configure Mon Nov 08 22:10:47 2010 +1000
1.3 @@ -8124,6 +8124,64 @@
1.4
1.5
1.6
1.7 +{ echo "$as_me:$LINENO: checking support for force inlining" >&5
1.8 +echo $ECHO_N "checking support for force inlining... $ECHO_C" >&6; };
1.9 +cat >conftest.$ac_ext <<_ACEOF
1.10 +
1.11 + /* confdefs.h. */
1.12 +_ACEOF
1.13 +cat confdefs.h >>conftest.$ac_ext
1.14 +cat >>conftest.$ac_ext <<_ACEOF
1.15 +/* end confdefs.h. */
1.16 +
1.17 +static int __attribute__((always_inline)) foo(int a, int b) { return a+b; }
1.18 +
1.19 +int main(int argc, char *argv[])
1.20 +{
1.21 + return foo( 1, 2 ) == 3 ? 0 : 1;
1.22 +}
1.23 +_ACEOF
1.24 +rm -f conftest.$ac_objext
1.25 +if { (ac_try="$ac_compile"
1.26 +case "(($ac_try" in
1.27 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1.28 + *) ac_try_echo=$ac_try;;
1.29 +esac
1.30 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.31 + (eval "$ac_compile") 2>conftest.er1
1.32 + ac_status=$?
1.33 + grep -v '^ *+' conftest.er1 >conftest.err
1.34 + rm -f conftest.er1
1.35 + cat conftest.err >&5
1.36 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 + (exit $ac_status); } && {
1.38 + test -z "$ac_c_werror_flag" ||
1.39 + test ! -s conftest.err
1.40 + } && test -s conftest.$ac_objext; then
1.41 +
1.42 + FORCEINLINE="__attribute__((always_inline))"
1.43 + { echo "$as_me:$LINENO: result: $FORCEINLINE" >&5
1.44 +echo "${ECHO_T}$FORCEINLINE" >&6; }
1.45 +
1.46 +else
1.47 + echo "$as_me: failed program was:" >&5
1.48 +sed 's/^/| /' conftest.$ac_ext >&5
1.49 +
1.50 +
1.51 + FORCEINLINE=""
1.52 + { echo "$as_me:$LINENO: result: no" >&5
1.53 +echo "${ECHO_T}no" >&6; }
1.54 +
1.55 +fi
1.56 +
1.57 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.58 +
1.59 +
1.60 +cat >>confdefs.h <<_ACEOF
1.61 +#define FORCEINLINE $FORCEINLINE
1.62 +_ACEOF
1.63 +
1.64 +
1.65 { echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
1.66 echo $ECHO_N "checking if we have a working __builtin_frame_address()... $ECHO_C" >&6; };
1.67 if test "$cross_compiling" = yes; then
.