Commit f9b94cb9 authored by Alexandre Julliard's avatar Alexandre Julliard

Set -mpreferred-stack-boundary=2 flag if supported to avoid wasteful

stack alignments.
parent 0335095f
......@@ -461,6 +461,19 @@ int main(void) {
then
CFLAGS="$CFLAGS -fno-strength-reduce"
fi
dnl Check for -mpreferred-stack-boundary
AC_CACHE_CHECK("for gcc -mpreferred-stack-boundary=2 support",
ac_cv_c_gcc_stack_boundary,
[saved_cflags=$CFLAGS
CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
AC_TRY_COMPILE(,[return 0],ac_cv_c_gcc_stack_boundary="yes",ac_cv_c_gcc_stack_boundary="no")
CFLAGS=$saved_cflags
])
if test "$ac_cv_c_gcc_stack_boundary" = "yes"
then
CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
fi
fi
dnl **** Check if we need to place .type inside a .def directive ****
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment