aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/resolve.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2008-03-15 14:27:55 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2008-03-15 14:27:55 +0000
commit1fd8906045746e33fbb2a14f8d6dbaa67045dc5b (patch)
tree280eea0f927f26121b5402f767c4c4a84f40d518 /gcc/fortran/resolve.c
parent693092fb624671b2b00b309468fd24b6cd9b4420 (diff)
downloadgcc-1fd8906045746e33fbb2a14f8d6dbaa67045dc5b.zip
gcc-1fd8906045746e33fbb2a14f8d6dbaa67045dc5b.tar.gz
gcc-1fd8906045746e33fbb2a14f8d6dbaa67045dc5b.tar.bz2
re PR middle-end/35593 (spurious warning "array subscript is below array bounds" with void* function argument plus -O2)
2008-03-15 Richard Guenther <rguenther@suse.de> PR middle-end/35593 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure to not produce negative array indices if not allowed. Add parameter to indicate that. (maybe_fold_offset_to_component_ref): Allow negative array indices only for the first member of a structure. (maybe_fold_offset_to_reference): Allow negative array indices. (maybe_fold_stmt_addition): Likewise. * g++.dg/warn/Warray-bounds-3.C: New testcase. From-SVN: r133249
Diffstat (limited to 'gcc/fortran/resolve.c')
0 files changed, 0 insertions, 0 deletions