aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2009-04-28 04:56:47 +0000
committerBen Elliston <bje@gcc.gnu.org>2009-04-28 14:56:47 +1000
commitb2ed71b61a5f8a7d8c001516af6997d3fcaff403 (patch)
treea7b2e8cf678fd319d296b231776140e3a5a093d0 /gcc/c-common.h
parent903db43579c8059fb643086c5492e7c58f702bfe (diff)
downloadgcc-b2ed71b61a5f8a7d8c001516af6997d3fcaff403.zip
gcc-b2ed71b61a5f8a7d8c001516af6997d3fcaff403.tar.gz
gcc-b2ed71b61a5f8a7d8c001516af6997d3fcaff403.tar.bz2
revert: re PR c++/35652 (offset warning should be given in the front-end)
Revert: PR c++/35652 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org> gcc/ * builtins.c (c_strlen): Do not warn here. * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum. * c-common.c (pointer_int_sum): Take an explicit location. Warn about offsets out of bounds. * c-common.h (pointer_int_sum): Adjust declaration. cp/ * typeck.c (cp_pointer_sum): Adjust call to pointer_int_sum. testsuite/ * gcc.dg/pr35652.C: New. * g++.dg/warn/pr35652.C: New. * gcc.dg/format/plus-1.c: Adjust message. From-SVN: r146870
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index 1e313cf..616273a 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -817,7 +817,7 @@ extern tree shorten_binary_op (tree result_type, tree op0, tree op1, bool bitwis
and, if so, perhaps change them both back to their original type. */
extern tree shorten_compare (tree *, tree *, tree *, enum tree_code *);
-extern tree pointer_int_sum (location_t, enum tree_code, tree, tree);
+extern tree pointer_int_sum (enum tree_code, tree, tree);
/* Add qualifiers to a type, in the fashion for C. */
extern tree c_build_qualified_type (tree, int);