diff options
author | Richard Henderson <rth@cygnus.com> | 2000-05-06 14:54:51 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-05-06 14:54:51 -0700 |
commit | 6efd816040b35801118c5a2518bf8950efe3b183 (patch) | |
tree | 7e91c238169733fe6589040811065eae75dd2a9c | |
parent | 02a749ecc36f4c119b02ebb54377db90d09c0774 (diff) | |
download | gcc-6efd816040b35801118c5a2518bf8950efe3b183.zip gcc-6efd816040b35801118c5a2518bf8950efe3b183.tar.gz gcc-6efd816040b35801118c5a2518bf8950efe3b183.tar.bz2 |
* c-typeck.c (build_c_cast): Remove dead code.
From-SVN: r33739
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c-typeck.c | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5a589bb..9c7525d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 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 the new block unless the old blocks had them as well. diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 62a3b25..efc38a8 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"); |