gcc/gcc/cp
Ben Elliston b2ed71b61a 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
2009-04-28 14:56:47 +10:00
..
call.c combine.c (record_value_for_reg): Change 0 to VOIDmode, twice. 2009-04-24 15:31:38 +00:00
cfns.gperf ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
cfns.h ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog revert: re PR c++/35652 (offset warning should be given in the front-end) 2009-04-28 14:56:47 +10:00
ChangeLog-1993 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-1994 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-1995 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-1996 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-1997 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-1998 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-1999 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2000 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2001 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2002 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2003 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2004 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2005 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2006 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2007 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog-2008 ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog.ptr ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
ChangeLog.tree-ssa ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
class.c Fix enum conversions which are invalid in C++: 2009-04-20 19:35:00 +00:00
config-lang.in typeck.c: Change copyright header to refer to version 3 of the GNU General Public... 2007-08-02 10:36:13 +00:00
cp-gimplify.c combine.c (record_value_for_reg): Change 0 to VOIDmode, twice. 2009-04-24 15:31:38 +00:00
cp-lang.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
cp-objcp-common.c c-common.c (c_expand_expr, c_staticp): Remove. 2009-03-29 18:26:43 +00:00
cp-objcp-common.h c-common.c (c_expand_expr, c_staticp): Remove. 2009-03-29 18:26:43 +00:00
cp-tree.def decl.c (cp_tree_node_structure): Kill TINST_LEVEL case. 2007-08-25 07:36:35 +00:00
cp-tree.h combine.c (record_value_for_reg): Change 0 to VOIDmode, twice. 2009-04-24 15:31:38 +00:00
cvt.c re PR c++/39875 (Wrong "value computed is not used" warning) 2009-04-27 07:54:32 +02:00
cxx-pretty-print.c objc-act.c: Fix comment typos. 2008-07-21 19:29:07 +00:00
cxx-pretty-print.h re PR c++/33494 (Broken diagnostic: 'modop_expr' not supported by dump_expr) 2007-11-01 02:17:02 +00:00
decl2.c combine.c (record_value_for_reg): Change 0 to VOIDmode, twice. 2009-04-24 15:31:38 +00:00
decl.c hashtab.h: Update GTY annotations to new syntax 2009-04-22 14:29:36 -04:00
decl.h re PR c++/37806 (CV-qualifiers on function typedef's are inconsistently accepted depending on typedef scope) 2009-03-31 14:31:17 -04:00
dump.c cp-tree.h (IS_AGGR_TYPE): Rename to MAYBE_CLASS_TYPE_P. 2008-03-21 18:56:51 +00:00
error.c re PR c++/13358 (long long and C++ do not mix well) 2009-04-20 22:12:52 +00:00
except.c except.c (choose_personality_routine): Set terminate_node to abort for java exceptions. 2009-03-27 22:47:27 +00:00
expr.c expr.c (cxx_expand_expr): Removed. 2007-10-26 08:19:14 +00:00
friend.c diagnostic.c (inform): Add an explicit location_t parameter. 2008-08-20 13:35:00 +00:00
g++spec.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
init.c re PR c++/39803 (Bogus 'unused value' warning on declarations of non-POD arrays) 2009-04-20 21:13:08 +00:00
lang-specs.h re PR pch/13676 (GCC failes to recognize files ending in .hpp as headers to be precompiled) 2007-08-06 11:10:19 +00:00
lex.c re PR c++/39380 (All programs that link Java and C++ libraries fail when optimized) 2009-03-26 15:17:26 +00:00
Make-lang.in [multiple changes] 2009-04-14 16:18:49 -04:00
mangle.c hashtab.h: Update GTY annotations to new syntax 2009-04-22 14:29:36 -04:00
method.c re PR middle-end/39378 (Multiple inheritence thunk not working with -mthumb) 2009-03-17 20:18:21 +00:00
name-lookup.c hashtab.h: Update GTY annotations to new syntax 2009-04-22 14:29:36 -04:00
name-lookup.h hashtab.h: Update GTY annotations to new syntax 2009-04-22 14:29:36 -04:00
NEWS ABOUT-GCC-NLS, [...]: Add copyright and license notices. 2009-04-21 20:03:23 +01:00
operators.def decl.c (grokfndecl): Set DECL_CONTEXT on parms. 2009-03-17 19:31:18 -04:00
optimize.c optimize.c (maybe_clone_body): Remove DECL_INLINE. 2008-07-29 10:49:30 +00:00
parser.c combine.c (record_value_for_reg): Change 0 to VOIDmode, twice. 2009-04-24 15:31:38 +00:00
pt.c re PR c++/38228 (ICE with invalid use of bound member function) 2009-04-23 13:15:33 +02:00
ptree.c ptree.c (cxx_print_decl): Pretty-print full name of function/template. 2009-03-31 15:13:15 -04:00
repo.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
rtti.c hashtab.h: Update GTY annotations to new syntax 2009-04-22 14:29:36 -04:00
search.c Update Copyright years for files modified in 2008 and/or 2009. 2009-02-20 16:20:38 +01:00
semantics.c collect2.c (is_ctor_dtor): Change type of ret field in struct names to symkind. 2009-04-27 20:25:48 +00:00
tree.c re PR c/16202 (The -Wsequence-point warning misses many important instances) 2009-04-21 07:47:13 +00:00
typeck2.c hashtab.h: Update GTY annotations to new syntax 2009-04-22 14:29:36 -04:00
typeck.c revert: re PR c++/35652 (offset warning should be given in the front-end) 2009-04-28 14:56:47 +10:00