This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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]

[patch committed] Fix libjava build failure on SH


Hi,

SH has a similar build problem as PR libgcj/30424.  I've checked
in the attached libjava patch on the trunk.

Regards,
	kaz
--
2007-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>

	* sysdep/sh/locks.h (read_barrier): New.
	(write_barrier): Likewise.

--- ORIG/trunk/libjava/sysdep/sh/locks.h	2005-10-29 06:54:12.000000000 +0900
+++ LOCAL/trunk/libjava/sysdep/sh/locks.h	2007-01-12 08:54:35.000000000 +0900
@@ -1,6 +1,6 @@
 // locks.h - Thread synchronization primitives. SuperH implementation.
 
-/* Copyright (C) 2002  Free Software Foundation
+/* Copyright (C) 2002, 2007  Free Software Foundation
 
    This file is part of libgcj.
 
@@ -69,4 +69,16 @@ compare_and_swap_release (volatile obj_a
   return compare_and_swap (addr, old, new_val);
 }
 
+inline static void
+read_barrier()
+{
+  __asm__ __volatile__(" " : : : "memory");
+}
+
+inline static void
+write_barrier()
+{
+  __asm__ __volatile__(" " : : : "memory");
+}
+
 #endif /* ! __SYSDEP_LOCKS_H__ */


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