[Bug c++/41094] Erroneous optimization of pow() with -ffast-math

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Aug 24 09:56:00 GMT 2009



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

Author: rguenth
Date: Mon Aug 24 09:56:30 2009
New Revision: 151052

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=151052
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_3-branch/gcc/testsuite/gcc.dg/torture/pr41094.c
Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/builtins.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/builtins-10.c
    branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/torture/builtin-power-1.c


-- 


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



More information about the Gcc-bugs mailing list