NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-sparc/44705: libc violates sparc ABI by using %g7



The following reply was made to PR port-sparc/44705; it has been noted by GNATS.

From: Manuel Bouyer <bouyer%antioche.eu.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: port-sparc-maintainer%NetBSD.org@localhost, 
gnats-admin%NetBSD.org@localhost,
        netbsd-bugs%NetBSD.org@localhost
Subject: Re: port-sparc/44705: libc violates sparc ABI by using %g7
Date: Wed, 9 Mar 2011 21:26:57 +0100

 On Wed, Mar 09, 2011 at 08:05:00PM +0000, martin%NetBSD.org@localhost wrote:
 > The libc source generated from src/lib/libc/arch/sparc/gen/divrem.m4 use a
 > scratch register "SC", which is currently defined as %g7. This violates the
 > ABI and will cause trouble with threaded programs.
 > 
 > Luckily the code in question (in default installs) should only be used on
 > sparc v7 machines (not seen [powered on] in the wild a lot nowadays).
 
 Could this be the reason why some threaded programs have troubles on
 my sparc IPX ?
 
 -- 
 Manuel Bouyer <bouyer%antioche.eu.org@localhost>
      NetBSD: 26 ans d'experience feront toujours la difference
 --
 


Home | Main Index | Thread Index | Old Index