Not logged in
Log in now
Create an account
Subscribe to LWN
LWN.net Weekly Edition for May 16, 2013
A look at the PyPy 2.0 release
PostgreSQL 9.3 beta: Federated databases and more
LWN.net Weekly Edition for May 9, 2013
(Nearly) full tickless operation in 3.10
Linux 2.6.30 exploit posted
Posted Jul 20, 2009 8:55 UTC (Mon) by tialaramex (subscriber, #21167)
If you (or the kernel developer responsible for this goof, or anyone else) want GCC to emit a diagnostic for this scenario then they need to write code to detect the scenario (which may be very tricky depending on how spread through GCC the different aspects of it are) and write an informative warning message.
If nobody has yet done this, there is no warning included in -Wall.
(Insert generic complaint about how when I was a lad we had to write our own compilers, and it were up hill both ways)
Posted Jul 20, 2009 10:58 UTC (Mon) by muntyan (subscriber, #58894)
Or they get removed. GCC folks break warnings by "optimizations".
Posted Jul 20, 2009 19:17 UTC (Mon) by stevenb (guest, #11536)
Posted Jul 21, 2009 5:14 UTC (Tue) by muntyan (subscriber, #58894)
Posted Jul 21, 2009 6:08 UTC (Tue) by stevenb (guest, #11536)
Did you actually read the bug? Getting warnings right is hard. See http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings#pro...
Posted Jul 21, 2009 9:43 UTC (Tue) by muntyan (subscriber, #58894)
Posted Jul 30, 2009 13:59 UTC (Thu) by lysse (guest, #3190)
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds