This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On Thu, Apr 25, 2002 at 02:59:53PM -0700, Richard Henderson wrote:
> On Thu, Apr 25, 2002 at 01:51:16PM -0700, H . J . Lu wrote:
> > +#ifndef _BITS_ATOMICITY_H
> > +
> > +#define _BITS_ATOMICITY_H 1
> > +
> > +static inline int
> > +__attribute__ ((unused))
> > +__exchange_and_add (volatile _Atomic_word *__mem, int __val)
> > +{
> > + int __result = *__mem;
> > + *__mem += __val;
> > + return __result;
> > +}
>
> At minimum this should have the same #warning that m68k has
> about not actually being atomic.
>
I am enclosing a new patch.
> And really this is incorrect for any operating system that
> emulates ll/sc. Like Linux, and I suspect others.
>
Even on Linux, it is hard to tell if the kernel really supports ll/sc
emulation or not. I just want to help real MIPS II cores.
H.J.
Attachment:
gcc-libstdc++-mips.patch
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |