lkml.org 
[lkml]   [2003]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Athlon/Opteron Prefetch Fix for 2.6.0test5 + numbers
ak@suse.de (Andi Kleen)  wrote on 17.09.03 in <20030917211200.GA5997@wotan.suse.de>:

> On Wed, Sep 17, 2003 at 01:50:59PM -0700, Linus Torvalds wrote:

> > Also, you do things like comparing pointers for less/greater than, and at
> > least some versions of gcc has done that wrong - using signed comparisons.
>
> Really? Is that any version we still support (2.95+) ?
> It is certainly legal ISO-C. I changed it for now.

It certainly is *not* legal ISO C, and never was.

Pointer comparision is *only* legal in ISO C if both pointers point to the
same object - same variable, or same piece of malloc'd memory. Anything
else is undefined.

MfG Kai
-
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:48    [W:0.072 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site