* c-typeck.c (build_c_cast): Remove dead code.
authorRichard Henderson <rth@cygnus.com>
Sat, 6 May 2000 21:54:51 +0000 (14:54 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Sat, 6 May 2000 21:54:51 +0000 (14:54 -0700)
From-SVN: r33739

gcc/ChangeLog
gcc/c-typeck.c

index 5a589bb4bfb3e7b58e2a4a7d3b48d226a989d6dd..9c7525de849c861f26ab56ce6592593684c7a986 100644 (file)
@@ -1,3 +1,7 @@
+2000-05-06  Richard Henderson  <rth@cygnus.com>
+
+       * c-typeck.c (build_c_cast): Remove dead code.
+
 2000-05-06  Richard Henderson  <rth@cygnus.com>
 
        * flow.c (split_edge): Don't allocate global_live_at_start for
index 62a3b256469b4edc2e93261435a73909dfdaa70d..efc38a81e73ffc183cc55a63bf674b29a1b9f441 100644 (file)
@@ -3702,11 +3702,6 @@ build_c_cast (type, expr)
       if (TREE_CODE (type) == POINTER_TYPE
          && TREE_CODE (otype) == INTEGER_TYPE
          && TYPE_PRECISION (type) != TYPE_PRECISION (otype)
-#if 0
-         /* Don't warn about converting 0 to pointer,
-            provided the 0 was explicit--not cast or made by folding.  */
-         && !(TREE_CODE (value) == INTEGER_CST && integer_zerop (value))
-#endif
          /* Don't warn about converting any constant.  */
          && !TREE_CONSTANT (value))
        warning ("cast to pointer from integer of different size");