[Bug middle-end/79768] `-Wmaybe-uninitialized' false positive with optimisation

2017-03-03 Thread caspervector at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79768 --- Comment #4 from Casper Ti. Vector --- (In reply to Manuel López-Ibáñez from comment #3) > This is just too weird code for GCC to analyze correctly at -O2. It doesn't > warn at -O3 (with 5.4.0 20160609) The coding pattern is quite common

[Bug middle-end/79768] `-Wmaybe-uninitialized' false positive with optimisation

2017-02-28 Thread caspervector at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79768 --- Comment #2 from Casper Ti. Vector --- Created attachment 40856 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40856=edit Output of `sed '/^#/d; /^[ \t]*$/d' < gcc_bug.i'

[Bug middle-end/79768] `-Wmaybe-uninitialized' false positive with optimisation

2017-02-28 Thread caspervector at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79768 --- Comment #1 from Casper Ti. Vector --- Created attachment 40855 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40855=edit Output of `gcc -v -save-temps -Wall -O2 -c gcc_bug.c -o gcc_bug.o'

[Bug middle-end/79768] New: `-Wmaybe-uninitialized' false positive with optimisation

2017-02-28 Thread caspervector at gmail dot com
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: caspervector at gmail dot com Target Milestone: --- The following source file (here called `gcc_bug.c') triggers `-Wmaybe-uninitialized' when compiled with `-Os', `-O1' or stronger