https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106496
Bug ID: 106496
Summary: [13 Regression] bootstrap fail with out of bounds
subscript warning on i686-darwin9
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: iains at gcc dot gnu.org
Target Milestone: ---
Created attachment 53393
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53393&action=edit
preprocessed source, unreduced
the following fail occurs for the stage2 build where Werror is in force.
In file included from /src-local/gcc-master/gcc/hash-table.h:248,
from /src-local/gcc-master/gcc/coretypes.h:486,
from /src-local/gcc-master/gcc/tree-ssa-threadbackward.cc:22:
In member function ‘T& vec<T, A, vl_embed>::operator[](unsigned int) [with T =
basic_block_def*; A = va_heap]’,
inlined from ‘const T& vec<T>::operator[](unsigned int) const [with T =
basic_block_def*]’ at /src-local/gcc-master/gcc/vec.h:1486:20,
inlined from ‘bool back_threader_profitability::profitable_path_p(const
vec<basic_block_def*>&, tree, edge, bool*)’ at
/src-local/gcc-master/gcc/tree-ssa-threadbackward.cc:781:37:
/src-local/gcc-master/gcc/vec.h:890:19: warning: array subscript 4294967294 is
above array bounds of ‘basic_block_def* [1]’ [-Warray-bounds]
890 | return m_vecdata[ix];
| ~~~~~~~~~^
/src-local/gcc-master/gcc/vec.h: In member function ‘bool
back_threader_profitability::profitable_path_p(const vec<basic_block_def*>&,
tree, edge, bool*)’:
/src-local/gcc-master/gcc/vec.h:635:5: note: while referencing
‘vec<basic_block_def*, va_heap, vl_embed>::m_vecdata’
635 | T m_vecdata[1];