Re: [PATCH] Avoid duplicate -Warray-bounds warnings (PR tree-optimization/86614)

2018-11-22 Thread Richard Biener
On Thu, 22 Nov 2018, Jakub Jelinek wrote: > Hi! > > On the following testcases, we warn twice, once in the FE array bounds > warning code and once later on. > The FE array bounds warning code sets TREE_NO_WARNING on the corresponding > MEM_REF, so it is easy to avoid the duplicate warning later.

[PATCH] Avoid duplicate -Warray-bounds warnings (PR tree-optimization/86614)

2018-11-22 Thread Jakub Jelinek
Hi! On the following testcases, we warn twice, once in the FE array bounds warning code and once later on. The FE array bounds warning code sets TREE_NO_WARNING on the corresponding MEM_REF, so it is easy to avoid the duplicate warning later. Bootstrapped/regtested on x86_64-linux, ok for trunk?