diff options
author | Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> | 2001-06-28 12:57:55 +0000 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2001-06-28 12:57:55 +0000 |
commit | f4b20cd963e5b00e3b74002af167118b056740e4 (patch) | |
tree | 4a77f7888aafdc6d9005fde79a791c965f24746f | |
parent | 46f018e13847446f543aa9b396de15c9e322f8b3 (diff) | |
download | gcc-f4b20cd963e5b00e3b74002af167118b056740e4.zip gcc-f4b20cd963e5b00e3b74002af167118b056740e4.tar.gz gcc-f4b20cd963e5b00e3b74002af167118b056740e4.tar.bz2 |
gthr-posix.h [LIBOBJC]: Add weak definitions of sched_get_priority_max, sched_get_priority_min.
* 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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/gthr-posix.h | 2 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/lib/objc.exp | 6 |
4 files changed, 12 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e7ed3de..cffad14 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/gthr-posix.h b/gcc/gthr-posix.h index eae8f3e..8981eb6 100644 --- a/gcc/gthr-posix.h +++ b/gcc/gthr-posix.h @@ -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 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1a5721f..a295fb5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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. diff --git a/gcc/testsuite/lib/objc.exp b/gcc/testsuite/lib/objc.exp index fc8fac1..c315b65 100644 --- a/gcc/testsuite/lib/objc.exp +++ b/gcc/testsuite/lib/objc.exp @@ -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" |