bug-gnulib
[Top][All Lists]
Advanced

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

Re: new module 'fenv-exceptions-tracking-c99'


From: Bruno Haible
Subject: Re: new module 'fenv-exceptions-tracking-c99'
Date: Mon, 30 Oct 2023 16:36:37 +0100

Oops, this code has a bug on x86_64 and i386: It may leave the exception
traps masked, due to a side effect of the 'fnsetenv' instruction. This
patch should fix it.


2023-10-30  Bruno Haible  <bruno@clisp.org>

        fenv-exceptions-tracking-{c99,c23}: Fix the x86_64 and i386 case.
        * lib/fenv-except-tracking-clear.c (feclearexcept): Make sure to restore
        the exception trap bits in all cases.
        * lib/fenv-except-tracking-raise.c (feraiseexcept): Likewise.
        * lib/fenv-except-tracking-set.c (fesetexcept): Likewise.

Attachment: 0001-fenv-exceptions-tracking-c99-c23-Fix-the-x86_64-and-.patch
Description: Text Data


reply via email to

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