bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MSVC fails to compile floor.c with -fp:strict


From: Michael Goffioul
Subject: Re: MSVC fails to compile floor.c with -fp:strict
Date: Sun, 11 Mar 2012 11:20:59 +0000

On Tue, Feb 28, 2012 at 10:52 AM, Bruno Haible <address@hidden> wrote:
> Michael Goffioul wrote:
>> With the #pragma statement, the compilation error disappears, thanks.
>
> Thanks for verifying that we were on the right track.
>
>> I think the same
>> problem will appear in round.c and trunc.c (those are also used by
>> octave).
>
> Yes, and there are a few more. I'm applying this patch.
>
>
> 2012-02-28  Bruno Haible  <address@hidden>
>
>        Avoid compilation errors with MSVC option -fp:strict.
>        * lib/floor.c: Use MSVC specific pragma fenv_access.
>        * lib/ceil.c: Likewise.
>        * lib/trunc.c: Likewise.
>        * lib/round.c: Likewise.
>        * lib/rint.c: Likewise.
>        * lib/fma.c: Likewise.
>        * lib/integer_length.c: Likewise.
>        * m4/round.m4 (gl_FUNC_ROUND): Likewise.
>        * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
>        * tests/test-floor2.c: Likewise.
>        * tests/test-floorf2.c: Likewise.
>        * tests/test-ceil2.c: Likewise.
>        * tests/test-ceilf2.c: Likewise.
>        * tests/test-trunc2.c: Likewise.
>        * tests/test-truncf2.c: Likewise.
>        Reported by Michael Goffioul <address@hidden>.

Same problem occurs in cbrt.c and cbrtf.c.

Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]