[Gc] [patch] atomic_ops for ppc64

Andreas Tobler toa at pop.agri.ch
Thu Jul 5 13:40:53 PDT 2007


Hi all,

I committed the attached patch to the cvs repo to support ppc64.

Andreas

2007-07-05  Andreas Tobler  <a.tobler at schweiz.org>

	* src/atomic_ops.h: Check for __powerpc64__ and __ppc64__ to include
	powerpc.h.

Index: src/atomic_ops.h
===================================================================
RCS file: /cvsroot/bdwgc/bdwgc/libatomic_ops-1.2/src/atomic_ops.h,v
retrieving revision 1.3
diff -u -r1.3 atomic_ops.h
--- src/atomic_ops.h    14 Jun 2007 05:17:46 -0000      1.3
+++ src/atomic_ops.h    5 Jul 2007 20:37:40 -0000
@@ -218,7 +218,8 @@
  # if defined(__m68k__)
  #   include "atomic_ops/sysdeps/gcc/m68k.h"
  # endif /* __m68k__ */
-# if defined(__powerpc__) || defined(__ppc__) || defined(__PPC__)
+# if defined(__powerpc__) || defined(__ppc__) || defined(__PPC__) \
+     || defined(__powerpc64__) || defined(__ppc64__)
  #   include "atomic_ops/sysdeps/gcc/powerpc.h"
  # endif /* __powerpc__ */
  # if defined(__arm__) && !defined(AO_USE_PTHREAD_DEFS)


More information about the Gc mailing list