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] hpux boehm-gc adjustments, trunk


Hello all,

this patch below adjust some threading issues on hp-ux 10|11 boehm-gc. It is against gcc head.

Tested on hppa2.0w-hp-hpux11.11, reviewed by Dave Anglin.

Ok for trunk?

Andreas

2006-03-23  Andreas Tobler  <a.tobler@schweiz.ch>
	John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	* configure.ac (THREADS): Add THREADSPEC and REENTRANT for *-*-hpux11*.
	Warn about threads not being supported for *-*-hpux10*.
	* configure: Regenerate.

Just for reference: (including jacks, signal handling not yet complete.)

=== libjava Summary ===

# of expected passes            8080
# of unexpected failures        95
# of expected failures          688
# of untested testcases         86
Index: configure.ac
===================================================================
--- configure.ac	(revision 112318)
+++ configure.ac	(working copy)
@@ -140,8 +140,8 @@
 	AC_DEFINE(GC_AIX_THREADS,1,[support AIX threads])
 	AC_DEFINE(_REENTRANT,1)
 	;;
-     *-*-hpux*)
-	AC_MSG_WARN("Only HP/UX 11 threads are supported.")
+     *-*-hpux11*)
+	AC_MSG_WARN("Only HP-UX 11 POSIX threads are supported.")
 	AC_DEFINE(GC_HPUX_THREADS,1,[enables support for HP/UX 11 pthreads])
 	AC_DEFINE(_POSIX_C_SOURCE,199506L,[POSIX version of C Source])
 	if test "${enable_parallel_mark}" = yes; then
@@ -149,7 +149,13 @@
 	fi
 	AC_DEFINE(THREAD_LOCAL_ALLOC,1)
 	THREADLIBS="-lpthread -lrt"
+	THREADSPEC='-lpthread -lrt'
+	# HPUX needs REENTRANT for the _r calls.
+	AC_DEFINE(_REENTRANT, 1, [Required define if using POSIX threads])
 	;;
+     *-*-hpux10*)
+	AC_MSG_WARN("Only HP-UX 11 POSIX threads are supported.")
+	;;
      *-*-freebsd*)
 	AC_MSG_WARN("FreeBSD does not yet fully support threads with Boehm GC.")
 	AC_DEFINE(GC_FREEBSD_THREADS,1,[support FreeBSD threads])

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