fold-const.c (fold_unary_loc): Remove bogus code.
authorRichard Guenther <rguenther@suse.de>
Thu, 26 May 2011 13:54:23 +0000 (13:54 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 26 May 2011 13:54:23 +0000 (13:54 +0000)
2011-05-26  Richard Guenther  <rguenther@suse.de>

* fold-const.c (fold_unary_loc): Remove bogus code.

From-SVN: r174290

gcc/ChangeLog
gcc/fold-const.c

index f6a3ba788ceab1e95471c3f4d803621dccd7426e..2b8478e848079322ac32572c7d4880ccf2ffa9ab 100644 (file)
@@ -1,3 +1,7 @@
+2011-05-26  Richard Guenther  <rguenther@suse.de>
+
+       * fold-const.c (fold_unary_loc): Remove bogus code.
+
 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
 
        * tree.h (struct tree_identifier): Inherit from tree_typed, not
index d399c5376d2c341840f9044b5abbd10985fa5d2f..c9c7afa068b17dca49c3f8c66564f4379ce070eb 100644 (file)
@@ -7639,21 +7639,6 @@ fold_unary_loc (location_t loc, enum tree_code code, tree type, tree op0)
                                                    0)));
          return tem;
        }
-      else if (COMPARISON_CLASS_P (arg0))
-       {
-         if (TREE_CODE (type) == BOOLEAN_TYPE)
-           {
-             arg0 = copy_node (arg0);
-             TREE_TYPE (arg0) = type;
-             return arg0;
-           }
-         else if (TREE_CODE (type) != INTEGER_TYPE)
-           return fold_build3_loc (loc, COND_EXPR, type, arg0,
-                               fold_build1_loc (loc, code, type,
-                                            integer_one_node),
-                               fold_build1_loc (loc, code, type,
-                                            integer_zero_node));
-       }
    }
 
   switch (code)