"Ronald S. Bultje" <[email protected]> writes:

> Fixes bug 78. I'd normally prefer a -mno-red-zone per-function
> attribute, but it seems gcc doesn't support that yet (it's not in the
> docs, and trying what should work extrapolating from other -m options
> generated compiler errors saying it didn't recognize that attribute).
>
> Sean confirmed it fixes the crash.
>
> Ronald
>
> From 9908ee0200ee3911452f10c6214d9ba0425b1da7 Mon Sep 17 00:00:00 2001
> From: Ronald S. Bultje <[email protected]>
> Date: Sun, 20 Nov 2011 15:54:15 -0800
> Subject: [PATCH] swscale: fix crash in fast_bilinear code when compiled with 
> -mred-zone.
>
> ---
>  libswscale/x86/swscale_template.c |   48 
> +++++++++++++++++++++++++++++++++++++
>  1 files changed, 48 insertions(+), 0 deletions(-)
>
> diff --git a/libswscale/x86/swscale_template.c 
> b/libswscale/x86/swscale_template.c
> index 5e7df5c..c6d7e98 100644
> --- a/libswscale/x86/swscale_template.c
> +++ b/libswscale/x86/swscale_template.c
> @@ -1656,10 +1656,22 @@ static void RENAME(hyscale_fast)(SwsContext *c, 
> int16_t *dst,
>  #if defined(PIC)
>      DECLARE_ALIGNED(8, uint64_t, ebxsave);
>  #endif
> +#if ARCH_X86_64
> +    DECLARE_ALIGNED(8, uint64_t, retsave);
> +#endif

All else aside, that doesn't need DECLARE_ALIGNED (nor does the one
above it).

-- 
Måns Rullgård
[email protected]
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to