Re: [PATCH] gimple-fold: fix location of loads for memory ops [PR104308]

2022-03-28 Thread Richard Biener via Gcc-patches
On Fri, Mar 25, 2022 at 10:27 PM David Malcolm via Gcc-patches wrote: > > PR analyzer/104308 reports that when -Wanalyzer-use-of-uninitialized-value > complains about certain memmove operations where the source is > uninitialized, the diagnostic uses UNKNOWN_LOCATION: > > In function 'main': > cc1

[PATCH] gimple-fold: fix location of loads for memory ops [PR104308]

2022-03-25 Thread David Malcolm via Gcc-patches
PR analyzer/104308 reports that when -Wanalyzer-use-of-uninitialized-value complains about certain memmove operations where the source is uninitialized, the diagnostic uses UNKNOWN_LOCATION: In function 'main': cc1: warning: use of uninitialized value '*(short unsigned int *)&s + 1' [CWE-457] [-W