lkml.org 
[lkml]   [2008]   [Mar]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Linux doesn't follow x86/x86-64 ABI wrt direction flag
On Wed, Mar 05, 2008 at 09:38:13PM +0100, Michael Matz wrote:
> Hi,
>
> On Wed, 5 Mar 2008, Aurelien Jarno wrote:
>
> > > So I think gcc at least needs an *option* to revert to the old behavior,
> > > and there's a good argument to make it the default for now, at least for
> > > x86/x86-64 on Linux.
> >
> > And for other kernels. I tested OpenBSD 4.1, FreeBSD 6.3, NetBSD 4.0,
> > they have the same behaviour as Linux, that is they don't clear DF
> > before calling the signal handler.
>
> Sigh. We could perhaps insert a cld for all functions which can be
> recognized as possible signal handlers and call other unknown or string
> functions. But it's probably even faster to emit cld in front of the
> inline copies of mem functions again :-(

Yes, if there are four kernels that get it "wrong", that effectively means
that the ABI document doesn't describe reality and gcc has to adjust.


\
 
 \ /
  Last update: 2008-03-05 21:45    [W:0.096 / U:1.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site