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: Bruno Haible
Subject: Re: MSVC fails to compile floor.c with -fp:strict
Date: Wed, 14 Mar 2012 10:48:10 +0100
User-agent: KMail/4.7.4 (Linux/3.1.0-1.2-desktop; KDE/4.7.4; x86_64; ; )

Michael Goffioul wrote:
> I encountered a compilation error with MSVC when compiling floor.c in
> strict floating-point mode (-fp:strict).

Note that the use of -fp:strict also leads to test failures such as

  test-hypot.h:41: assertion failed
  FAIL: test-hypotl.exe

MSVC appears to compile the test code (test-hypotl.c) in a different way,
in such a way that a comparison of +Inf with +Inf fails.

I'm therefore not sure this option can be recommended.

Bruno




reply via email to

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