Bug 24639 - (Wuninitialized) [meta-bug] bug to track all Wuninitialized issues
(Wuninitialized)
[meta-bug] bug to track all Wuninitialized issues
Status: NEW
Product: gcc
Classification: Unclassified
Component: middle-end
4.1.0
: P3 trivial
: ---
Assigned To: Not yet assigned to anyone
http://gcc.gnu.org/wiki/Better_Uninit...
: diagnostic, meta-bug
Depends on: 2972 10138 18501 19430 19808 22197 27120 27589 31279 33802 34721 36550 36823 40059 40635 41817 41953 42000 42145 42561 44547 48001 49754 52078 52523 54554 54804 55060 55985 56574 56654 56670 56748 57127 57832 59500 60741 63224 63660 63748 63943 65178 179 5035 7258 10538 12792 13127 13615 13863 14204 16036 16865 17506 17518 18016 18232 19371 19833 20644 20968 21005 21124 21513 21548 21733 21750 22207 22297 22456 23497 23563 23648 24004 24612 24931 27289 29458 30680 31707 31841 32395 32759 34772 34793 35609 36168 36296 36814 38908 38945 39133 39502 39799 39936 40146 40156 40206 40469 40695 40943 41952 42290 43163 43361 43459 44133 45085 45609 48801 49848 50966 53802 55759 56705 57072 58410 58455 58488 58698
Blocks:
  Show dependency treegraph
 
Reported: 2005-11-02 18:53 UTC by Andrew Pinski
Modified: 2015-02-23 17:58 UTC (History)
6 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2007-07-09 08:47:37


Attachments
Proposed patch and new testcases (9.99 KB, patch)
2005-11-09 00:02 UTC, Jeffrey A. Law
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Pinski 2005-11-02 18:53:01 UTC
To get a better feeling for the issues which have been reported, this meta-bug should get the better feeling for them.
Comment 1 Andrew Pinski 2005-11-02 19:00:16 UTC
There are at least 19 bugs related to the uninit warnings.
Comment 2 Andrew Pinski 2005-11-02 19:01:45 UTC
Adding Jeff Law and Diego so they know what the bug numbers are.
Comment 3 Andrew Pinski 2005-11-02 19:17:16 UTC
Some more, this time closed ones.  There are many more.
Comment 4 Jeffrey A. Law 2005-11-09 00:02:55 UTC
Created attachment 10181 [details]
Proposed patch and new testcases

I'm not comfortable self-approving this patch; the option processing code is totally new to me and I have no idea if I got it right.  And while I believe the sense of -Wuninitialized is correct (no change in current behavior), I don't think we have reached a consensus on that issue.

I will note that after reviewing all the PRs, by far the most common complaint is false positives,  #2 is missing warnings, particularly for objects which have had their address taken, #3 is missing warnings in unreachable/dead code (which we can now detect with -Wuninitialized=2 using this patch).
Comment 5 Manuel López-Ibáñez 2007-03-06 15:09:16 UTC
Another one.
Comment 6 Manuel López-Ibáñez 2007-10-12 09:44:20 UTC
I am collecting all info about Wuninitialized issues and proposals to solve them here:

http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings

Feel free to comment and contribute. The Summer of Code passed (unfortunately, I didn't have enough time to succeed) but the project goes on.

Comment 7 Manuel López-Ibáñez 2008-08-18 16:42:43 UTC
Alias Wuninitialized