Please drop this patch. I see it has already been fixed upstream

On Tue, Jun 21, 2016 at 11:10 AM, Mohammed Gamal
<mohammed.ga...@profitbricks.com> wrote:
> The configure script contains an embedded test C function
> to test for avx2 support. It gets optimized away with
> gcc 4.7 on wheezy.
> Add __attribute__((optimize("O0"))) to it in order
> to prevent optimizing it away
>
> Signed-off-by: Mohammed Gamal <mohammed.ga...@profitbricks.com>
> ---
>  configure | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/configure b/configure
> index 8ecf29d..ba31d3a 100755
> --- a/configure
> +++ b/configure
> @@ -1782,7 +1782,7 @@ fi
>
>  cat > $TMPC << EOF
>  static void bar(void) {}
> -static void *bar_ifunc(void) {return (void*) bar;}
> +static void __attribute__((optimize("O0"))) *bar_ifunc(void) {return (void*) 
> bar;}
>  static void foo(void) __attribute__((ifunc("bar_ifunc")));
>  int main(void) { foo(); return 0; }
>  EOF
> --
> 1.9.1
>



-- 
Mohammed Gamal
Software Engineer

ProfitBricks GmbH
Greifswalder Straße 207
D - 10405 Berlin

Tel: +49 30 577 008 20
Email:       mohammed.ga...@profitbricks.com
Web:         http://www.profitbricks.de

Sitz der Gesellschaft: Berlin.
Registergericht: Amtsgericht Charlottenburg, HRB 125506B.
Geschäftsführer: Andreas Gauger, Achim Weiss.

Reply via email to