Skip to content
Snippets Groups Projects
  1. Jan 04, 2021
  2. Jan 01, 2020
  3. Jan 01, 2019
  4. Jan 03, 2018
  5. Jan 01, 2017
  6. Jan 04, 2016
  7. Apr 15, 2015
  8. Mar 02, 2015
  9. Jan 05, 2015
  10. Jan 02, 2014
  11. Feb 04, 2013
  12. Oct 02, 2012
    • Jonathan Wakely's avatar
      re PR other/53889 (Gthreads doesn't support destroying recursive mutexes) · 1504e3e1
      Jonathan Wakely authored
      libgcc:
      
      	PR other/53889
      	* gthr.h (__gthread_recursive_mutex_destroy): Document new required
      	function.
      	* gthr-posix.h (__gthread_recursive_mutex_destroy): Define.
      	* gthr-single.h (__gthread_recursive_mutex_destroy): Likewise.
      	* config/gthr-rtems.h (__gthread_recursive_mutex_destroy): Likewise.
      	* config/gthr-vxworks.h (__gthread_recursive_mutex_destroy): Likewise.
      	* config/i386/gthr-win32.h (__gthread_recursive_mutex_destroy):
      	Likewise.
      	* config/mips/gthr-mipssde.h (__gthread_recursive_mutex_destroy):
      	Likewise.
      	* config/pa/gthr-dce.h (__gthread_recursive_mutex_destroy): Likewise.
      	* config/s390/gthr-tpf.h (__gthread_recursive_mutex_destroy): Likewise.
      
      libstdc++-v3:
      
      	PR other/53889
      	* include/std/mutex (__recursive_mutex_base::~__recursive_mutex_base):
      	Use __gthread_recursive_mutex_destroy.
      	(__recursive_mutex_base::_S_destroy): Remove.
      	(__recursive_mutex_base::_S_destroy_win32): Likewise.
      	* include/ext/concurrence.h (__recursive_mutex::~__recursive_mutex):
      	Use __gthread_recursive_mutex_destroy.
      	(__recursive_mutex::_S_destroy): Remove.
      	(__recursive_mutex::_S_destroy_win32): Likewise.
      
      From-SVN: r192002
      1504e3e1
  13. Mar 13, 2012
  14. Mar 12, 2012
    • Richard Guenther's avatar
      re PR gcov-profile/49484 (gcov crash if two(or more) forks happen at the same time) · 33e3e24d
      Richard Guenther authored
      2012-03-12  Richard Guenther  <rguenther@suse.de>
      
      	* gthr.h (__GTHREAD_MUTEX_INIT_FUNCTION): Adjust specification.
      	* gthr-posix.h (__GTHREAD_MUTEX_INIT_FUNCTION): Define.
      	(__gthread_mutex_init_function): New function.
      	* gthr-single.h (__GTHREAD_MUTEX_INIT_FUNCTION): Define.
      
      	PR gcov/49484
      	* libgcov.c: Include gthr.h.
      	(__gcov_flush_mx): New global variable.
      	(init_mx, init_mx_once): New functions.
      	(__gcov_flush): Protect self with a mutex.
      	(__gcov_fork): Re-initialize mutex after forking.
      	* unwind-dw2-fde.c: Change condition under which to use
      	__GTHREAD_MUTEX_INIT_FUNCTION.
      
      From-SVN: r185231
      33e3e24d
  15. Nov 02, 2011
    • Rainer Orth's avatar
      Move gthr to toplevel libgcc · 5d1c8e77
      Rainer Orth authored
      	gcc:
      	* gthr-single.h, gthr.h: Move to ../libgcc.
      	* gthr-aix.h: Move to ../libgcc/config/rs6000.
      	* gthr-dce.h: Move to ../libgcc/config/pa.
      	* gthr-lynx.h: Move to ../libgcc/config.
      	* gthr-mipssde.h: Move to ../libgcc/config/mips.
      	* gthr-posix.h: Move to ../libgcc/config.
      	* gthr-rtems.h: Likewise.
      	* gthr-tpf.h: Move to ../libgcc/config/s390.
      	* gthr-vxworks.h: Move to ../libgcc/config.
      	* gthr-win32.h: Move to ../libgcc/config/i386.
      	* configure.ac (gthread_flags): Remove
      	(gthr-default.h): Don't create.
      	(thread_file): Don't substitute.
      	* configure: Regenerate.
      	* Makefile.in (GCC_THREAD_FILE): Remove.
      	(GTHREAD_FLAGS): Remove.
      	(libgcc.mvars): Remove GTHREAD_FLAGS.
      	* config/t-vxworks (EXTRA_HEADERS): Remove.
      
      	gcc/po:
      	* EXCLUDES (gthr-aix.h, gthr-dce.h, gthr-posix.c, gthr-posix.h)
      	(gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h)
      	(gthr-win32.h, gthr.h): Remove.
      
      	libgcc:
      	* gthr-single.h, gthr.h: New files.
      	* config/gthr-lynx.h, config/gthr-posix.h., config/gthr-rtems.h,
      	config/gthr-vxworks.h, config/i386/gthr-win32.h,
      	config/mips/gthr-mipssde.h, config/pa/gthr-dce.h,
      	config/rs6000/gthr-aix.h, config/s390/gthr-tpf.h: New files.
      	* config/i386/gthr-win32.c: Include "gthr-win32.h".
      	* configure.ac (thread_header): New variable.
      	Set it depending on target_thread_file.
      	(gthr-default.h): Link from $thread_header.
      	* configure: Regenerate.
      	* Makefile.in (LIBGCC2_CFLAGS): Remove $(GTHREAD_FLAGS).
      
      	libgfortran:
      	* Makefile.am (AM_CPPFLAGS): Add
      	-I$(srcdir)/$(MULTISRCTOP)../libgcc, -I$(MULTIBUILDTOP)../libgcc.
      	* Makefile.in: Regenerate.
      	* acinclude.m4 (LIBGFOR_CHECK_GTHR_DEFAULT): Remove.
      	* configure.ac (LIBGFOR_CHECK_GTHR_DEFAULT): Likewise.
      	* configure: Regenerate.
      	* config.h.in: Regenerate.
      
      	libobjc:
      	* Makefile.in (INCLUDES): Add -I$(MULTIBUILDTOP)../libgcc.
      	* configure.ac (target_thread_file, HAVE_GTHR_DEFAULT): Remove.
      	* configure: Regenerate.
      	* config.h.in: Regenerate.
      
      	libstdc++-v3:
      	* acinclude.m4 (GLIBCXX_CONFIGURE): Determine and substitute
      	toplevel_builddir.
      	(GLIBCXX_ENABLE_THREADS): Remove glibcxx_thread_h,
      	HAVE_GTHR_DEFAULT, enable_thread.
      	(GLIBCXX_CHECK_GTHREADS): Reflect gthr move to libgcc.
      	* include/Makefile.am (thread_host_headers): Remove
      	${host_builddir}/gthr-tpf.h.
      	(${host_builddir}/gthr.h): Reflect gthr move to libgcc.
      	Use $<.
      	(${host_builddir}/gthr-single.h): Likewise.
      	(${host_builddir}/gthr-posix.h): Likewise.
      	(${host_builddir}/gthr-tpf.h): Remove.
      	(${host_builddir}/gthr-default.h): Likewise.
      	* configure, config.h.in: Regenerate.
      	* Makefile.in, doc/Makefile.in, include/Makefile.in,
      	libsupc++/Makefile.in, po/Makefile.in, python/Makefile.in,
      	src/Makefile.intestsuite/Makefile.in: Regenerate.
      
      From-SVN: r180776
      5d1c8e77
  16. Nov 25, 2009
    • H.J. Lu's avatar
      Remove trailing white spaces. · b8698a0f
      H.J. Lu authored
      2009-11-25  H.J. Lu  <hongjiu.lu@intel.com>
      
      	* alias.c: Remove trailing white spaces.
      	* alloc-pool.c: Likewise.
      	* alloc-pool.h: Likewise.
      	* attribs.c: Likewise.
      	* auto-inc-dec.c: Likewise.
      	* basic-block.h: Likewise.
      	* bb-reorder.c: Likewise.
      	* bt-load.c: Likewise.
      	* builtins.c: Likewise.
      	* builtins.def: Likewise.
      	* c-common.c: Likewise.
      	* c-common.h: Likewise.
      	* c-cppbuiltin.c: Likewise.
      	* c-decl.c: Likewise.
      	* c-format.c: Likewise.
      	* c-lex.c: Likewise.
      	* c-omp.c: Likewise.
      	* c-opts.c: Likewise.
      	* c-parser.c: Likewise.
      	* c-pretty-print.c: Likewise.
      	* c-tree.h: Likewise.
      	* c-typeck.c: Likewise.
      	* caller-save.c: Likewise.
      	* calls.c: Likewise.
      	* cfg.c: Likewise.
      	* cfganal.c: Likewise.
      	* cfgexpand.c: Likewise.
      	* cfghooks.c: Likewise.
      	* cfghooks.h: Likewise.
      	* cfglayout.c: Likewise.
      	* cfgloop.c: Likewise.
      	* cfgloop.h: Likewise.
      	* cfgloopmanip.c: Likewise.
      	* cfgrtl.c: Likewise.
      	* cgraph.c: Likewise.
      	* cgraph.h: Likewise.
      	* cgraphbuild.c: Likewise.
      	* cgraphunit.c: Likewise.
      	* cif-code.def: Likewise.
      	* collect2.c: Likewise.
      	* combine.c: Likewise.
      	* convert.c: Likewise.
      	* coverage.c: Likewise.
      	* crtstuff.c: Likewise.
      	* cse.c: Likewise.
      	* cselib.c: Likewise.
      	* dbgcnt.c: Likewise.
      	* dbgcnt.def: Likewise.
      	* dbgcnt.h: Likewise.
      	* dbxout.c: Likewise.
      	* dce.c: Likewise.
      	* ddg.c: Likewise.
      	* ddg.h: Likewise.
      	* defaults.h: Likewise.
      	* df-byte-scan.c: Likewise.
      	* df-core.c: Likewise.
      	* df-problems.c: Likewise.
      	* df-scan.c: Likewise.
      	* df.h: Likewise.
      	* dfp.c: Likewise.
      	* diagnostic.c: Likewise.
      	* diagnostic.h: Likewise.
      	* dominance.c: Likewise.
      	* domwalk.c: Likewise.
      	* double-int.c: Likewise.
      	* double-int.h: Likewise.
      	* dse.c: Likewise.
      	* dwarf2asm.c: Likewise.
      	* dwarf2asm.h: Likewise.
      	* dwarf2out.c: Likewise.
      	* ebitmap.c: Likewise.
      	* ebitmap.h: Likewise.
      	* emit-rtl.c: Likewise.
      	* et-forest.c: Likewise.
      	* except.c: Likewise.
      	* except.h: Likewise.
      	* expmed.c: Likewise.
      	* expr.c: Likewise.
      	* expr.h: Likewise.
      	* final.c: Likewise.
      	* flags.h: Likewise.
      	* fold-const.c: Likewise.
      	* function.c: Likewise.
      	* function.h: Likewise.
      	* fwprop.c: Likewise.
      	* gcc.c: Likewise.
      	* gcov-dump.c: Likewise.
      	* gcov-io.c: Likewise.
      	* gcov-io.h: Likewise.
      	* gcov.c: Likewise.
      	* gcse.c: Likewise.
      	* genattr.c: Likewise.
      	* genattrtab.c: Likewise.
      	* genautomata.c: Likewise.
      	* genchecksum.c: Likewise.
      	* genconfig.c: Likewise.
      	* genflags.c: Likewise.
      	* gengtype-parse.c: Likewise.
      	* gengtype.c: Likewise.
      	* gengtype.h: Likewise.
      	* genmddeps.c: Likewise.
      	* genmodes.c: Likewise.
      	* genopinit.c: Likewise.
      	* genpreds.c: Likewise.
      	* gensupport.c: Likewise.
      	* ggc-common.c: Likewise.
      	* ggc-page.c: Likewise.
      	* ggc-zone.c: Likewise.
      	* ggc.h: Likewise.
      	* gimple-iterator.c: Likewise.
      	* gimple-low.c: Likewise.
      	* gimple-pretty-print.c: Likewise.
      	* gimple.c: Likewise.
      	* gimple.def: Likewise.
      	* gimple.h: Likewise.
      	* gimplify.c: Likewise.
      	* graphds.c: Likewise.
      	* graphite-clast-to-gimple.c: Likewise.
      	* gthr-nks.h: Likewise.
      	* gthr-posix.c: Likewise.
      	* gthr-posix.h: Likewise.
      	* gthr-posix95.h: Likewise.
      	* gthr-single.h: Likewise.
      	* gthr-tpf.h: Likewise.
      	* gthr-vxworks.h: Likewise.
      	* gthr.h: Likewise.
      	* haifa-sched.c: Likewise.
      	* hard-reg-set.h: Likewise.
      	* hooks.c: Likewise.
      	* hooks.h: Likewise.
      	* hosthooks.h: Likewise.
      	* hwint.h: Likewise.
      	* ifcvt.c: Likewise.
      	* incpath.c: Likewise.
      	* init-regs.c: Likewise.
      	* integrate.c: Likewise.
      	* ipa-cp.c: Likewise.
      	* ipa-inline.c: Likewise.
      	* ipa-prop.c: Likewise.
      	* ipa-pure-const.c: Likewise.
      	* ipa-reference.c: Likewise.
      	* ipa-struct-reorg.c: Likewise.
      	* ipa-struct-reorg.h: Likewise.
      	* ipa-type-escape.c: Likewise.
      	* ipa-type-escape.h: Likewise.
      	* ipa-utils.c: Likewise.
      	* ipa-utils.h: Likewise.
      	* ipa.c: Likewise.
      	* ira-build.c: Likewise.
      	* ira-color.c: Likewise.
      	* ira-conflicts.c: Likewise.
      	* ira-costs.c: Likewise.
      	* ira-emit.c: Likewise.
      	* ira-int.h: Likewise.
      	* ira-lives.c: Likewise.
      	* ira.c: Likewise.
      	* jump.c: Likewise.
      	* lambda-code.c: Likewise.
      	* lambda-mat.c: Likewise.
      	* lambda-trans.c: Likewise.
      	* lambda.h: Likewise.
      	* langhooks.c: Likewise.
      	* lcm.c: Likewise.
      	* libgcov.c: Likewise.
      	* lists.c: Likewise.
      	* loop-doloop.c: Likewise.
      	* loop-init.c: Likewise.
      	* loop-invariant.c: Likewise.
      	* loop-iv.c: Likewise.
      	* loop-unroll.c: Likewise.
      	* lower-subreg.c: Likewise.
      	* lto-cgraph.c: Likewise.
      	* lto-compress.c: Likewise.
      	* lto-opts.c: Likewise.
      	* lto-section-in.c: Likewise.
      	* lto-section-out.c: Likewise.
      	* lto-streamer-in.c: Likewise.
      	* lto-streamer-out.c: Likewise.
      	* lto-streamer.c: Likewise.
      	* lto-streamer.h: Likewise.
      	* lto-symtab.c: Likewise.
      	* lto-wpa-fixup.c: Likewise.
      	* matrix-reorg.c: Likewise.
      	* mcf.c: Likewise.
      	* mode-switching.c: Likewise.
      	* modulo-sched.c: Likewise.
      	* omega.c: Likewise.
      	* omega.h: Likewise.
      	* omp-low.c: Likewise.
      	* optabs.c: Likewise.
      	* optabs.h: Likewise.
      	* opts-common.c: Likewise.
      	* opts.c: Likewise.
      	* params.def: Likewise.
      	* params.h: Likewise.
      	* passes.c: Likewise.
      	* plugin.c: Likewise.
      	* postreload-gcse.c: Likewise.
      	* postreload.c: Likewise.
      	* predict.c: Likewise.
      	* predict.def: Likewise.
      	* pretty-print.c: Likewise.
      	* pretty-print.h: Likewise.
      	* print-rtl.c: Likewise.
      	* print-tree.c: Likewise.
      	* profile.c: Likewise.
      	* read-rtl.c: Likewise.
      	* real.c: Likewise.
      	* recog.c: Likewise.
      	* reg-stack.c: Likewise.
      	* regcprop.c: Likewise.
      	* reginfo.c: Likewise.
      	* regmove.c: Likewise.
      	* regrename.c: Likewise.
      	* regs.h: Likewise.
      	* regstat.c: Likewise.
      	* reload.c: Likewise.
      	* reload1.c: Likewise.
      	* resource.c: Likewise.
      	* rtl.c: Likewise.
      	* rtl.def: Likewise.
      	* rtl.h: Likewise.
      	* rtlanal.c: Likewise.
      	* sbitmap.c: Likewise.
      	* sched-deps.c: Likewise.
      	* sched-ebb.c: Likewise.
      	* sched-int.h: Likewise.
      	* sched-rgn.c: Likewise.
      	* sched-vis.c: Likewise.
      	* sdbout.c: Likewise.
      	* sel-sched-dump.c: Likewise.
      	* sel-sched-dump.h: Likewise.
      	* sel-sched-ir.c: Likewise.
      	* sel-sched-ir.h: Likewise.
      	* sel-sched.c: Likewise.
      	* sel-sched.h: Likewise.
      	* sese.c: Likewise.
      	* sese.h: Likewise.
      	* simplify-rtx.c: Likewise.
      	* stack-ptr-mod.c: Likewise.
      	* stmt.c: Likewise.
      	* stor-layout.c: Likewise.
      	* store-motion.c: Likewise.
      	* stringpool.c: Likewise.
      	* stub-objc.c: Likewise.
      	* sync-builtins.def: Likewise.
      	* target-def.h: Likewise.
      	* target.h: Likewise.
      	* targhooks.c: Likewise.
      	* targhooks.h: Likewise.
      	* timevar.c: Likewise.
      	* tlink.c: Likewise.
      	* toplev.c: Likewise.
      	* toplev.h: Likewise.
      	* tracer.c: Likewise.
      	* tree-affine.c: Likewise.
      	* tree-affine.h: Likewise.
      	* tree-browser.def: Likewise.
      	* tree-call-cdce.c: Likewise.
      	* tree-cfg.c: Likewise.
      	* tree-cfgcleanup.c: Likewise.
      	* tree-chrec.c: Likewise.
      	* tree-chrec.h: Likewise.
      	* tree-complex.c: Likewise.
      	* tree-data-ref.c: Likewise.
      	* tree-data-ref.h: Likewise.
      	* tree-dfa.c: Likewise.
      	* tree-dump.c: Likewise.
      	* tree-dump.h: Likewise.
      	* tree-eh.c: Likewise.
      	* tree-flow-inline.h: Likewise.
      	* tree-flow.h: Likewise.
      	* tree-if-conv.c: Likewise.
      	* tree-inline.c: Likewise.
      	* tree-into-ssa.c: Likewise.
      	* tree-loop-distribution.c: Likewise.
      	* tree-loop-linear.c: Likewise.
      	* tree-mudflap.c: Likewise.
      	* tree-nested.c: Likewise.
      	* tree-nomudflap.c: Likewise.
      	* tree-nrv.c: Likewise.
      	* tree-object-size.c: Likewise.
      	* tree-optimize.c: Likewise.
      	* tree-outof-ssa.c: Likewise.
      	* tree-parloops.c: Likewise.
      	* tree-pass.h: Likewise.
      	* tree-phinodes.c: Likewise.
      	* tree-predcom.c: Likewise.
      	* tree-pretty-print.c: Likewise.
      	* tree-profile.c: Likewise.
      	* tree-scalar-evolution.c: Likewise.
      	* tree-ssa-address.c: Likewise.
      	* tree-ssa-alias.c: Likewise.
      	* tree-ssa-ccp.c: Likewise.
      	* tree-ssa-coalesce.c: Likewise.
      	* tree-ssa-copy.c: Likewise.
      	* tree-ssa-copyrename.c: Likewise.
      	* tree-ssa-dce.c: Likewise.
      	* tree-ssa-dom.c: Likewise.
      	* tree-ssa-dse.c: Likewise.
      	* tree-ssa-forwprop.c: Likewise.
      	* tree-ssa-ifcombine.c: Likewise.
      	* tree-ssa-live.c: Likewise.
      	* tree-ssa-live.h: Likewise.
      	* tree-ssa-loop-ch.c: Likewise.
      	* tree-ssa-loop-im.c: Likewise.
      	* tree-ssa-loop-ivcanon.c: Likewise.
      	* tree-ssa-loop-ivopts.c: Likewise.
      	* tree-ssa-loop-manip.c: Likewise.
      	* tree-ssa-loop-niter.c: Likewise.
      	* tree-ssa-loop-prefetch.c: Likewise.
      	* tree-ssa-loop-unswitch.c: Likewise.
      	* tree-ssa-loop.c: Likewise.
      	* tree-ssa-math-opts.c: Likewise.
      	* tree-ssa-operands.c: Likewise.
      	* tree-ssa-operands.h: Likewise.
      	* tree-ssa-phiopt.c: Likewise.
      	* tree-ssa-phiprop.c: Likewise.
      	* tree-ssa-pre.c: Likewise.
      	* tree-ssa-propagate.c: Likewise.
      	* tree-ssa-reassoc.c: Likewise.
      	* tree-ssa-sccvn.c: Likewise.
      	* tree-ssa-sink.c: Likewise.
      	* tree-ssa-structalias.c: Likewise.
      	* tree-ssa-ter.c: Likewise.
      	* tree-ssa-threadedge.c: Likewise.
      	* tree-ssa-threadupdate.c: Likewise.
      	* tree-ssa-uncprop.c: Likewise.
      	* tree-ssa.c: Likewise.
      	* tree-ssanames.c: Likewise.
      	* tree-switch-conversion.c: Likewise.
      	* tree-tailcall.c: Likewise.
      	* tree-vect-data-refs.c: Likewise.
      	* tree-vect-generic.c: Likewise.
      	* tree-vect-loop-manip.c: Likewise.
      	* tree-vect-loop.c: Likewise.
      	* tree-vect-patterns.c: Likewise.
      	* tree-vect-slp.c: Likewise.
      	* tree-vect-stmts.c: Likewise.
      	* tree-vectorizer.c: Likewise.
      	* tree-vectorizer.h: Likewise.
      	* tree-vrp.c: Likewise.
      	* tree.c: Likewise.
      	* tree.def: Likewise.
      	* tree.h: Likewise.
      	* treestruct.def: Likewise.
      	* unwind-compat.c: Likewise.
      	* unwind-dw2-fde-glibc.c: Likewise.
      	* unwind-dw2.c: Likewise.
      	* value-prof.c: Likewise.
      	* value-prof.h: Likewise.
      	* var-tracking.c: Likewise.
      	* varasm.c: Likewise.
      	* varpool.c: Likewise.
      	* vec.c: Likewise.
      	* vec.h: Likewise.
      	* vmsdbgout.c: Likewise.
      	* web.c: Likewise.
      	* xcoffout.c: Likewise.
      
      From-SVN: r154645
      b8698a0f
  17. Apr 09, 2009
  18. Feb 16, 2009
    • Jakub Jelinek's avatar
      gthr-dce.h: Uglify function parameter and local variable names. · 09e361bb
      Jakub Jelinek authored
      	* gthr-dce.h: Uglify function parameter and local variable names.
      	* 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.
      
      From-SVN: r144201
      09e361bb
  19. Dec 06, 2008
  20. May 05, 2008
    • Benjamin Kosnik's avatar
      gthr-single.h: Add in required interface elements as per gthr.h. · 23688481
      Benjamin Kosnik authored
      2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
      
              * 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.
      
      From-SVN: r134951
      23688481
  21. Mar 01, 2008
    • Janne Blomqvist's avatar
      re PR libfortran/35063 (Clean up use of destroy_unit_mutex()) · 4dabf736
      Janne Blomqvist authored
      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
      4dabf736
  22. Oct 05, 2007
    • Hans-Peter Nilsson's avatar
      * gthr-single.h: Revert last change. · 3913862e
      Hans-Peter Nilsson authored
      From-SVN: r129040
      3913862e
    • Doug Kwan's avatar
      gthr-posix.h (__gthread_cond_broadcast, [...]): Add to extend interface for... · afd82ef5
      Doug Kwan authored
      gthr-posix.h (__gthread_cond_broadcast, [...]): Add to extend interface for 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
      afd82ef5
  23. Jun 25, 2005
  24. Oct 22, 2004
    • Kazu Hirata's avatar
      dwarf.h, [...]: Update copyright. · 279b5b3c
      Kazu Hirata authored
      	* dwarf.h, gthr-dce.h, gthr-single.h, gthr-solaris.h, gthr.h,
      	libfuncs.h, libgcc2.h, stab.def, tsystem.h: Update copyright.
      
      From-SVN: r89446
      279b5b3c
  25. Aug 28, 2004
    • Jason Merrill's avatar
      re PR c++/13684 (local static object variable constructed once but ctors and... · 40aac948
      Jason Merrill authored
      re PR c++/13684 (local static object variable constructed once but ctors and 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
      40aac948
  26. Nov 15, 2002
  27. Oct 12, 2001
    • Kazu Hirata's avatar
      gthr-dce.h: Fix comment formatting. · 71287280
      Kazu Hirata authored
      	* 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
      71287280
  28. Aug 22, 2001
    • Lars Brinkhoff's avatar
      Makefile.in, [...]: replace "GNU CC" with "GCC". · 1322177d
      Lars Brinkhoff authored
      	* 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
      1322177d
  29. May 26, 2001
  30. Mar 28, 2001
  31. Jul 20, 2000
  32. Jan 27, 2000
  33. Dec 12, 1999
    • Kaveh R. Ghazi's avatar
      gthr-single.h (__gthread_active_p): Add prototype arguments. · 3e7d8ef1
      Kaveh R. Ghazi authored
      	* gthr-single.h (__gthread_active_p): Add prototype arguments.
      
      	* 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'.
      
      From-SVN: r30872
      3e7d8ef1
  34. Apr 17, 1998
    • Kaveh R. Ghazi's avatar
      Zap some warnings in target files: · 2467749d
      Kaveh R. Ghazi authored
              * 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.
      
      From-SVN: r19261
      2467749d
  35. Dec 24, 1997
    • Teemu Torma's avatar
      Makefile.in (GTHREAD_FLAGS): New var. · f24af81b
      Teemu Torma authored
      	* Makefile.in (GTHREAD_FLAGS): New var.
      	(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.
      
      From-SVN: r17235
      f24af81b
Loading