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] [4.0/4.1/4.2 Regression] With -frounding-math, incorrectly reorders unary minus



------- Comment #18 from rguenth at gcc dot gnu dot org  2006-11-13 10:19 -------
Subject: Bug 21032

Author: rguenth
Date: Mon Nov 13 10:18:57 2006
New Revision: 118752

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

        Backport from mainline:
        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:
    branches/gcc-4_1-branch/gcc/testsuite/gcc.dg/pr21032.c
      - copied unchanged from r117968, trunk/gcc/testsuite/gcc.dg/pr21032.c
Modified:
    branches/gcc-4_1-branch/gcc/ChangeLog
    branches/gcc-4_1-branch/gcc/convert.c
    branches/gcc-4_1-branch/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]