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 c++/41094] Erroneous optimization of pow() with -ffast-math



------- Comment #4 from rguenth at gcc dot gnu dot org  2009-08-24 09:52 -------
Subject: Bug 41094

Author: rguenth
Date: Mon Aug 24 09:52:03 2009
New Revision: 151051

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=151051
Log:
2009-08-24  Richard Guenther  <rguenther@suse.de>

        PR middle-end/41094
        * builtins.c (fold_builtin_pow): Fold pow(pow(x,y),z) to
        pow(x,y*z) only if x is nonnegative.

        * gcc.dg/torture/pr41094.c: New testcase.
        * gcc.dg/torture/builtin-power-1.c: Adjust.
        * gcc.dg/builtins-10.c: Likewise.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/torture/pr41094.c
Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/builtins.c
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/builtins-10.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/torture/builtin-power-1.c


-- 


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


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