[Bug middle-end/42561] missing uninitialized variable warning on simple arrays

2018-09-16 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42561 Manuel López-Ibáñez changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/42561] missing uninitialized variable warning on simple arrays

2010-10-18 Thread matt at use dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42561 Matt Hargett changed: What|Removed |Added Version|4.5.0 |4.6.0 --- Comment #7 from Matt Hargett 20

[Bug middle-end/42561] missing uninitialized variable warning on simple arrays

2010-02-24 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2010-02-24 13:46 --- Note that uninitialized warnings on memory are severely limited by design. It's not hard to improve that but it will be very costly in terms of compile-time. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42561

[Bug middle-end/42561] missing uninitialized variable warning on simple arrays

2010-02-24 Thread manu at gcc dot gnu dot org
--- Comment #5 from manu at gcc dot gnu dot org 2010-02-24 13:31 --- (In reply to comment #4) > > What would be the implementation steps to fix this issue? 1) Create a small self-contained testcase 2) Examine the dumps (-fdump-tree- options) and debug the compiler to know exactly why

[Bug middle-end/42561] missing uninitialized variable warning on simple arrays

2009-12-31 Thread matt at use dot net
--- Comment #4 from matt at use dot net 2009-12-31 19:53 --- It seems like this analysis would succeed if the intrinsic memcpy for copying the [2] and [4] were inlined before this analysis. Is there a reason that the intrinsic version of memcpy isn't substituted in before this analysis i

[Bug middle-end/42561] missing uninitialized variable warning on simple arrays

2009-12-31 Thread matt at use dot net
--- Comment #3 from matt at use dot net 2009-12-31 19:49 --- Created an attachment (id=19432) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19432&action=view) slightly different example that eliminates heap dependency to reproduce: g++ -O3 -Wall gcc-missing-uninit.cpp result: giv

[Bug middle-end/42561] missing uninitialized variable warning on simple arrays

2009-12-30 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2009-12-31 02:23 --- Well with: int32_t actuallyRead = read(&v, SIZE_OF_BYTE); And inlining turned on all the way, this: if (toRead < 1) ... memcpy(data, _totPtr, toRead); Becomes just: *_totPtr = *data; whic

[Bug middle-end/42561] missing uninitialized variable warning on simple arrays

2009-12-30 Thread matt at use dot net
--- Comment #1 from matt at use dot net 2009-12-31 02:15 --- Created an attachment (id=19428) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19428&action=view) source file to replicate (-O3 is required, would be nice if it just worked with -O2): g++ -O3 -Wall -c gcc-missing-uninit.