[Bug c++/104865] Wrong code for conditional expression on VAX or with -ffast-math

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 11 00:48:02 GMT 2022


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Wrong code for conditional  |Wrong code for conditional
                   |expression on VAX           |expression on VAX or with
                   |                            |-ffast-math

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
/* Accessor macros for format properties.  */
#define MODE_HAS_NANS(MODE) \
  (FLOAT_MODE_P (MODE) && FLOAT_MODE_FORMAT (MODE)->has_nans)

.....
vax_f_format
...
false,

Hmm,
 -ffast-math has the same result (that is the assert happening) on any other
target really.


More information about the Gcc-bugs mailing list