Re: [PATCH] C undefined behavior fix

From: jtv (
Date: Wed Jan 02 2002 - 19:19:05 EST

On Wed, Jan 02, 2002 at 04:34:52PM -0700, Tom Rini wrote:
> On Thu, Jan 03, 2002 at 01:28:42AM +0200, Momchil Velikov wrote:
> >
> > GCC thinks exactly what the function does.
> And then optimizes it to something that fails to work in this particular
> case.

Which it may do with another function *or expression* as well, because
the real bug has already happened before the function call comes into
the issue.

As far as I'm concerned the options are: fix RELOC; obviate RELOC; use
an appropriate gcc option if available (-fPIC might be it, -ffreestanding
certainly isn't--see above); *extend* (not fix, extend) gcc; or work
around all individual cases. In rough descending order of preference.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Jan 07 2002 - 21:00:19 EST