summaryrefslogtreecommitdiff
path: root/gcc/gthr-posix.h
Commit message (Collapse)AuthorAgeFilesLines
* gthr-posix.h (__gthread_active_p): Use the Solaris implementation for ↵Marius Strobl2008-04-181-4/+7
| | | | | | | | | | FreeBSD as well. * gthr-posix.h (__gthread_active_p): Use the Solaris implementation for FreeBSD as well. * gthr-posix95.h: Likewise. From-SVN: r134423
* re PR libfortran/35063 (Clean up use of destroy_unit_mutex())Janne Blomqvist2008-03-011-2/+0
| | | | | | | | | | | 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org> PR gcc/35063 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations. * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes regression from previous patch. From-SVN: r132802
* re PR libfortran/35063 (Clean up use of destroy_unit_mutex())Janne Blomqvist2008-03-011-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc: 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org> PR gcc/35063 * gthr.h: Add __gthread_mutex_destroy as a function that must be implemented. * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation. * gthr-single.h (__gthread_mutex_destroy): Likewise. * gthr-rtems.h (__gthread_mutex_destroy): Likewise. * gthr-mipssde.h (__gthread_mutex_destroy): Likewise. * gthr-nks.h (__gthread_mutex_destroy): Likewise. * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy. * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove. (__gthread_mutex_destroy_function): Rename to __gthread_mutex_destroy. * gthr-dce.h (__gthread_mutex_destroy): Call pthread_mutex_destroy. * gthr-tpf.h (__gthread_mutex_destroy): Likewise. * gthr-posix.h (__gthread_mutex_destroy): Likewise. * gthr-posix95.h (__gthread_mutex_destroy): Likewise. libgfortran: 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org> PR libfortran/35063 * io/unit.c (destroy_unit_mutex): Call __gthread_mutex_destroy instead of macro kludge. From-SVN: r132800
* gthr-posix.h (__gthread_active_init): Create detached instead of joinable ↵John David Anglin2007-10-121-6/+6
| | | | | | | | | | thread when... * gthr-posix.h (__gthread_active_init): Create detached instead of joinable thread when testing whether threads are active on hppa-hpux. * gthr-posix95.h (__gthread_active_init): Likewise. From-SVN: r129246
* gthr-posix.h (__gthread_cond_broadcast, [...]): Add to extend interface for ↵Doug Kwan2007-10-051-4/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | POSIX conditional variables. 2007-09-13 Doug Kwan <dougkwan@google.com> * gcc/gthr-posix.h (__gthread_cond_broadcast, __gthread_cond_wait, __gthread_cond_wait_recursive): Add to extend interface for POSIX conditional variables. (__GTHREAD_HAS_COND): Macro defined to signify support of conditional variables. * gcc/gthr-posix95.h (__gthread_cond_broadcast, __gthread_cond_wait, __gthread_cond_wait_recursive): Add to extend interface for POSIX conditional variables. (__GTHREAD_HAS_COND): Macro defined to signify support of conditional variables. * gcc/gthr-single.h (__gthread_cond_broadcast, __gthread_cond_wait, __gthread_cond_wait_recursive): Add to extend interface for POSIX conditional variables. * gcc/gthr.h: Update comments to document new interface. * libstdc++-v3/include/ext/concurrent.h (class __mutex, class __recursive_mutex): Add new method gthread_mutex to access inner gthread mutex. [__GTHREAD_HAS_COND] (class __concurrence_broadcast_error, class __concurrence_wait_error, class __cond): Add. * guard.cc (recursive_push, recursive_pop): Delete. (init_in_progress_flag, set_init_in_progress_flag): Add to replace recursive_push and recursive_pop. (throw_recursive_init_exception): Add. (acquire, __cxa_guard_acquire, __cxa_guard_abort and __cxa_guard_release): [__GTHREAD_HAS_COND] Use a conditional for synchronization of static variable initialization. The global mutex is only held briefly when guards are accessed. [!__GTHREAD_HAS_COND] Fall back to the old code, which deadlocks. * testsuite/thread/guard.cc: Add new test. It deadlocks with the old locking code in libstdc++-v3/libsup++/guard.cc. From-SVN: r129030
* re PR target/33286 (All exception related tests fail)John David Anglin2007-09-071-0/+69
| | | | | | | | | PR target/33286 * gthr-posix.h (__gthread_active_p): Add implementation for hppa-hpux. (__gthread_active,__gthread_start, __gthread_active_init): New. * gthr-posix95.h: Likewise. From-SVN: r128249
* re PR target/28307 (pthread functions in libgcc not weak any more on Tru64 UNIX)Rainer Orth2007-07-031-2/+6
| | | | | | | | | | PR target/28307 * gthr-posix.h [SUPPORTS_WEAK && GTHREAD_USE_WEAK] (__gthrw_pragma): Provide default definition. (__gthrw2): Use it. * gthr-posix.c (__gthrw_pragma): Define. From-SVN: r126253
* re PR libstdc++/11953 (_REENTRANT defined when compiling non-threaded code.)Jakub Jelinek2006-12-121-1/+1
| | | | | | | | | | PR libstdc++/11953 * gthr-posix.h (_REENTRANT): Only define if __osf__ is defined. * config/ia64/linux.h (CPP_SPEC): Define. * config/s390/linux.h (CPP_SPEC): Define. From-SVN: r119788
* re PR target/24071 (__gthread_active_p vs __gthread_once)Eric Botcazou2006-10-311-0/+55
| | | | | | | | PR target/24071 * gthr-posix.h (__gthread_active_p): New implementation on Solaris. * gthr-posix95.h (__gthread_active_p): Likewise. From-SVN: r118259
* re PR other/26489 (compilation of c++ fails in eh_alloc.cc on NetBSD)Roger Sayle2006-03-021-21/+22
| | | | | | | | | | PR other/26489 * gthr-posix.h (__gthrw2): Define to take three parameters, the declared name, the weak reference name, and the typeof name. (__gthrw): Avoid expanding the declared name suffix. (__gthrw3): New Tru64 specific macro to simplify the OSF/1 decls. From-SVN: r111633
* gthr-posix.h (__gthrw): Fix typo in comment.Roger Sayle2006-02-241-1/+1
| | | | | | * gthr-posix.h (__gthrw): Fix typo in comment. From-SVN: r111414
* gthr-posix.h: On Tru64...Roger Sayle2006-02-191-8/+37
| | | | | | | * gthr-posix.h: On Tru64, map __gthr_foo as a weak reference to __foo and not foo when _PTHREAD_USE_MANGLED_NAMES_ is defined. From-SVN: r111282
* re PR other/24829 (libobjc testsuite failures)Alexandre Oliva2006-01-261-78/+76
| | | | | | | | | | | | | | | | | | | PR other/24829 PR target/24831 * gthr-dce.h: Do not gthrw-ify pthread_once_init, pthread_key_delete. From John David Anglin. gthrw-ify pthread_getunique_np only if it it's not a macro. Delete UNUSED macro. (__gthread_objc_condition_allocate, __gthread_objc_condition_deallocate, __gthread_objc_condition_wait, __gthread_objc_condition_broadcast, __gthread_objc_condition_signal, __gthread_key_delete): Add "__attribute__ ((__unused__))" to unused arguments. (__gthread_recursive_mutex_init_function): Add missing return. * gthr-dce.h, gthr-tpf.h, gthr-solaris.h, gthr-posix.h, gthr-posix95.h: Use macro-based approach for name redirection on targets missing weakref. From-SVN: r110278
* Index: gcc/ChangeLogGeoffrey Keating2005-12-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-12-05 Geoffrey Keating <geoffk@apple.com> * varasm.c (default_binds_local_p_1): Weakrefs don't bind locally. A hidden weak object does bind locally. Strong linkonce data counts like any other strong symbol for binding. (weak_finish_1): Don't specially handle weakrefs, they no longer arrive here. (assemble_alias): Weakrefs can't be TREE_PUBLIC yet. * c-common.c (handle_alias_attribute): Allow static aliases of variables. (handle_weakref_attribute): Don't call declare_weak on weakrefs. * gthr-dce.h: Make weakrefs static. * gthr-tpf.h: Likewise. * gthr-solaris.h: Likewise. * gthr-posix.h: Likewise. * gthr-posix95.h: Likewise. * config/darwin.c (darwin_encode_section_info): static weakref variables are not necessarily defined in this translation unit. * doc/extend.texi (Function Attributes): Mention that an alias attribute creates a definition for the thing it's attached to. Change the documentation for weakref to say that the thing it's attached to must be static. Index: gcc/testsuite/ChangeLog 2005-12-05 Geoffrey Keating <geoffk@apple.com> * g++.old-deja/g++.abi/vtable2.C: Make weakrefs static. * gcc.dg/attr-weakref-1.c: Modify to not try to test public weakrefs, and to work on Darwin. * gcc.dg/attr-weakref-1b.c: New file. * gcc.dg/attr-weakref-2.c: New test. * gcc.dg/darwin-weakref-1.c: New test. From-SVN: r108074
* re PR other/4372 (#pragma weak pthread* inclusion causes applications to ↵Alexandre Oliva2005-11-091-72/+83
| | | | | | | | | | | | | | | | crash without a linker error when one forgets to link with -lpthread) gcc/ChangeLog: PR other/4372 * gthr-dce.h, gthr-posix.h, gthr-posix95.h, gthr-solaris.h, gthr-tpf.h: Define __gthrw. For all identifiers that might be weak, introduce weakrefs or non-weak aliases with __gthrw, and prefix all uses with __ghtrw. libobjc/ChangeLog: PR other/4372 * thr-objc.c (_XOPEN_SOURCE): Define. From-SVN: r106704
* Update FSF address.Kelley Cook2005-06-251-2/+2
| | | | From-SVN: r101317
* gthr-posix.h (__gthread_recursive_mutex_init_function): Add missing return ↵Jan Beulich2005-05-231-0/+1
| | | | | | | | | | | | statement. gcc/ 2005-05-23 Jan Beulich <jbeulich@novell.com> * gthr-posix.h (__gthread_recursive_mutex_init_function): Add missing return statement. From-SVN: r100075
* gthr-posix.h (__gthread_active_p): Use pthread_cancel instead of ↵Ranjit Mathew2005-01-171-2/+3
| | | | | | | | | | pthread_create to find out if threads are enabled. * gthr-posix.h (__gthread_active_p): Use pthread_cancel instead of pthread_create to find out if threads are enabled. * gthr-posix95.h (__gthread_active_p): Likewise. From-SVN: r93762
* re PR other/18277 (libsupc++/guard.cc:62: error: 'RECURSIVE_ERRORCHECKMUTEX' ↵Eric Botcazou2004-11-041-4/+2
| | | | | | | | | | was not declared in this scope) PR other/18277 * gthr-posix.h (__gthread_recursive_mutex_init_function): Revert 2004-10-29 patch From-SVN: r90057
* gthr-posix.h (__gthread_recursive_mutex_init_function): Guard with #ifdef ↵Eric Botcazou2004-10-291-2/+4
| | | | | | | | | PTHREAD_MUTEX_RECURSIVE/#endif pairs. * gthr-posix.h (__gthread_recursive_mutex_init_function): Guard with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs. From-SVN: r89805
* gthr-posix.h (__gthread_active_p): Use __extension__ around cast from ↵Mark Mitchell2004-10-201-1/+2
| | | | | | | | | function pointer to void *. * gthr-posix.h (__gthread_active_p): Use __extension__ around cast from function pointer to void *. From-SVN: r89336
* bitmap.c, [...]: Update copyright.Kazu Hirata2004-10-151-1/+1
| | | | | | | | | | | | | | | | * bitmap.c, bitmap.h, builtin-attrs.def, cfglayout.h, collect2.h, conflict.c, coretypes.h, coverage.h, errors.h, gcc.h, gcov-dump.c, gen-protos.c, gencheck.c, gencodes.c, genconstants.c, gengenrtl.c, genmodes.c, genpeep.c, gensupport.h, graph.h, gthr-gnat.c, gthr-gnat.h, gthr-posix.c, gthr-posix.h, hard-reg-set.h, hwint.h, integrate.h, libgcc2.c, lists.c, machmode.def, mips-tdump.c, opts.h, params.c, predict.def, predict.h, protoize.c, reload.h, resource.h, rtl-error.c, sbitmap.c, sbitmap.h, sreal.c, tlink.c, tree-dump.h, tree-inline.h, unwind-dw2-fde.c, unwind-dw2.c, unwind-sjlj.c, value-prof.h: Update copyright. From-SVN: r89097
* c-typeck.c, [...]: Fix comment formatting.Kazu Hirata2004-09-251-1/+1
| | | | | | | | | * c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c, gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h, lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c, tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting. From-SVN: r88102
* * gthr-posix.h: Add #pragma weaks.Jason Merrill2004-08-301-1/+5
| | | | From-SVN: r86783
* re PR c++/13684 (local static object variable constructed once but ctors and ↵Jason Merrill2004-08-271-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dtors called multiple times on same memory when called in multiple threads) PR c++/13684 * cp/decl.c (expand_static_init): Use thread-safety API. (register_dtor_fn): Return the call, don't expand it. * cp/tree.c (add_stmt_to_compound): New fn. (stabilize_call): Use it. * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY. (gimple_push_cleanup): Add eh_only parm. (gimplify_target_expr): Pass it. * c.opt (-fno-threadsafe-statics): New option. * c-opts.c (c_common_handle_option): Handle it. * c-common.h (flag_threadsafe_statics): Declare it. * c-common.c (flag_threadsafe_statics): Record it. * doc/invoke.texi: Document it. * tsystem.h (_GNU_SOURCE): Define. * gthr-posix.h (__gthread_recursive_mutex_t): New typedef. (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro. (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro. (__gthread_recursive_mutex_init_function): New fn. (__gthread_recursive_mutex_lock): New fn. (__gthread_recursive_mutex_trylock): New fn. (__gthread_recursive_mutex_unlock): New fn. * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise. * gthr-win32.h, gthr-vxworks.h: Likewise. * gthr.h: Document. * libsupc++/guard.cc (static_mutex): Internal class implementing a recursive mutex which controls initialization of local statics. (__gnu_cxx::recursive_init): New exception class. (__cxa_guard_acquire): Deal with locking and recursion detection. (acquire_1, __cxa_guard_abort, __cxa_guard_release): Likewise. From-SVN: r86687
* gthr-posix.h: Check for _POSIX_PRIORITY_SCHEDULING when checking for...Andrew Pinski2004-05-281-2/+6
| | | | | | | | | | | | 2004-05-28 Andrew Pinski <pinskia@physics.uc.edu> * gthr-posix.h: Check for _POSIX_PRIORITY_SCHEDULING when checking for _POSIX_THREAD_PRIORITY_SCHEDULING. Remove comment about not checking for _POSIX_PRIORITY_SCHEDULING. * gthr-posix.c: Likewise. From-SVN: r82376
* re PR bootstrap/9330 ([alpha-osf]small alphaev56-dec-osf5.1 ↵Rainer Orth2003-07-311-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | --enable-threads=posix problem) * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by default. * gthr-posix.c: New file. * gthr-posix.h: Define _REENTRANT if missing. Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK. * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided by gthr-posix.o. * config/alpha/t-osf-pthread: New file. * fixinc/inclhack.def (alpha_pthread): New fix. * fixinc/fixincl.x: Regenerate. * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase. * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads warning. Fixes PR bootstrap/9330. From-SVN: r69998
* Merge basic-improvements-branch to trunkZack Weinberg2002-12-161-10/+0
| | | | From-SVN: r60174
* * gthr-posix.h: Fix formatting.Kazu Hirata2002-11-131-80/+81
| | | | From-SVN: r59064
* gthr-posix.h: Include <unistd.h> for feature tests.Jason Thorpe2002-10-291-3/+14
| | | | | | | | | | | | * gthr-posix.h: Include <unistd.h> for feature tests. (sched_get_priority_max, sched_get_priority_min) (pthread_getschedparam, pthread_setschedparam): Only use if _POSIX_THREAD_PRIORITY_SCHEDULING is defined. (__gthread_objc_thread_set_priority): Don't treat all non-zero returns from sched_get_priority_max and sched_get_priority_min as an error. From-SVN: r58630
* c-common.h: Follow spelling conventions.Kazu Hirata2002-09-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * c-common.h: Follow spelling conventions. * cpplex.c: Likewise. * cpplib.h: Likewise. * gthr-dce.h: Likewise. * gthr-posix.h: Likewise. * optabs.c: Likewise. * output.h: Likewise. * profile.c: Likewise. * protoize.c: Likewise. * ra-rewrite.c: Likewise. * real.c: Likewise. * recog.c: Likewise. * reg-stack.c: Likewise. * regclass.c: Likewise. * regmove.c: Likewise. * reload.c: Likewise. * reload.h: Likewise. * reload1.c: Likewise. * reorg.c: Likewise. * resource.c: Likewise. * rtl.h: Likewise. * rtlanal.c: Likewise. From-SVN: r57555
* gbl-ctors.h: Fix formatting.Kazu Hirata2002-06-041-38/+38
| | | | | | | | | | | | | | | | | | | | | | | * gbl-ctors.h: Fix formatting. * gcc.c: Likewise. * gccspec.c: Likewise. * gcov.c: Likewise. * gcov-io.h: Likewise. * gcse.c: Likewise. * ggc-common.c: Likewise. * ggc.h: Likewise. * ggc-page.c: Likewise. * ggc-simple.c: Likewise. * global.c: Likewise. * graph.h: Likewise. * gthr-dce.h: Likewise. * gthr.h: Likewise. * gthr-posix.h: Likewise. * gthr-rtems.h: Likewise. * gthr-solaris.h: Likewise. * gthr-win32.h: Likewise. From-SVN: r54240
* gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr into the ↵Jason Merrill2002-03-131-2/+1
| | | | | | | | | | function and constify it. * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr into the function and constify it. * gthr-dce.h, gthr-solaris.h: Likewise. From-SVN: r50741
* gthr-dce.h: Fix comment formatting.Kazu Hirata2001-10-121-21/+21
| | | | | | | | | | | * gthr-dce.h: Fix comment formatting. * gthr-posix.h: Likewise. * gthr-single.h: Likewise. * gthr-solaris.h: Likewise. * gthr-vxworks.h: Likewise. * gthr-win32.h: Likewise. From-SVN: r46229
* Makefile.in, [...]: replace "GNU CC" with "GCC".Lars Brinkhoff2001-08-221-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c, bitmap.h, builtin-types.def, builtins.c, builtins.def, c-aux-info.c, c-common.c, c-common.def, c-common.h, c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c, c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in, c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c, caller-save.c, calls.c, collect2.c, collect2.h, combine.c, conditions.h, config.gcc, configure.frag, configure.in, conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c, cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h, dependence.c, df.c, df.h, diagnostic.c, diagnostic.h, doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c, dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c, emit-rtl.c, errors.c, errors.h, except.c, except.h, exgettext, explow.c, expmed.c, expr.c, expr.h, final.c, fixproto, flags.h, flow.c, fold-const.c, fp-test.c, function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp, gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c, gencheck.c, gencodes.c, genconfig.c, genemit.c, genextract.c, genflags.c, gengenrtl.c, genmultilib, genopinit.c, genoutput.c, genpeep.c, genrecog.c, gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c, ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c, graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h, gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h, gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h, hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h, integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c, libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h, machmode.def, machmode.h, main.c, mbchar.c, mbchar.h, mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk, mkmap-symver.awk, optabs.c, output.h, params.c, params.def, params.h, predict.c, predict.def, predict.h, prefix.c, prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c, read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c, regclass.c, regmove.c, regrename.c, regs.h, reload.c, reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c, rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h, sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c, sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c, ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c, stringpool.c, system.h, timevar.c, timevar.def, timevar.h, tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h, tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h, unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h, unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c, xcoffout.h: replace "GNU CC" with "GCC". From-SVN: r45105
* Fixed backend function of objc_mutex_trylock which was brokenNicola Pero2001-07-181-12/+21
| | | | From-SVN: r44104
* gthr-posix.h [LIBOBJC]: Add weak definitions of sched_get_priority_max, ↵Rainer Orth2001-06-281-0/+2
| | | | | | | | | | | | | 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
* (__gthread_objc_init_thread_system): If pthread_key_create fails, it's not ↵Nicola Pero2001-06-091-2/+2
| | | | | | | | | | clear what the return value is. (__gthread_objc_init_thread_system): If pthread_key_create fails, it's not clear what the return value is. This obvious fix makes sure it always returns -1 if a problem occurs. From-SVN: r43091
* gthr-posix.h (__gthread_objc_thread_detach): Simply cast pthread_t to ↵Rainer Orth2001-06-071-8/+4
| | | | | | | | | | objc_thread_t. * gthr-posix.h (__gthread_objc_thread_detach): Simply cast pthread_t to objc_thread_t. (__gthread_objc_thread_id): Likewise. From-SVN: r42974
* gthr-posix.h (__gthread_active_ptr): Cast function pointer to target type to ↵Loren J. Rittle2001-05-301-1/+1
| | | | | | | | | | | | | allow ISO C++ compiler to accept it. * gthr-posix.h (__gthread_active_ptr): Cast function pointer to target type to allow ISO C++ compiler to accept it. * gthr-dce.h (__gthread_active_ptr): Likewise. * gthr-solaris.h (__gthread_active_ptr): Likewise. Co-Authored-By: John David Anglin <dave@hiauly1.hia.nrc.ca> From-SVN: r42725
* Standardize header guards.Richard Henderson2001-05-251-3/+3
| | | | From-SVN: r42615
* * gthr-posix.h: Make additional pthread-* functions weak.Loren J. Rittle2001-05-151-0/+5
| | | | From-SVN: r42107
* Conditionally include <sched.h>; include <config.h> from libobjc/.Ovidiu Predescu2000-08-151-0/+7
| | | | From-SVN: r35695
* Reverted the check for <sched.h>.Ovidiu Predescu2000-08-111-6/+0
| | | | From-SVN: r35620
* Include auto-host.h. Conditionally include <sched.h>.Ovidiu Predescu2000-08-101-0/+6
| | | | From-SVN: r35599
* Integrated Chris Ball's <cball@fmco.com> changes to improve the PosixOvidiu Predescu2000-08-061-9/+60
| | | | | | thread support for Objective-C. From-SVN: r35533
* Applied H.J.Lu's patch to not require -lpthread when compiling single ↵H.J. Lu2000-07-201-11/+304
| | | | | | threaded Objective-C programs. From-SVN: r35141
* bb-reorder.c (get_next_bb_note, [...]): Prototype.Kaveh R. Ghazi2000-05-041-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bb-reorder.c (get_next_bb_note, get_prev_bb_note): Prototype. * diagnostic (vbuild_message_string, build_message_string, build_location_prefix, output_get_prefix, init_output_buffer, output_notice, vline_wrapper_message_with_location, v_message_with_decl, default_print_error_function): De-constify. (set_real_maximum_length): Prototype. * diagnostic.h (struct output_buffer, init_output_buffer, output_get_prefix, output_set_prefix): De-constify. * function.c (init_function_start): Constify. * gensupport.c (remove_constraints, process_rtx): Prototype. * gthr-posix.h: Indent uses of #pragma. * objc/objc-act.c (ggc_mark_imp_list, ggc_mark_hash_table): Prototype. * predict.c (find_expected_value): Delete prototype. (expected_value_to_br_prob): Initialize variable `ev_reg'. * sbitmap.h (debug_sbitmap): Prototype. * ssa.c (compute_coalesced_reg_partition): Prototype. * stor-layout.c (debug_rli): Prototype. * tree.h (round_down): Prototype. (init_function_start): Constify. ch: * ch-tree.h (init_function_start): Constify. From-SVN: r33675
* crtstuff.c (__do_global_ctors_aux, [...]): Add prototype argument.Kaveh R. Ghazi2000-02-121-3/+3
| | | | | | | | | | | | | | | | | * crtstuff.c (__do_global_ctors_aux, __reg_frame_ctor, __dereg_frame_dtor): Add prototype argument. * gthr-dce.h (__gthread_active_p, __gthread_once): Likewise. * gthr-posix.h (__gthread_active_p, __gthread_once): Likewise. * gthr-solaris.h (__gthread_active_p, __gthread_once): Likewise. * gthr-vxworks.h (__gthread_once): Likewise. * gthr-win32.h (__gthread_active_p, __gthread_once): Likewise. From-SVN: r31945
* gthr-posix.h: Fix typo; compatibily -> compatibility.Fred Fish2000-01-271-1/+1
| | | | | | | | | | | * gthr-posix.h: Fix typo; compatibily -> compatibility. * gthr-single.h: Likewise. * gthr-solaris.h: Likewise. * gthr-vxworks.h: Likewise. * gthr-win32.h: Likewise. * gthr.h: Likewise. From-SVN: r31646