aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2005-03-07 03:20:54 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2005-03-07 03:20:54 +0000
commit209eaaffeb2d308fc1e2553d95dd34d691f44537 (patch)
tree24168adefc1447fb94b40d069818a72c071b0ad3 /gcc
parentede62875331070c5abcf059665dcd0d7cdd237f8 (diff)
downloadgcc-209eaaffeb2d308fc1e2553d95dd34d691f44537.zip
gcc-209eaaffeb2d308fc1e2553d95dd34d691f44537.tar.gz
gcc-209eaaffeb2d308fc1e2553d95dd34d691f44537.tar.bz2
* fold-const.c (fold_binary): Remove handling of RANGE_EXPR.
From-SVN: r96002
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/fold-const.c10
2 files changed, 4 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 521aebe..6c46d58 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2005-03-07 Kazu Hirata <kazu@cs.umass.edu>
+
+ * fold-const.c (fold_binary): Remove handling of RANGE_EXPR.
+
2005-03-06 David Edelsohn <edelsohn@gnu.org>
* config/rs6000/predicates.md (branch_comparison_operator): Remove
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 1cab3fe..b5f919e 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -7176,16 +7176,6 @@ fold_binary (tree expr)
switch (code)
{
- case RANGE_EXPR:
- if (TREE_CONSTANT (t) != wins)
- {
- tem = copy_node (t);
- TREE_CONSTANT (tem) = wins;
- TREE_INVARIANT (tem) = wins;
- return tem;
- }
- return t;
-
case PLUS_EXPR:
/* A + (-B) -> A - B */
if (TREE_CODE (arg1) == NEGATE_EXPR)