gcc/gcc/cp
Simon Baldwin e4d3551548 Rolled back the following changes made in revision 134865:
* c-common.h (warn_array_subscript_range): New function.
        * c-common.c (warn_array_subscript_range): Ditto.
        * tree-vrp.c (check_array_ref): Corrected code to agree with
        comment, ignoring only arrays of size 0 or size 1.
        * c-typeck.c (build_array_ref): Call warn_array_subscript_range.

        * testsuite/gcc.dg/Warray-bounds.c: Updated for frontend warnings,
        additional tests for arrays of size 0 and size 1.
        * testsuite/g++.dg/warn/Warray-bounds.c: Ditto.
        * testsuite/gcc.dg/Warray-bounds-noopt.c: New testcase.
        * testsuite/g++.dg/warn/Warray-bounds-noopt.c: Ditto.

        * typeck.c (build_array_ref): Call warn_array_subscript_range.

From-SVN: r134889
2008-05-02 20:01:31 +00:00
..
ChangeLog Rolled back the following changes made in revision 134865: 2008-05-02 20:01:31 +00:00
ChangeLog-1993
ChangeLog-1994
ChangeLog-1995
ChangeLog-1996
ChangeLog-1997
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005 ChangeLog: split old changelogs by year 2007-05-04 00:16:02 +00:00
ChangeLog-2006 ChangeLog: split old changelogs by year 2007-05-04 00:16:02 +00:00
ChangeLog.ptr [multiple changes] 2007-06-15 22:42:36 -07:00
ChangeLog.tree-ssa
Make-lang.in t-uclinux (generated_files): Add sysroot-suffix.h. 2008-04-03 06:12:27 +00:00
NEWS
call.c re PR c++/35773 (auto_ptr references don't convert) 2008-04-17 10:01:26 -04:00
cfns.gperf
cfns.h Fix up whitespacing 2006-06-06 11:44:09 +00:00
class.c tree-cfg.c (verify_expr): Check with is_gimple_address. 2008-04-23 15:00:52 +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 re PR c++/35028 (ICE with strange ctor and firstprivate) 2008-02-19 11:18:29 +01:00
cp-lang.c expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations is true. 2008-03-18 17:11:30 +00:00
cp-objcp-common.c c-common.c (vector_types_convertible_p): Call langhook instead of comptypes. 2008-03-07 08:48:57 +00:00
cp-objcp-common.h re PR c++/35758 (vector_size attribute lost in function arguments for templates) 2008-04-24 18:29:40 +02: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 re PR c++/35758 (vector_size attribute lost in function arguments for templates) 2008-04-24 18:29:40 +02:00
cvt.c cpp-id-data.h (UC): Was U, conflicts with U... 2008-04-18 09:58:08 -04:00
cxx-pretty-print.c error.c (dump_expr): Don't deal directly with NEW_EXPR (and VEC_NEW_EXPR), forward to pp_expression. 2008-02-24 18:23:19 +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
decl.c re PR testsuite/35843 (-fdump-rtl-expand does not exist anymore) 2008-04-25 23:14:40 +00:00
decl.h typeck.c: Change copyright header to refer to version 3 of the GNU General Public... 2007-08-02 10:36:13 +00:00
decl2.c re PR c++/35758 (vector_size attribute lost in function arguments for templates) 2008-04-24 18:29:40 +02: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++/35332 (Broken diagnostics for builtins) 2008-03-26 14:03:30 +01:00
except.c typeck.c (composite_pointer_type_r): Add SFINAE support. 2008-03-25 13:53:58 +00:00
expr.c expr.c (cxx_expand_expr): Removed. 2007-10-26 08:19:14 +00:00
friend.c cp-tree.h (IS_AGGR_TYPE): Rename to MAYBE_CLASS_TYPE_P. 2008-03-21 18:56:51 +00:00
g++spec.c 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
init.c tree-cfg.c (verify_expr): Check with is_gimple_address. 2008-04-23 15:00:52 +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 cpp-id-data.h (UC): Was U, conflicts with U... 2008-04-18 09:58:08 -04:00
mangle.c cpp-id-data.h (UC): Was U, conflicts with U... 2008-04-18 09:58:08 -04:00
method.c re PR testsuite/35843 (-fdump-rtl-expand does not exist anymore) 2008-04-25 23:14:40 +00:00
name-lookup.c c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED, [...]): Delete. 2008-04-03 05:38:32 +00:00
name-lookup.h re PR c++/34912 (ICE with friend in local class) 2008-01-22 14:50:37 -05:00
operators.def typeck.c: Change copyright header to refer to version 3 of the GNU General Public... 2007-08-02 10:36:13 +00:00
optimize.c re PR target/35921 (Con/de-structor definition fails to override dllimport declaration) 2008-04-14 23:53:54 +00:00
parser.c re PR c++/35650 (Can't bind ref-to-function through using-decl. in namespace) 2008-04-29 10:58:20 +02:00
pt.c re PR c++/35986 (ICE with ambiguous template functions) 2008-04-30 16:24:18 +02:00
ptree.c typeck.c: Change copyright header to refer to version 3 of the GNU General Public... 2007-08-02 10:36:13 +00:00
repo.c re PR c++/34178 (Compilation using -frepo fails) 2007-12-09 22:26:29 +01:00
rtti.c tree-cfg.c (verify_expr): Check with is_gimple_address. 2008-04-23 15:00:52 +00:00
search.c cp-tree.h (IS_AGGR_TYPE): Rename to MAYBE_CLASS_TYPE_P. 2008-03-21 18:56:51 +00:00
semantics.c re PR c++/35316 (ICE with typeof/decltype and bit-fields) 2008-04-22 19:13:19 -04:00
tree.c re PR c++/35325 (ICE with fixed-point types in template parameter) 2008-04-21 13:58:53 -04:00
typeck.c Rolled back the following changes made in revision 134865: 2008-05-02 20:01:31 +00:00
typeck2.c tree-cfg.c (verify_expr): Check with is_gimple_address. 2008-04-23 15:00:52 +00:00