This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: V3/AIX
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: PATCH: V3/AIX
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: Tue, 23 Jan 2001 13:54:21 -0500
- Cc: gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- References: <20010123101652W.mitchell@codesourcery.com>
On Tue, Jan 23, 2001 at 10:16:52AM -0800, Mark Mitchell wrote:
> Index: libstdc++-v3/config/cpu/generic/bits/atomicity.h
> ===================================================================
> RCS file: /cvs/gcc/egcs/libstdc++-v3/config/cpu/generic/bits/atomicity.h,v
> retrieving revision 1.2
> diff -c -p -r1.2 atomicity.h
> *** atomicity.h 2000/08/22 18:24:16 1.2
> --- atomicity.h 2001/01/23 18:03:37
> *************** __attribute__ ((__unused__))
> *** 36,52 ****
> __atomic_add (_Atomic_word* __mem, int __val)
> {
> *__mem += __val;
> - }
> -
> - static inline int
> - __attribute__ ((__unused__))
> - __compare_and_swap (long *__p, long __oldval, long __newval)
> - {
> - if (*__p != __oldval)
> - return 0;
> -
> - *__p = __newval;
> - return 1;
> }
>
> #endif /* atomicity.h */
> --- 36,41 ----
Was this in by accident? The generic __compare_and_swap needs to be
available for other targets, I think...
--
pedwards at disaster dot jaj dot com | pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools. Fools are protected by more capable fools.