Bug 24639 (Wuninitialized) - [meta-bug] bug to track all Wuninitialized issues
Summary: [meta-bug] bug to track all Wuninitialized issues
Status: NEW
Alias: Wuninitialized
Product: gcc
Classification: Unclassified
Component: middle-end (show other bugs)
Version: 4.1.0
: P3 trivial
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL: http://gcc.gnu.org/wiki/Better_Uninit...
Keywords: diagnostic, meta-bug
Depends on: 18501 19430 31279 36823 40635 41953 47386 48829 54554 55496 56574 56670 60488 61677 63446 63943 66459 67194 67196 67872 72826 73550 78081 78391 Og_x_Wmaybe-uninitialized 78398 78993 80681 80824 81674 81714 81809 81958 82090 82101 82601 83382 85563 85872 88175 88897 89697 89723 89976 -Winit-self 90710 90844 91442 91470 92002 93181 93432 94905 94953 95594 95681 95825 95848 96047 96300 96564 96629 96988 97108 97353 97858 97931 98049 98405 98406 98900 99768 99919 99944 99945 99959 100047 100073 100115 100126 100215 100417 100699 101494 101674 101768 101770 101793 101799 101831 102070 102088 102192 102196 102329 102381 102631 102887 102996 104060 105237 105423 105616 105749 106008 106089 106155 106511 106541 106992 107138 107140 107287 107290 107663 107743 107751 107838 107919 108230 108402 108466 108467 108667 108906 109418 109448 109530 109550 109561 109714 109720 110670 110743 110896 111123 111240 111397 111489 111944 112546 112637 113111 113987 114253 114360 179 2972 5035 7258 10138 10538 12792 13127 13615 13863 14204 15880 16036 16865 17506 17518 18016 18232 19371 19808 19833 20644 20968 21005 21124 21513 21548 21733 21750 22197 22207 22297 22456 23497 23563 23648 24004 24612 24931 27120 27289 29458 30680 31707 31841 32395 32759 33802 34721 34772 34793 35609 36168 36296 36550 36814 38908 38945 39133 39502 39799 39936 40059 40146 40156 40206 40469 40695 40943 41817 41952 42000 42145 42290 42561 43163 43361 43459 44133 44547 45085 45609 47307 48001 48801 49754 49848 50966 51544 52078 52167 52523 53480 53802 53917 54804 55060 55288 55644 55759 55985 56654 56705 56748 57072 57127 57832 58410 58455 58488 58698 59500 59908 59970 60256 60741 61112 61409 61428 61869 63224 63418 63518 63660 63748 65178 65182 65244 67679 68301 68548 69026 69578 70069 70246 70392 70410 70736 70765 70987 70991 71011 71699 71701 71974 74762 74765 78044 78141 78370 78915 79658 79768 80147 80152 80548 80635 80787 81329 81638 81782 81889 81897 81962 81981 82203 82552 82800 82810 82839 82958 83468 84078 84299 84772 85233 85301 85777 85855 86465 86485 87143 87209 87564 87968 88455 88518 88721 89192 89202 89230 89284 89296 89501 89551 89651 89733 90058 90307 90873 90994 91195 91290 91395 91691 91825 92011 92118 92194 92433 92540 92700 92722 93100 94769 94774 94952 95136 95768 95818 96121 96295 96368 96987 97067 97840 98508 98583 98871 99340 99536 99756 99989 100250 100496 101300 101573 101584 101734 101912 102403 102539 102608 102633 102700 102801 103036 103159 103899 105646 105937 106722 106754 106922 107206 107274 107411 107793 107839 108780 109339 109434 109559 109801 110368 110534 110761 110861 111090 111094 111254 112766 112909 113769
Blocks:
  Show dependency treegraph
 
Reported: 2005-11-02 18:53 UTC by Andrew Pinski
Modified: 2024-03-16 05:59 UTC (History)
7 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 (2.96 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