This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/61119] gcc miscompiles code using cexp when using --fast-math


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61119

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |middle-end

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Looks like the gimplification is not handling SAVE_EXPR correctly:
    complex double val = COMPLEX_EXPR <SAVE_EXPR <__builtin_exp ((double) fun
())> * REALPART_EXPR <SAVE_EXPR <__builtin_cexpi (fun ();, 0.0)>>, SAVE_EXPR
<__builtin_exp ((double) fun ())> * IMAGPART_EXPR <SAVE_EXPR <__builtin_cexpi
(fun ();, 0.0)>>>;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]