[Bug target/93934] Unnecessary fld of uninitialized float stack variable results in ub of valid C++ code

amonakov at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Feb 26 08:50:00 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93934

Alexander Monakov <amonakov at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |amonakov at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #2 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
fcmov can only raise an x87 fpu exception on x87 stack underflow, which cannot
happen here.

Even if it did raise FE_INVALID for SNaNs, note that GCC does not support SNaNs
by default; -fsignaling-nans can be specified to request that, but note that
documentation says the support is incomplete.

No bug here afaict.


More information about the Gcc-bugs mailing list