From c0a47a612627d49755b9ef8225924c6df97eed43 Mon Sep 17 00:00:00 2001 From: Roger Sayle Date: Sat, 22 Feb 2003 04:16:18 +0000 Subject: 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/fold-const.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/fold-const.c') diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 6b50a86..48c3683 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -81,7 +81,6 @@ static int truth_value_p PARAMS ((enum tree_code)); static int operand_equal_for_comparison_p PARAMS ((tree, tree, tree)); static int twoval_comparison_p PARAMS ((tree, tree *, tree *, int *)); static tree eval_subst PARAMS ((tree, tree, tree, tree, tree)); -static tree omit_one_operand PARAMS ((tree, tree, tree)); static tree pedantic_omit_one_operand PARAMS ((tree, tree, tree)); static tree distribute_bit_expr PARAMS ((enum tree_code, tree, tree, tree)); static tree make_bit_field_ref PARAMS ((tree, tree, int, int, int)); @@ -2256,7 +2255,7 @@ eval_subst (arg, old0, new0, old1, new1) If OMITTED has side effects, we must evaluate it. Otherwise, just do the conversion of RESULT to TYPE. */ -static tree +tree omit_one_operand (type, result, omitted) tree type, result, omitted; { -- cgit v1.1