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/21032] With -frounding-math, incorrectly reorders unary minus



------- Comment #11 from rguenth at gcc dot gnu dot org  2006-10-23 07:15 -------
Subject: Bug 21032

Author: rguenth
Date: Mon Oct 23 07:15:45 2006
New Revision: 117968

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117968
Log:
2006-10-23  Richard Guenther  <rguenther@suse.de>

        PR middle-end/21032
        * convert.c (convert_to_real): Fold (float)-x to -(float)x
        only if not flag_rounding_math.

        * gcc.dg/pr21032.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.dg/pr21032.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/convert.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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