GCC 4.3.0 exposes a kernel bug
Posted Mar 7, 2008 21:00 UTC (Fri) by
flewellyn (subscriber, #5047)
Parent article:
GCC 4.3.0 exposes a kernel bug
Er, I think the new behavior can be called "correct" only for a very narrow definition of the term. It's true that the ABI does specify that DF should be cleared, but because it's widely known (or should be) among system-level hackers that many important programs do not honor this part of the ABI, GCC should ensure correct behavior in cases where the callers do not.
Okay, so the Linux and BSD kernels were not properly following this part of the ABI, and that's technically incorrect. But the thing is, the GCC developers apparently knew that, and prior to this had fixed it; adherence to standards and specifications is a good thing, but so is not breaking working code. Hopefully they'll revert this change, perhaps with a compile-time warning for the incorrect behavior.
(
Log in to post comments)