public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug middle-end/90043] Turn on -Winit-self by default for -Wuninitialized [not found] <bug-90043-4@http.gcc.gnu.org/bugzilla/> @ 2021-04-13 19:55 ` msebor at gcc dot gnu.org 2021-04-13 21:27 ` pinskia at gcc dot gnu.org 2022-01-26 17:48 ` msebor at gcc dot gnu.org 2 siblings, 0 replies; 3+ messages in thread From: msebor at gcc dot gnu.org @ 2021-04-13 19:55 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90043 Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2019-09-29 00:00:00 |2021-4-13 Blocks| |24639 --- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> --- No progress in GCC 11 (my bad). I'll see if I can remember for GCC 12. Below is a C test case (in C++ the warning is included in -Wall). $ (set -x && cat pr90043.c && gcc -S -Wall -Wextra -Wpedantic pr90043.c && gcc -S -Wall -Wextra -Wpedantic -Winit-self pr90043.c) + cat pr90043.c int f (void) { int i = i; return i; } + gcc -S -Wall -Wextra -Wpedantic pr90043.c + gcc -S -Wall -Wextra -Wpedantic -Winit-self pr90043.c pr90043.c: In function ‘f’: pr90043.c:3:7: warning: ‘i’ is used uninitialized [-Wuninitialized] 3 | int i = i; | ^ pr90043.c:3:7: note: ‘i’ was declared here 3 | int i = i; | ^ Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639 [Bug 24639] [meta-bug] bug to track all Wuninitialized issues ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug middle-end/90043] Turn on -Winit-self by default for -Wuninitialized [not found] <bug-90043-4@http.gcc.gnu.org/bugzilla/> 2021-04-13 19:55 ` [Bug middle-end/90043] Turn on -Winit-self by default for -Wuninitialized msebor at gcc dot gnu.org @ 2021-04-13 21:27 ` pinskia at gcc dot gnu.org 2022-01-26 17:48 ` msebor at gcc dot gnu.org 2 siblings, 0 replies; 3+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-04-13 21:27 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90043 --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I remember when I added -Winit-self, it was specifically because that was the original documented way of disabling uninitialized variables. I don't remember if I came up with the option name or it was changed. It was a long time back in the 4.0 days even. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug middle-end/90043] Turn on -Winit-self by default for -Wuninitialized [not found] <bug-90043-4@http.gcc.gnu.org/bugzilla/> 2021-04-13 19:55 ` [Bug middle-end/90043] Turn on -Winit-self by default for -Wuninitialized msebor at gcc dot gnu.org 2021-04-13 21:27 ` pinskia at gcc dot gnu.org @ 2022-01-26 17:48 ` msebor at gcc dot gnu.org 2 siblings, 0 replies; 3+ messages in thread From: msebor at gcc dot gnu.org @ 2022-01-26 17:48 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90043 Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|msebor at gcc dot gnu.org |unassigned at gcc dot gnu.org Status|ASSIGNED |NEW --- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> --- I'm not working on this anymore. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-01-26 17:48 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-90043-4@http.gcc.gnu.org/bugzilla/> 2021-04-13 19:55 ` [Bug middle-end/90043] Turn on -Winit-self by default for -Wuninitialized msebor at gcc dot gnu.org 2021-04-13 21:27 ` pinskia at gcc dot gnu.org 2022-01-26 17:48 ` msebor at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).