This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 3.0.1 PATCH: atomicity.h (libstdc++) for m68k


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]