Hello,

thanks for your work.  Patch is ok.

Regards,
Kai

2016-08-08 15:24 GMT+02:00 Martin Storsjö <mar...@martin.st>:
> This fixes duplicate symbols if a calling app links in both e.g.
> sqrt and sqrtf.
> ---
> AFAIK, the .def is only there for debugging info - removing the
> .global doesn't seem to be enough to avoid the linker failures
> at least, but perhaps it can be made debug info for a static symbol
> in some other way?
> ---
>  mingw-w64-crt/math/sqrt.def.h | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/mingw-w64-crt/math/sqrt.def.h b/mingw-w64-crt/math/sqrt.def.h
> index 8e502ec..602409a 100644
> --- a/mingw-w64-crt/math/sqrt.def.h
> +++ b/mingw-w64-crt/math/sqrt.def.h
> @@ -50,10 +50,8 @@
>   * asm ("fsqrts %[dst], %[src];\n" : [dst] "=w" (res) : [src] "w" (x));
>   */
>  __FLT_TYPE __fsqrt_internal( __FLT_TYPE x );
> -asm(".def __fsqrt_internal; .scl 2; .type 32; .endef\n"
> -    "\t.text\n"
> +asm("\t.text\n"
>      "\t.align 4\n"
> -    "\t.globl __fsqrt_internal\n"
>      "__fsqrt_internal:\n"
>  #if _NEW_COMPLEX_FLOAT
>      "\t" "fsqrts s0, s0\n"
> --
> 2.7.4
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to