------- Comment #30 from bje at gcc dot gnu dot org 2009-04-28 04:57 ------- Subject: Bug 35652
Author: bje Date: Tue Apr 28 04:56:47 2009 New Revision: 146870 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146870 Log: Revert: PR c++/35652 2009-03-27 Manuel Lopez-Ibanez <m...@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. Modified: trunk/gcc/ChangeLog trunk/gcc/builtins.c trunk/gcc/c-common.c trunk/gcc/c-common.h trunk/gcc/c-typeck.c trunk/gcc/cp/ChangeLog trunk/gcc/cp/typeck.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/warn/pr35652.C trunk/gcc/testsuite/gcc.dg/format/plus-1.c trunk/gcc/testsuite/gcc.dg/pr35652.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35652