]> git.ipfire.org Git - thirdparty/gcc.git/commit
revert: re PR c++/35652 (offset warning should be given in the front-end)
authorBen Elliston <bje@au.ibm.com>
Tue, 28 Apr 2009 04:56:47 +0000 (04:56 +0000)
committerBen Elliston <bje@gcc.gnu.org>
Tue, 28 Apr 2009 04:56:47 +0000 (14:56 +1000)
commitb2ed71b61a5f8a7d8c001516af6997d3fcaff403
treea7b2e8cf678fd319d296b231776140e3a5a093d0
parent903db43579c8059fb643086c5492e7c58f702bfe
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
gcc/ChangeLog
gcc/builtins.c
gcc/c-common.c
gcc/c-common.h
gcc/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/pr35652.C
gcc/testsuite/gcc.dg/format/plus-1.c
gcc/testsuite/gcc.dg/pr35652.c