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: PATCH: V3/AIX


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.

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