OSDN Git Service

2009-08-18 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Aug 2009 13:40:18 +0000 (13:40 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 18 Aug 2009 13:40:18 +0000 (13:40 +0000)
commit49e436b506b7817a4ef645c95ba158e88deda840
tree352c74ccff21f703c3493cc20f89542a38b26f32
parentf3aba4fafc1e6e77271a1e20147573165b208cd8
2009-08-18  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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@150874 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtins-10.c
gcc/testsuite/gcc.dg/torture/builtin-power-1.c
gcc/testsuite/gcc.dg/torture/pr41094.c [new file with mode: 0644]