]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
jvmti.exp (gcj_jvmti_compile_cxx_to_o): Add -pthread on alpha*-dec-osf*.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 9 Nov 2010 09:38:23 +0000 (09:38 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Tue, 9 Nov 2010 09:38:23 +0000 (09:38 +0000)
* testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_compile_cxx_to_o):
Add -pthread on alpha*-dec-osf*.
* testsuite/libjava.jvmti/jvmti-interp.exp
(gcj_jni_compile_c_to_so): Likewise.

From-SVN: r166476

libjava/ChangeLog
libjava/testsuite/libjava.jvmti/jvmti-interp.exp
libjava/testsuite/libjava.jvmti/jvmti.exp

index 15233609890bf083f41151bd027817bb7fc19af6..345e6da7998fb2c691cc06715efeba4bb064050e 100644 (file)
@@ -1,3 +1,10 @@
+2010-11-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * testsuite/libjava.jvmti/jvmti.exp (gcj_jvmti_compile_cxx_to_o):
+       Add -pthread on alpha*-dec-osf*.
+       * testsuite/libjava.jvmti/jvmti-interp.exp
+       (gcj_jni_compile_c_to_so): Likewise.
+
 2010-10-12  Andrew John Hughes  <ahughes@redhat.com>
 
        Import GNU Classpath (libgcj-snapshot-20100921).
index 62c82e92afc1616fbf07034360c153bfabf8b9bf..fd660f35164c8b0516455d450c613d0f77baabb3 100644 (file)
@@ -37,6 +37,10 @@ proc gcj_jni_compile_c_to_so {file {options {}}} {
   if { [istarget "arm*"] } {
       lappend options "additional_flags=-Wno-abi"
   }
+  # Tru64 UNIX requires <pthread.h> to be compiled with -pthread.
+  if { [istarget "alpha*-dec-osf*"] } {
+      lappend options "additional_flags=-pthread"
+  }
 
   set filename [file tail $file]
   set name [file rootname $filename]
index 571952e807cf3a470d63325be1bd79dfd964b474..2d939852e5ed912969e4592620730453a4300323 100644 (file)
@@ -20,6 +20,10 @@ proc gcj_jvmti_compile_cxx_to_o {file {options {}}} {
   if { [istarget "arm*"] } {
       lappend options "additional_flags=-Wno-abi"
   }
+  # Tru64 UNIX requires <pthread.h> to be compiled with -pthread.
+  if { [istarget "alpha*-dec-osf*"] } {
+      lappend options "additional_flags=-pthread"
+  }
 
   set x [libjava_prune_warnings \
           [target_compile $file $oname object $options]]