Re: [PATCH] fold constant flexarrays to strings (PR 91490)

2019-08-22 Thread Martin Sebor
On 8/22/19 4:37 PM, Jeff Law wrote: On 8/22/19 4:23 PM, Martin Sebor wrote: On 8/22/19 3:27 PM, Jeff Law wrote: On 8/21/19 2:50 PM, Martin Sebor wrote: This patch is a subset of the solution for PR 91457 whose main goal is to eliminate inconsistencies in warnings issued for out-of-bounds 

Re: [PATCH] fold constant flexarrays to strings (PR 91490)

2019-08-22 Thread Jeff Law
On 8/22/19 4:23 PM, Martin Sebor wrote: > On 8/22/19 3:27 PM, Jeff Law wrote: >> On 8/21/19 2:50 PM, Martin Sebor wrote: >>> This patch is a subset of the solution for PR 91457 whose main >>> goal is to eliminate inconsistencies in warnings issued for >>> out-of-bounds accesses to the various 

Re: [PATCH] fold constant flexarrays to strings (PR 91490)

2019-08-22 Thread Martin Sebor
On 8/22/19 3:27 PM, Jeff Law wrote: On 8/21/19 2:50 PM, Martin Sebor wrote: This patch is a subset of the solution for PR 91457 whose main goal is to eliminate inconsistencies in warnings issued for out-of-bounds accesses to the various flavors of flexible array members of constant objects.  

Re: [PATCH] fold constant flexarrays to strings (PR 91490)

2019-08-22 Thread Jeff Law
On 8/22/19 3:55 PM, Martin Sebor wrote: >>> diff --git a/gcc/expr.c b/gcc/expr.c >>> index 92979289e83..d16e0982dcf 100644 >>> --- a/gcc/expr.c >>> +++ b/gcc/expr.c >>> @@ -11402,6 +11402,16 @@ is_aligning_offset (const_tree offset, >>> const_tree exp) >>>   tree >>>   string_constant (tree arg,

Re: [PATCH] fold constant flexarrays to strings (PR 91490)

2019-08-22 Thread Martin Sebor
On 8/21/19 4:28 PM, Jeff Law wrote: On 8/21/19 2:50 PM, Martin Sebor wrote: This patch is a subset of the solution for PR 91457 whose main goal is to eliminate inconsistencies in warnings issued for out-of-bounds accesses to the various flavors of flexible array members of constant objects.  

Re: [PATCH] fold constant flexarrays to strings (PR 91490)

2019-08-22 Thread Jeff Law
On 8/21/19 2:50 PM, Martin Sebor wrote: > This patch is a subset of the solution for PR 91457 whose main > goal is to eliminate inconsistencies in warnings issued for > out-of-bounds accesses to the various flavors of flexible array > members of constant objects.  That patch was posted here: >   

Re: [PATCH] fold constant flexarrays to strings (PR 91490)

2019-08-21 Thread Jeff Law
On 8/21/19 2:50 PM, Martin Sebor wrote: > This patch is a subset of the solution for PR 91457 whose main > goal is to eliminate inconsistencies in warnings issued for > out-of-bounds accesses to the various flavors of flexible array > members of constant objects.  That patch was posted here: >   

[PATCH] fold constant flexarrays to strings (PR 91490)

2019-08-21 Thread Martin Sebor
This patch is a subset of the solution for PR 91457 whose main goal is to eliminate inconsistencies in warnings issued for out-of-bounds accesses to the various flavors of flexible array members of constant objects. That patch was posted here: