[Bug middle-end/86940] False positive with -Wuninitialized

2018-08-13 Thread aerkiaga6 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86940 --- Comment #4 from Aritz Erkiaga --- Ok, then this is not a bug. Maybe a feature request? Well, actually I think it would be safe for the compiler to assume that libc (and possibly other external libraries) don't have access to variables define

[Bug middle-end/86940] False positive with -Wuninitialized

2018-08-13 Thread aerkiaga6 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86940 --- Comment #2 from Aritz Erkiaga --- I don't know. Somehow it does know it when the testcase is compiled without any -O flags, but it not something trivial, and so I would not be surprised if GCC were not able to get that information.

[Bug middle-end/86940] New: False positive with -Wuninitialized

2018-08-13 Thread aerkiaga6 at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: aerkiaga6 at gmail dot com Target Milestone: --- Created attachment 44532 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44532&action=edit Preprocessed source Compiling the code with the following command: