Messages in this thread | | | Date | Wed, 3 Oct 2007 16:51:28 +0100 | From | Alan Cox <> | Subject | Re: [bug] crash when reading /proc/mounts (was: Re: Linux 2.6.23-rc9 and a heads-up for the 2.6.24 series..) |
| |
> and btw, there is no question what-so-ever about whether your compiler > might be doing a legal optimization - the compiler really is wrong, and is
Pedant: valid. Almost all optimizations are legal, nobody has yet written laws about compilers. Sorry but I'm forever fixing misuse of the word "illegal" in printks, docs and the like and it gets annoying after a bit.
> total shit. You need to make a gcc bug-report. Because this is not a > question of "the standard is ambiguous",
Agreed - the standard is not ambiguous here. (For reference the standard says that a valid pointer must point at an object _OR_ one past the end of the object (in the latter case it is not dereferencable)). So its a compiler bug.
Alan
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |