From: Richard Henderson Date: Sat, 6 May 2000 21:54:51 +0000 (-0700) Subject: * c-typeck.c (build_c_cast): Remove dead code. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6efd816040b35801118c5a2518bf8950efe3b183;p=gcc.git * c-typeck.c (build_c_cast): Remove dead code. From-SVN: r33739 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5a589bb4bfb..9c7525de849 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2000-05-06 Richard Henderson + + * c-typeck.c (build_c_cast): Remove dead code. + 2000-05-06 Richard Henderson * flow.c (split_edge): Don't allocate global_live_at_start for diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 62a3b256469..efc38a81e73 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -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");