Commit 4e856798 by Paolo Carlini Committed by Paolo Carlini

c-common.c (pointer_int_sum): Remove dead code.

2013-04-03  Paolo Carlini  <paolo.carlini@oracle.com>

	* c-common.c (pointer_int_sum): Remove dead code.

From-SVN: r197458
parent f57ddb5b
2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
* c-common.c (pointer_int_sum): Remove dead code.
2013-03-09 Richard Sandiford <rdsandiford@googlemail.com> 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
PR middle-end/56524 PR middle-end/56524
......
...@@ -4290,12 +4290,6 @@ pointer_int_sum (location_t loc, enum tree_code resultcode, ...@@ -4290,12 +4290,6 @@ pointer_int_sum (location_t loc, enum tree_code resultcode,
"pointer to a function used in arithmetic"); "pointer to a function used in arithmetic");
size_exp = integer_one_node; 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 else
size_exp = size_in_bytes (TREE_TYPE (result_type)); size_exp = size_in_bytes (TREE_TYPE (result_type));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment