summaryrefslogtreecommitdiffstats
path: root/gcc
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-08-02 15:12:03 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-08-02 15:12:03 +0000
commitaf533708de5ad161d000789a6466a684c9b70c9c (patch)
tree28efd98e761c2403382ff2175d4d896feb9aa459 /gcc
parent0884ef86b7d92abb06fe6d94c3bdc762fad9c940 (diff)
downloadppe42-gcc-af533708de5ad161d000789a6466a684c9b70c9c.tar.gz
ppe42-gcc-af533708de5ad161d000789a6466a684c9b70c9c.zip
2005-08-02 Richard Guenther <rguenther@suse.de>
* fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is positive if its first argument is positive. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102657 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/fold-const.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5127e439ac8..216deb92419 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2005-08-02 Richard Guenther <rguenther@suse.de>
+ * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
+ positive if its first argument is positive.
+
+2005-08-02 Richard Guenther <rguenther@suse.de>
+
PR tree-optimization/23177
* tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
on TMR_TAG.
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index c74f8910374..ed5394af44d 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -10904,7 +10904,6 @@ tree_expr_nonnegative_p (tree t)
CASE_BUILTIN_F (BUILT_IN_EXP2)
CASE_BUILTIN_F (BUILT_IN_FABS)
CASE_BUILTIN_F (BUILT_IN_FDIM)
- CASE_BUILTIN_F (BUILT_IN_FREXP)
CASE_BUILTIN_F (BUILT_IN_HYPOT)
CASE_BUILTIN_F (BUILT_IN_POW10)
CASE_BUILTIN_I (BUILT_IN_FFS)
@@ -10928,6 +10927,7 @@ tree_expr_nonnegative_p (tree t)
CASE_BUILTIN_F (BUILT_IN_EXPM1)
CASE_BUILTIN_F (BUILT_IN_FLOOR)
CASE_BUILTIN_F (BUILT_IN_FMOD)
+ CASE_BUILTIN_F (BUILT_IN_FREXP)
CASE_BUILTIN_F (BUILT_IN_LCEIL)
CASE_BUILTIN_F (BUILT_IN_LDEXP)
CASE_BUILTIN_F (BUILT_IN_LFLOOR)
OpenPOWER on IntegriCloud