PING 2 [PATCH] avoid -Warray-bounds checks for vtable assignments (PR 98266)

Martin Sebor msebor@gmail.com
Sat Feb 6 17:12:55 GMT 2021


Ping 2:
   https://gcc.gnu.org/pipermail/gcc-patches/2021-January/563894.html

On 1/29/21 10:22 AM, Martin Sebor wrote:
> Ping:
> https://gcc.gnu.org/pipermail/gcc-patches/2021-January/563894.html
> 
> On 1/19/21 5:56 PM, Martin Sebor wrote:
>> Similar to the problem reported for -Wstringop-overflow in pr98266
>> and already fixed, -Warray-bounds is also susceptible to false
>> positives in assignments and copies involving virtual inheritance.
>> Because the two warnings don't share code yet (hopefully in GCC 12)
>> the attached patch adds its own workaround for this problem to
>> gimple-array-bounds.cc, this one slightly more crude because of
>> the limited insight the array bounds checking has into the checked
>> expressions.
>>
>> Tested on x86_64-linux.
>>
>> Martin
> 



More information about the Gcc-patches mailing list