Re: RFC: Starting a stable kernel series off the 2.6 kernel

Joel Becker
2005-12-05T03:09:40Z

On Sun, Dec 04, 2005 at 05:17:09PM +0100, Matthias Andree wrote:
> There are things that old Sun Workshop versions bitch about that GCC
> deals with without complaining, and I'm not talking about C99/C++-style
> comments. C standard issue? I believe not.

I have seen many a code like so:

char buf[4];
memcpy(buf, source, 5);

accepted by the Sun compilers and run just fine. When the application
was ported to Linux/GCC, the developers complained their program
segfaulted, and "it must be something broken on Linux!"
Just because Sun's compiler does something doesn't mean it's
right :-)

Joel

--

Life's Little Instruction Book #510

"Count your blessings."

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker@oracle.com
Phone: (650) 506-8127