This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 3.0.1 PATCH: atomicity.h (libstdc++) for m68k
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: 3.0.1 PATCH: atomicity.h (libstdc++) for m68k
- From: Andreas Schwab <schwab at suse dot de>
- Date: 15 Aug 2001 17:43:29 +0200
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- References: <32450000.997887957@warlock.codesourcery.com>
Mark Mitchell <mark@codesourcery.com> writes:
|> --On Wednesday, August 15, 2001 03:16:31 PM +0200 Andreas Schwab
|> <schwab@suse.de> wrote:
|>
|> > This patch implements atomic functions for the m68k. Unfortunately I can
|> > only build a cross compiler, but since the definitions are coming directly
|> > from glibc, where they are reasonably tested, this should be ok.
|> >
|>
|> There's no need for __compare_and_swap now; it's no longer used.
Ok, I'll remove it.
|> This patch is OK for the branch and the mainline. Do the original
|> m68ks have those instructions?
No. "cas" was introduced by the m68020.
|> And do we care?
I don't think so. IMHO there is no hope to get threads right on a
pre-68020 system, so the generic functions should be as good as anything.
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5