PR tree-optimization/43270
* tree-vrp.c (check_array_ref): Fix flexible array member
detection.
* tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
* tree-ssa-pre.c (phi_translate_1): Adjust.
(fully_constant_expression): Split out vn_reference handling to ...
* tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
Fold reads from constant strings.
(vn_reference_lookup): Handle fully constant references.
(vn_reference_lookup_pieces): Likewise.
* Makefile.in (expmed.o-warn): Add -Wno-error.
* g++.dg/warn/Warray-bounds-4.C: New testcase.
* gcc.dg/Warray-bounds-7.c: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158058
138bc75d-0d04-0410-961f-
82ee72b054a4
+2010-04-07 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/43270
+ * tree-vrp.c (check_array_ref): Fix flexible array member
+ detection.
+ * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
+ * tree-ssa-pre.c (phi_translate_1): Adjust.
+ (fully_constant_expression): Split out vn_reference handling to ...
+ * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
+ Fold reads from constant strings.
+ (vn_reference_lookup): Handle fully constant references.
+ (vn_reference_lookup_pieces): Likewise.
+ * Makefile.in (expmed.o-warn): Add -Wno-error.
+
2010-04-07 Martin Jambor <mjambor@suse.cz>
* tree-sra.c (find_param_candidates): Allow scalar va_list types.
+2010-04-07 Richard Guenther <rguenther@suse.de>
+
+ PR tree-optimization/43270
+ * g++.dg/warn/Warray-bounds-4.C: New testcase.
+ * gcc.dg/Warray-bounds-7.c: Likewise.
+
2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/bit_packed_array.ad[sb]: Rename into...