[Bug tree-optimization/65178] incorrect -Wmaybe-uninitialized when using nested loops

2020-01-14 Thread winter-...@bfw-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65178 --- Comment #16 from Leon Winter --- I just checked again with gcc 9.2.1 and the issue disappeared.

[Bug tree-optimization/65178] incorrect -Wmaybe-uninitialized when using nested loops

2016-03-11 Thread winter-...@bfw-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65178 --- Comment #14 from Leon Winter <winter-...@bfw-online.de> --- I am not sure how smart he diagnostic of GCC is supposed to be it seems that the source base of GCC itself has fallen victim to the false warning. The following commit

[Bug tree-optimization/65178] incorrect -Wmaybe-uninitialized when using nested loops

2016-03-09 Thread winter-...@bfw-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65178 --- Comment #13 from Leon Winter <winter-...@bfw-online.de> --- The incorrect warning is only displayed when using an optimization level better than none (-O0) (this applies to your testcase and my real-world code). Your minimized tes

[Bug tree-optimization/65178] incorrect -Wmaybe-uninitialized when using nested loops

2016-03-03 Thread winter-...@bfw-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65178 --- Comment #12 from Leon Winter <winter-...@bfw-online.de> --- > Are you saying that GCC 4.9 does not warn? That would be surprising and a > regression. If you could find the revision that started warning, that would > be help

[Bug tree-optimization/65178] incorrect -Wmaybe-uninitialized when using nested loops

2016-03-03 Thread winter-...@bfw-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65178 --- Comment #11 from Leon Winter <winter-...@bfw-online.de> --- Created attachment 37855 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37855=edit Current test case gcc version 4.9.3 $ gcc -std=gnu99 -O1 -Wall -Wextra -o foo main

[Bug tree-optimization/65178] incorrect -Wmaybe-uninitialized when using nested loops

2016-03-03 Thread winter-...@bfw-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65178 --- Comment #9 from Leon Winter <winter-...@bfw-online.de> --- > If you declare it outside the loop body, gcc generates exactly the same code > for a 'for' and a 'do-while'. You are right. When I did the testing, I mistakenly l

[Bug tree-optimization/65178] incorrect -Wmaybe-uninitialized when using nested loops

2016-03-02 Thread winter-...@bfw-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65178 --- Comment #7 from Leon Winter <winter-...@bfw-online.de> --- > #pragma GCC diagnostic ignored "-Wuninitialized" > > is your friend. We do like this warning and threat it as an error as such situations normally are a

[Bug tree-optimization/63278] Fails to compute loop bound from constant string

2016-03-01 Thread winter-...@bfw-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63278 Leon Winter <winter-...@bfw-online.de> changed: What|Removed |Added CC| |winter-.

[Bug tree-optimization/65178] incorrect -Wmaybe-uninitialized when using nested loops

2016-03-01 Thread winter-...@bfw-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65178 --- Comment #5 from Leon Winter <winter-...@bfw-online.de> --- Still persists.

[Bug tree-optimization/65178] incorrect -Wmaybe-uninitialized when using nested loops

2015-11-23 Thread winter-...@bfw-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65178 Leon Winter <winter-...@bfw-online.de> changed: What|Removed |Added Version|5.0

[Bug tree-optimization/65178] incorrect -Wmaybe-uninitialized when using nested loops

2015-02-25 Thread winter-...@bfw-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65178 Leon Winter winter-...@bfw-online.de changed: What|Removed |Added Version|4.9.1 |5.0 --- Comment

[Bug tree-optimization/65178] New: incorrect -Wmaybe-uninitialized when nested loops

2015-02-23 Thread winter-...@bfw-online.de
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: winter-...@bfw-online.de Created attachment 34845 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34845action=edit Testcase This program incorrectly warns about an uninitialized variable. If one