diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index dd6cb296a44..a13aa7d1ae9 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,7 @@ +2013-04-03 Paolo Carlini + + * c-common.c (pointer_int_sum): Remove dead code. + 2013-03-09 Richard Sandiford PR middle-end/56524 diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c index c7cdd0fc7a0..dd94ff19eed 100644 --- a/gcc/c-family/c-common.c +++ b/gcc/c-family/c-common.c @@ -4290,12 +4290,6 @@ pointer_int_sum (location_t loc, enum tree_code resultcode, "pointer to a function used in arithmetic"); size_exp = integer_one_node; } - else if (TREE_CODE (TREE_TYPE (result_type)) == METHOD_TYPE) - { - pedwarn (loc, pedantic ? OPT_Wpedantic : OPT_Wpointer_arith, - "pointer to member function used in arithmetic"); - size_exp = integer_one_node; - } else size_exp = size_in_bytes (TREE_TYPE (result_type));