gthr-posix.h [LIBOBJC]: Add weak definitions of sched_get_priority_max, sched_get_pri...
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>
Thu, 28 Jun 2001 12:57:55 +0000 (12:57 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Thu, 28 Jun 2001 12:57:55 +0000 (12:57 +0000)
        * gthr-posix.h [LIBOBJC]: Add weak definitions of
        sched_get_priority_max, sched_get_priority_min.

        testsuite:
        * lib/objc.exp (objc_target_compile): Don't need -lposix4 on any
        Solaris 2.[678] system.

From-SVN: r43640

gcc/ChangeLog
gcc/gthr-posix.h
gcc/testsuite/ChangeLog
gcc/testsuite/lib/objc.exp

index e7ed3de7d7ada02f3051ac75577dd8ae9e78b123..cffad14260c144308c1d934e4550d3d5f170ad01 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       * gthr-posix.h [LIBOBJC]: Add weak definitions of
+       sched_get_priority_max, sched_get_priority_min.
+
 2001-06-28  Gabriel Dos Reis  <gdr@codesourcery.com>
 
        * diagnostic.c (default_print_error_function): Tweak.
index eae8f3e12ab618b2162665cce44e999f46841983..8981eb66732c5726c01772718d0f5648f3495397 100644 (file)
@@ -67,6 +67,8 @@ typedef pthread_mutex_t __gthread_mutex_t;
 #pragma weak pthread_mutex_init
 #pragma weak pthread_mutex_destroy
 #pragma weak pthread_self
+#pragma weak sched_get_priority_max
+#pragma weak sched_get_priority_min
 #pragma weak sched_yield
 #pragma weak pthread_attr_destroy
 #pragma weak pthread_attr_init
index 1a5721f01ecce26b4ac1adbae11d04bce6b4b932..a295fb556be52d8190d6dfba2cfbacaa7be5d2c8 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       * lib/objc.exp (objc_target_compile): Don't need -lposix4 on any
+       Solaris 2.[678] system.
+
 2001-06-22  Joseph S. Myers  <jsm28@cam.ac.uk>
 
        * gcc.dg/20010622-1.c: New test.
index fc8fac14a3fe9b975a5735f9a0161e2b86388a42..c315b6503b629d35d9cedce19f785d3738a4ed0a 100644 (file)
@@ -124,12 +124,6 @@ proc objc_target_compile { source dest type options } {
     set ld_library_path ".:${rootme}"
     lappend options "libs=-lobjc"
 
-    # On Solaris 2.8, we need to include libposix4 in order to get
-    # sched_get_priority_max and such.
-    if [istarget {sparc-sun-solaris2.[678]} ] {
-       lappend options "libs=-lposix4"
-    }
-
     if { [target_info needs_status_wrapper]!="" && [info exists gluefile] } {
        lappend options "libs=${gluefile}"
        lappend options "ldflags=$wrap_flags"