lkml.org 
[lkml]   [2008]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: x86-64: __pa_symbol() vs. __pa()
On Tue, Dec 09, 2008 at 10:05:02AM +0000, Jan Beulich wrote:
> Can any of you recall the reason for the comment accompanying the
> __pa_symbol() definition:
>
> /* __pa_symbol should be used for C visible symbols.
> This seems to be the official gcc blessed way to do such arithmetic. */

gcc assumes that such symbol arithmetic doesn't wrap. iirc there was a
miscompilation on PPC64 because of that and then it was fixed
everywhere. On x86-64 there are normally no wraps, but there might
be in some cases.

-Andi


\
 
 \ /
  Last update: 2008-12-09 12:07    [W:0.043 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site