]> git.ipfire.org Git - thirdparty/gcc.git/commit
c: Range-check indexing of SVE ACLE vectors
authorTejas Belagod <tejas.belagod@arm.com>
Thu, 5 Sep 2024 09:05:59 +0000 (14:35 +0530)
committerTejas Belagod <tejas.belagod@arm.com>
Fri, 29 Nov 2024 11:31:29 +0000 (17:01 +0530)
commit47fa008ad880c115bce4007fe9808e48b0dcf859
treef9e05913e9b3db2386f33048128dadbfae8ef291
parent761cf60218890af31cfb4a4cebc4509d3262a9bb
c: Range-check indexing of SVE ACLE vectors

This patch adds a check for non-GNU vectors to warn that the index is outside
the range of a fixed vector size.  For VLA vectors, we don't diagnose.

gcc/c-family/ChangeLog:

* c-common.cc (convert_vector_to_array_for_subscript): Add
range-check for target vector types.
gcc/c-family/c-common.cc