lkml.org 
[lkml]   [2002]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] C undefined behavior fix
On Thu, Jan 03, 2002 at 01:19:05AM +0100, jtv wrote:
> 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.

What's the bug? The 'funny' arithmetic?

> As far as I'm concerned the options are: fix RELOC;

How?

> obviate RELOC; use
> an appropriate gcc option if available (-fPIC might be it, -ffreestanding
> certainly isn't--see above);

Maybe for 2.5. Too invasive for 2.4.x (initially at least).

> *extend* (not fix, extend) gcc; or work
> around all individual cases. In rough descending order of preference.

Er, say what?

--
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:15    [W:0.168 / U:4.896 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site