OSDN Git Service

* fold-const.c (omit_one_operand): No longer static.
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 22 Feb 2003 04:16:18 +0000 (04:16 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 22 Feb 2003 04:16:18 +0000 (04:16 +0000)
commite9f80ff5de1b83903bd7a7c26c4fce97c48ba19f
treeb5839d7e929ffb3f98fcd9a26632868768f973ae
parent9d6707d374b90b9de3c54e4be61e74218735bced
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63273 138bc75d-0d04-0410-961f-82ee72b054a4
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