Removing uninitialized_var()
Removing uninitialized_var()
Posted Jan 4, 2013 10:16 UTC (Fri) by mlopezibanez (guest, #66088)In reply to: Removing uninitialized_var() by mjthayer
Parent article: Removing uninitialized_var()
There is indeed a limit to what GCC can guess correctly, but there are also quite a number of bugs and deficiencies in the warning machinery. See http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings for a list of problems (the page may be slightly outdated by now) and http://gcc.gnu.org/PR24639 Solving these problems would require substantial work. Unfortunately, there is no enough people working on GCC to even start such work in the near future.
I wonder if kernel devs would be less frustrated with gcc if they tried to fix GCC bugs rather than work-around them. Well, perhaps they will become even more frustrated. ;-)