diff options
author | Roger Sayle <roger@eyesopen.com> | 2003-02-22 04:16:18 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2003-02-22 04:16:18 +0000 |
commit | c0a47a612627d49755b9ef8225924c6df97eed43 (patch) | |
tree | b5839d7e929ffb3f98fcd9a26632868768f973ae /gcc/fold-const.c | |
parent | 5b296d934079373d33f531b4384224e4023695ca (diff) | |
download | gcc-c0a47a612627d49755b9ef8225924c6df97eed43.zip gcc-c0a47a612627d49755b9ef8225924c6df97eed43.tar.gz gcc-c0a47a612627d49755b9ef8225924c6df97eed43.tar.bz2 |
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
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; { |