public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libstdc++/7383: atomic operations not atomic on ppc405
@ 2002-07-22 21:16 dank
0 siblings, 0 replies; 4+ messages in thread
From: dank @ 2002-07-22 21:16 UTC (permalink / raw)
To: gcc-gnats
>Number: 7383
>Category: libstdc++
>Synopsis: atomic operations not atomic on ppc405
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 22 21:16:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Dan Kegel
>Release: gcc-3.1
>Organization:
>Environment:
IBM PPC405 embedded processor
>Description:
Routines such as atomic_add() that use the stwcx
instruction fail occasionally, as the ppc405cr
occasionally misbehaves if the stwcx instruction
interrupted. See erratum 77 in
http://www-3.ibm.com/chips/techlib/techlib.nsf/techdocs/89DED00DEBFF54BF87256A8000491BA2/$file/405CR_C_errata_1_2.pdf
See also http://www.kegel.com/xgcc3/ppc405erratum77.html
>How-To-Repeat:
Difficult. We have reproduced it by running a
large C++ program under network load on a 128-computer
farm of uniprocessor machines; failure usually happens
within 1000 to 2000 cpu-minutes. We have not yet found
a small testcase; we're still trying.
>Fix:
Apply workaround 4 from IBM's erratum sheet.
Patch available at
http://www.kegel.com/xgcc3/gcc-20020715-ppc405erratum77.patch
Patch does seem to fix the libstdc++ problem, and should be
suitable for mainline use. Note: patch does not fix
libgcj or boehm-gc, which are also affected by this
problem. They will need a similar patch.
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: libstdc++/7383: atomic operations not atomic on ppc405
@ 2002-09-20 14:30 dje
0 siblings, 0 replies; 4+ messages in thread
From: dje @ 2002-09-20 14:30 UTC (permalink / raw)
To: dank, dje, gcc-bugs, gcc-prs, nobody
Synopsis: atomic operations not atomic on ppc405
Responsible-Changed-From-To: unassigned->dje
Responsible-Changed-By: dje
Responsible-Changed-When: Fri Sep 20 14:30:05 2002
Responsible-Changed-Why:
PowerPC
State-Changed-From-To: analyzed->closed
State-Changed-By: dje
State-Changed-When: Fri Sep 20 14:30:05 2002
State-Changed-Why:
GCC 3.3 includes the fix when GCC is configured for PPC405. A PPC405 multilib will not be created.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7383
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: libstdc++/7383: atomic operations not atomic on ppc405
@ 2002-07-25 12:06 dank
0 siblings, 0 replies; 4+ messages in thread
From: dank @ 2002-07-25 12:06 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR libstdc++/7383; it has been noted by GNATS.
From: dank@kegel.com
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, dank@kegel.com,
gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org
Cc:
Subject: Re: libstdc++/7383: atomic operations not atomic on ppc405
Date: Thu, 25 Jul 2002 12:02:18 -0700
I have updated my patch to also fix the stwcx in boehm-gc used by gcj;
see http://www.kegel.com/xgcc3/gcc-20020722-ppc405erratum77.patch
This new patch is untested, but extremely similar to the earlier
patch which did seem to fix the libstdc++ problem, and simple
enough that one might be able to trust it by inspection.
Note that libc/4155 is related; you have to fix both.
http://bugs.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4155
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7383
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: libstdc++/7383: atomic operations not atomic on ppc405
@ 2002-07-24 12:42 bkoz
0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2002-07-24 12:42 UTC (permalink / raw)
To: dank, gcc-bugs, gcc-prs, nobody
Synopsis: atomic operations not atomic on ppc405
State-Changed-From-To: open->analyzed
State-Changed-By: bkoz
State-Changed-When: Wed Jul 24 12:42:54 2002
State-Changed-Why:
It looks like this has been resolved, this patch just needs to be applied. Can somebody take care of this? (I nominate the powerpc port maintainers.)
-benjamin
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7383
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-09-20 21:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-22 21:16 libstdc++/7383: atomic operations not atomic on ppc405 dank
2002-07-24 12:42 bkoz
2002-07-25 12:06 dank
2002-09-20 14:30 dje
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).