Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | * gthr-dce.h: Uglify function parameter and local variable names. | jakub | 2009-02-16 | 1 | -16/+17 |
| | | | | | | | | | | | | | | | | | * gthr-gnat.h: Likewise. * gthr-mipssde.h: Likewise. * gthr-nks.h: Likewise. * gthr-posix95.h: Likewise. * gthr-posix.h: Likewise. * gthr-rtems.h: Likewise. * gthr-single.h: Likewise. * gthr-solaris.h: Likewise. * gthr-tpf.h: Likewise. * gthr-vxworks.h: Likewise. * gthr-win32.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144201 138bc75d-0d04-0410-961f-82ee72b054a4 | ||||
* | * gthr-single.h (__gthread_once): Adjust prototype to match all | bje | 2008-12-06 | 1 | -1/+1 |
| | | | | | | | other gthreads models. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142523 138bc75d-0d04-0410-961f-82ee72b054a4 | ||||
* | 2008-05-05 Benjamin Kosnik <bkoz@redhat.com> | bkoz | 2008-05-05 | 1 | -23/+53 |
| | | | | | | | | | | | | | | | | * gthr-single.h: Add in required interface elements as per gthr.h. Add stub types for __gthread_key_t, __gthread_once_t. Add defines for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT. Generalize UNUSED macro. (__gthread_once): Add. (__gthread_key_create): Add. (__gthread_key_delete): Add. (__gthread_getspecific): Add. (__gthread_setspecific): Add. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134951 138bc75d-0d04-0410-961f-82ee72b054a4 | ||||
* | gcc: | jb | 2008-03-01 | 1 | -0/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132800 138bc75d-0d04-0410-961f-82ee72b054a4 | ||||
* | * gthr-single.h: Revert last change. | hp | 2007-10-05 | 1 | -19/+0 |
| | | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129040 138bc75d-0d04-0410-961f-82ee72b054a4 | ||||
* | 2007-09-13 Doug Kwan <dougkwan@google.com> | jason | 2007-10-05 | 1 | -0/+19 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@129030 138bc75d-0d04-0410-961f-82ee72b054a4 | ||||
* | Update FSF address. | kcook | 2005-06-25 | 1 | -2/+2 |
| | | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101317 138bc75d-0d04-0410-961f-82ee72b054a4 | ||||
* | * dwarf.h, gthr-dce.h, gthr-single.h, gthr-solaris.h, gthr.h, | kazu | 2004-10-22 | 1 | -1/+1 |
| | | | | | | | libfuncs.h, libgcc2.h, stab.def, tsystem.h: Update copyright. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89446 138bc75d-0d04-0410-961f-82ee72b054a4 | ||||
* | PR c++/13684 | jason | 2004-08-28 | 1 | -0/+19 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86687 138bc75d-0d04-0410-961f-82ee72b054a4 | ||||
* | * gthr-single.h: Fix formatting. | kazu | 2002-11-15 | 1 | -23/+23 |
| | | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59116 138bc75d-0d04-0410-961f-82ee72b054a4 | ||||
* | * gthr-dce.h: Fix comment formatting. | kazu | 2001-10-12 | 1 | -20/+20 |
| | | | | | | | | | | | * gthr-posix.h: Likewise. * gthr-single.h: Likewise. * gthr-solaris.h: Likewise. * gthr-vxworks.h: Likewise. * gthr-win32.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46229 138bc75d-0d04-0410-961f-82ee72b054a4 | ||||
* | * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c, | gerald | 2001-08-22 | 1 | -12/+12 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45105 138bc75d-0d04-0410-961f-82ee72b054a4 | ||||
* | Standardize header guards. | rth | 2001-05-26 | 1 | -3/+3 |
| | | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42615 138bc75d-0d04-0410-961f-82ee72b054a4 | ||||
* | * gthr-single.h (UNUSED): New. Distinguish between how C | rth | 2001-03-28 | 1 | -15/+24 |
| | | | | | | | and C++ mark unused function arguments. Use throughout. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40903 138bc75d-0d04-0410-961f-82ee72b054a4 | ||||
* | Applied H.J.Lu's patch to not require -lpthread when compiling single ↵ | ovidiu | 2000-07-20 | 1 | -2/+170 |
| | | | | | | threaded Objective-C programs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35141 138bc75d-0d04-0410-961f-82ee72b054a4 | ||||
* | * gthr-posix.h: Fix typo; compatibily -> compatibility. | rth | 2000-01-27 | 1 | -1/+1 |
| | | | | | | | | | | | * gthr-single.h: Likewise. * gthr-solaris.h: Likewise. * gthr-vxworks.h: Likewise. * gthr-win32.h: Likewise. * gthr.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31646 138bc75d-0d04-0410-961f-82ee72b054a4 | ||||
* | * gthr-single.h (__gthread_active_p): Add prototype arguments. | ghazi | 1999-12-12 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * libgcc2.c (__udivmoddi4): Remove unnecessary decls. (__dummy, __builtin_saveregs, __bb_exit_trace_func, __bb_init_prg, __bb_trace_func, __bb_trace_func_ret, __bb_trace_ret, function_ptr, getpagesize, __enable_execute_stack, __enable_execute_stack, __clear_insn_cache, __enable_execute_stack, __do_global_dtors, __do_global_ctors, _cleanup, _exit, __default_terminate, __terminate_func, __terminate, __empty, __throw, new_eh_context, eh_context_initialize, eh_context_static, eh_context_specific, get_eh_context, __get_eh_context, __get_eh_info, init_reg_size_table, eh_threads_initialize, __get_dynamic_handler_chain, __sjthrow, __sjpopnthrow, __unwinding_cleanup, throw_helper, __throw, __rethrow, __pure_virtual): Add prototype arguments. (__bb_exit_func): Cast a sizeof to long when comparing against one. Cast a signed value to unsigned long when comparing against one. (new_eh_context): Wrap in _GTHREADS macro. (__sjthrow, __sjpopnthrow): Initialize variable `cleanup' at declaration. (in_reg_window): Mark parameters with __attribute__ ((__unused__)). (throw_helper): Initialize variables `handler_p' and `pc_p'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30872 138bc75d-0d04-0410-961f-82ee72b054a4 | ||||
* | Zap some warnings in target files: | ghazi | 1998-04-17 | 1 | -3/+3 |
| | | | | | | | | | | | | | | * frame.c: Include stdlib.h and unistd.h to possibly get various function prototypes. The fixproto script guarantees these header files exist on the target system. * libgcc2.c: Likewise. * gthr-single.h (__gthread_mutex_lock, __gthread_mutex_trylock, __gthread_mutex_unlock): Add __attribute__ ((__unused__)) to the function parameters. * libgcc2.c (__udiv_w_sdiv): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19261 138bc75d-0d04-0410-961f-82ee72b054a4 | ||||
* | * Makefile.in (GTHREAD_FLAGS): New var. | law | 1997-12-24 | 1 | -0/+62 |
(LIBGCC2_CFLAGS): Added $(GTHREAD_FLAGS). (distclean): Remove gthr-default.h. * configure.in: Accept dce as a thread package. Check for thread.h and pthread.h. Link gthr-default.h to appropriate thread file and set gthread_flags. (hppa1.1-*-hpux10*): If --enable-threads, use dce threads and include multilib definitions from pa/t-dce-thr. (sparc-*-solaris2*): Enable threads by default, if thread.h or pthread.h is found, preferring posix threads over solaris ones. * config/pa/t-dce-thr: New file. * config/pa/t-pa: Removed multilibs. * config/sparc/t-sol2: Ditto. * gthr.h: New file. * gthr-single.h: New file. * gthr-posix.h: New file. * gthr-solaris.h: New file. * gthr-dce.h: New file. * libgcc-thr.h: Removed. * objc/thr-dce.c: New file copied from thr-decosf1.c. * frame.c: Include gthr.h instead of libgcc-thr.h. * libgcc2.c: Include gthr.h instead of libgcc-thr.h. (eh_context_initialize): If __gthread_once fails, use static eh context. (eh_context_free): Call __gthread_key_dtor. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17235 138bc75d-0d04-0410-961f-82ee72b054a4 |