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
This commit is contained in:
parent
f57ddb5b51
commit
4e85679863
2 changed files with 4 additions and 6 deletions
|
@ -1,3 +1,7 @@
|
|||
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>
|
||||
|
||||
PR middle-end/56524
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue