Re: [PATCH] tree-optimization/104970: Limit size computation for access attribute

2022-03-24 Thread Jakub Jelinek via Gcc-patches
On Thu, Mar 24, 2022 at 08:39:44AM +0530, Siddhesh Poyarekar wrote: > Limit object size computation only to the simple case where access > attribute has been explicitly specified. The object passed to > __builtin_dynamic_object_size could either be a pointer or a VLA whose > size has been

[PATCH] tree-optimization/104970: Limit size computation for access attribute

2022-03-23 Thread Siddhesh Poyarekar
Limit object size computation only to the simple case where access attribute has been explicitly specified. The object passed to __builtin_dynamic_object_size could either be a pointer or a VLA whose size has been described only using access attribute. Further, return a valid size only if the