fold-const.c (omit_one_operand): No longer static.
authorRoger Sayle <roger@eyesopen.com>
Sat, 22 Feb 2003 04:16:18 +0000 (04:16 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Sat, 22 Feb 2003 04:16:18 +0000 (04:16 +0000)
commitc0a47a612627d49755b9ef8225924c6df97eed43
treeb5839d7e929ffb3f98fcd9a26632868768f973ae
parent5b296d934079373d33f531b4384224e4023695ca
fold-const.c (omit_one_operand): No longer static.

* fold-const.c (omit_one_operand): No longer static.
* tree.h (omit_one_operand): Prototype here.
(div_and_round_double): Keep fold-const.c prototypes together.
* builtins.c (builtin_mathfn_code): Handle binary built-in
funtions, such as "pow" and "atan2".
(fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
Simplify optimizations using "type" the builtin's return type.

* gcc.dg/builtins-5.c: New test case.

From-SVN: r63273
gcc/ChangeLog
gcc/builtins.c
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtins-5.c [new file with mode: 0644]
gcc/tree.h