public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* lwsync used on e500(v2) targets
@ 2009-12-19 11:52 Herman ten Brugge
  0 siblings, 0 replies; only message in thread
From: Herman ten Brugge @ 2009-12-19 11:52 UTC (permalink / raw)
  To: crossgcc

[-- Attachment #1: Type: text/plain, Size: 333 bytes --]

I just submitted a patch to the java-patches mailing list
(http://gcc.gnu.org/ml/java-patches/2009-q4/msg00058.html)

I would like to get this patch into the crosstool for older
gcc releases. I used 4.3.2 and 4.3.3.

I attached the patch for these two releases.

I hope this helps some people to get gcj working on
e500(v2) targets.

[-- Attachment #2: diffgcc.patch --]
[-- Type: text/x-patch, Size: 510 bytes --]

--- gcc-4.3.3/boehm-gc/include/private/gc_locks.h.org	2009-12-06 06:46:46.298479999 +0100
+++ gcc-4.3.3/boehm-gc/include/private/gc_locks.h	2009-12-06 06:48:16.038566974 +0100
@@ -178,7 +178,11 @@
 #     endif
 #     define GC_TEST_AND_SET_DEFINED
       inline static void GC_clear(volatile unsigned int *addr) {
+#ifdef __NO_LWSYNC__
+	__asm__ __volatile__("sync" : : : "memory");
+#else
 	__asm__ __volatile__("lwsync" : : : "memory");
+#endif
         *(addr) = 0;
       }
 #     define GC_CLEAR_DEFINED


[-- Attachment #3: Type: text/plain, Size: 71 bytes --]

--
For unsubscribe information see http://sourceware.org/lists.html#faq

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-19 11:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-19 11:52 lwsync used on e500(v2) targets Herman ten Brugge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).