On Saturday 14 January 2012 23:27:36 Kim B. Heino wrote:
> librep/configure tries to autodetect stack direction if it's not
> specified. It's forced to "downwards" for sparc/i?86/powerpc, but not
> for x86_64. The autodetect has worked so far but not anymore with
> gcc-4.7. Compiling librep runs self-test, which detects correctly
> "downwards" and conflicts with configure's "upwards". Attached patch
> forces it to "downwards" on x86_64 too.
>
> Comment in the source says that "upwards" is not even tested.
>
>
> diff --git a/configure.in b/configure.in
> index 525cc40..85ececd 100644
> --- a/configure.in
> +++ b/configure.in
> @@ -536,7 +536,7 @@ AC_ARG_WITH(stack-direction,
> [with_stack_direction=unknown])
> if test "${with_stack_direction}" = unknown; then
> case ${host_cpu} in
> - sparc|i?86|powerpc)
> + sparc|i?86|powerpc|x86_64)
> AC_MSG_RESULT([assuming downwards])
> with_stack_direction="-1"
> ;;
>
> ---
> --
> Sawfish MLapplied, thanks. Chris
signature.asc
Description: This is a digitally signed message part.
