]> gcc.gnu.org Git - gcc.git/commit
re PR tree-optimization/43270 (array-bounds false negative)
authorRichard Guenther <rguenther@suse.de>
Wed, 7 Apr 2010 12:31:32 +0000 (12:31 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 7 Apr 2010 12:31:32 +0000 (12:31 +0000)
commit12bd5a1e9f42026f7ead1bad788f9cade67f88b7
tree92208bc8d4ba4a670add9a969acc3e87e362914a
parenta775239672d98c299f0bdde4e7465529388af8eb
re PR tree-optimization/43270 (array-bounds false negative)

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.

* g++.dg/warn/Warray-bounds-4.C: New testcase.
* gcc.dg/Warray-bounds-7.c: Likewise.

From-SVN: r158058
gcc/ChangeLog
gcc/Makefile.in
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Warray-bounds-4.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/Warray-bounds-7.c [new file with mode: 0644]
gcc/tree-ssa-pre.c
gcc/tree-ssa-sccvn.c
gcc/tree-ssa-sccvn.h
gcc/tree-vrp.c
This page took 0.063498 seconds and 5 git commands to generate.