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 target/30980] [4.3 Regression] Recent complex miscompilation



------- Comment #12 from rguenth at gcc dot gnu dot org  2007-03-13 13:26 -------
Now,

2007-02-05  Roger Sayle  <roger@eyesopen.com>

        * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
        BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
        <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
        * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
        before canonicalizing sincos to cexpi.
        (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.

is too conservative in the sense that we can expand __builtin_cexpi if
either TARGET_HAS_SINCOS or TARGET_C99_FUNCTIONS.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |roger at eyesopen dot com


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


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