-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 12/06/11 12:21, Ian Lance Taylor wrote:
While using the optimizers to improve the quality of uninitialized
warnings does have some benefits, those benefits are outweighed by
the drawbacks. We need to completely reimplement this warning,
either in the C/C++ common frontend, or before any optimization
passes run.
Run it just after going into SSA; mark everything that has an
uninitialized use. For those who want the larger, much more stable
set of warnings this is going to meet their needs much better.
That's what my patch from a few years ago did. IIRC the only
outstanding issue was what should the default be.
Then we can rename the existing warning to
-Wunpredictable-uninitialized and take it out of -Wall.
I'd tend to think this would be a mistake. We'd be changing -Wall in
a very very visible way and I suspect the number of developers
complaining would be huge.
Ideally we'd just nuke -Wall and have everyone use the -W options they
care about, but sadly that's just a pipe dream.