1. 01 Jan, 2019 1 commit
  2. 03 Jan, 2018 1 commit
  3. 03 Apr, 2017 1 commit
    • Fix numerous typos in comments · 5764ee3c
      gcc:
      
      	* alias.c (base_alias_check): Fix typo in comment.
      	* cgraph.h (class ipa_polymorphic_call_context): Likewise.
      	* cgraphunit.c (symbol_table::compile): Likewise.
      	* collect2.c (maybe_run_lto_and_relink): Likewise.
      	* config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
      	* config/avr/avr-arch.h (avr_arch_info_t): Likewise.
      	* config/avr/avr.c (avr_map_op_t): Likewise.
      	* config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
      	* config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
      	* config/epiphany/epiphany.md (movcc): Likewise.
      	* config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
      	* config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
      	Likewise.
      	* config/mips/mips.c (mips_save_restore_reg): Likewise.
      	* config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
      	* config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
      	* config/sh/sh.c (sh_rtx_costs): Likewise.
      	* fold-const.c (fold_truth_andor): Likewise.
      	* genautomata.c (collapse_flag): Likewise.
      	* gengtype.h (struct type::u::s): Likewise.
      	* gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
      	* input.c (FORMAT_AMOUNT): Likewise.
      	* ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
      	(known_aggs_to_agg_replacement_list): Likewise.
      	* ipa-inline-analysis.c: Likewise.
      	* ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
      	* ipa-polymorphic-call.c
      	(ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
      	* loop-unroll.c (analyze_insn_to_expand_var): Likewise.
      	* lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
      	Likewise.
      	* modulo-sched.c (apply_reg_moves): Likewise.
      	* omp-expand.c (build_omp_regions_1): Likewise.
      	* trans-mem.c (struct tm_wrapper_hasher): Likewise.
      	* tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
      	* tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
      	* tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
      	* value-prof.c: Likewise.
      	* var-tracking.c (val_reset): Likewise.
      
      gcc/ada:
      
      	* doc/gnat_ugn/gnat_and_program_execution.rst: Fix typo.
      	* g-socket.adb (To_Host_Entry): Fix typo in comment.
      	* gnat_ugn.texi: Fix typo.
      	* raise.c (_gnat_builtin_longjmp): Fix capitalization in comment.
      	* s-stposu.adb (Allocate_Any_Controlled): Fix typo in comment.
      	* sem_ch3.adb (Build_Derived_Record_Type): Likewise.
      	* sem_util.adb (Mark_Coextensions): Likewise.
      	* sem_util.ads (Available_Full_View_Of_Component): Likewise.
      
      gcc/c:
      
      	* c-array-notation.c: Fix typo in comment.
      
      gcc/c-family:
      
      	* c-warn.c (do_warn_double_promotion): Fix typo in comment.
      
      gcc/cp:
      
              * class.c (update_vtable_entry_for_fn): Fix typo in comment.
      	* decl2.c (one_static_initialization_or_destruction): Likewise.
      	* name-lookup.c (store_bindings): Likewise.
      	* parser.c (make_call_declarator): Likewise.
      	* pt.c (check_explicit_specialization): Likewise.
      
      gcc/testsuite:
      
      	* g++.old-deja/g++.benjamin/scope02.C: Fix typo in comment.
      	* gcc.dg/20031012-1.c: Likewise.
      	* gcc.dg/ipa/ipcp-1.c: Likewise.
      	* gcc.dg/torture/matrix-3.c: Likewise.
      	* gcc.target/powerpc/ppc-spe.c: Likewise.
      	* gcc.target/rx/zero-width-bitfield.c: Likewise.
      
      libcpp:
      
      	* include/line-map.h (LINEMAPS_MACRO_MAPS): Fix typo in comment.
      	* lex.c (search_line_fast): Likewise.
      	* pch.h (cpp_valid_state): Likewise.
      
      libdecnumber:
      
      	* decCommon.c (decFloatFromPackedChecked): Fix typo in comment.
      	* decNumber.c (decNumberPower, decMultiplyOp): Likewise.
      
      libgcc:
      
      	* config/c6x/pr-support.c (__gnu_unwind_execute): Fix typo in comment.
      
      libitm:
      
      	* libitm_i.h (sutrct gtm_thread): Fix typo in comment.
      
      From-SVN: r246664
      Jonathan Wakely committed
  4. 01 Jan, 2017 1 commit
  5. 22 Jan, 2016 1 commit
    • libitm: Fix HTM fastpath. · 6041f70a
      	* beginend.cc (GTM::gtm_thread::serial_lock): Put on cacheline
      	boundary.
      	(htm_fastpath): Remove.
      	(gtm_thread::begin_transaction): Fix HTM fastpath.
      	(_ITM_commitTransaction): Adapt.
      	(_ITM_commitTransactionEH): Adapt.
      	* libitm/config/linux/rwlock.h (gtm_rwlock): Add htm_fastpath member
      	and accessors.
      	* libitm/config/posix/rwlock.h (gtm_rwlock): Likewise.
      	* libitm/config/posix/rwlock.cc (gtm_rwlock::gtm_rwlock): Adapt.
      	* libitm/config/x86/sjlj.S (_ITM_beginTransaction): Fix HTM fastpath.
      	* libitm/libitm_i.h (htm_fastpath): Remove declaration.
      	* libitm/method-serial.cc (htm_mg): Adapt.
      	(gtm_thread::serialirr_mode): Adapt.
      	* libitm/query.cc (_ITM_inTransaction, _ITM_getTransactionId): Adapt.
      
      From-SVN: r232735
      Torvald Riegel committed
  6. 19 Jan, 2016 1 commit
  7. 12 Jan, 2016 1 commit
  8. 04 Jan, 2016 1 commit
  9. 22 Nov, 2015 1 commit
  10. 20 Nov, 2015 1 commit
    • Support __cxa_free_exception and fix exception handling. · 258c1d07
      	gcc/cp/
      	* except.c (do_free_exception): Use transactional wrapper.
      
      	libitm/
      	* testsuite/libitm.c++/eh-5.C: New.
      	* libitm.h (_ITM_cxa_free_exception): New.
      	* libitm.map (_ITM_cxa_free_exception): Add it.
      	* libitm.texi: Update ABI docs.
      	* libitm_i.h (gtm_transaction_cp::cxa_unthrown): Remove.
      	(gtm_transaction_cp::cxa_uncaught_count): Add.
      	(gtm_thread::cxa_unthrown): Remove.
      	(gtm_thread::cxa_uncaught_count_ptr): Add.
      	(gtm_thread::cxa_uncaught_count): Add.
      	(gtm_thread::drop_references_allocations): Rename to...
      	(gtm_thread::discard_allocation): ... this and adapt.
      	(gtm_thread::init_cpp_exceptions): New.
      	* beginend.cc (gtm_thread::gtm_thread): Adapt EH handling.
      	(gtm_thread::begin_transaction): Likewise.
      	(gtm_transaction_cp::save): Likewise.
      	(gtm_thread::trycommit): Likewise.
      	* eh_cpp.cc: Add overview comments.
      	(__cxa_eh_globals, __cxa_get_globals, __cxa_free_exception): Declare.
      	(free_any_exception, _ITM_cxa_free_exception): New.
      	(gtm_thread::init_cpp_exceptions): Define.
      	(_ITM_cxa_allocate_exception, _ITM_cxa_throw): Adapt.
      	(_ITM_cxa_begin_catch, _ITM_cxa_end_catch): Likewise.
      	(gtm_thread::revert_cpp_exceptions): Likewise.
      
      From-SVN: r230634
      Torvald Riegel committed
  11. 09 Nov, 2015 1 commit
  12. 05 Jan, 2015 1 commit
  13. 02 Jan, 2014 1 commit
  14. 30 Aug, 2013 1 commit
    • Add custom HTM fast path for RTM on x86_64. · bec9ec3f
      	* libitm_i.h (gtm_thread): Assign an asm name to serial_lock.
      	(htm_fastpath): Assign an asm name.
      	* libitm.h (_ITM_codeProperties): Add non-ABI flags used by custom
      	HTM fast paths.
      	(_ITM_actions): Likewise.
      	* config/x86/target.h (HTM_CUSTOM_FASTPATH): Enable custom fastpath on
      	x86_64.
      	* config/x86/sjlj.S (_ITM_beginTransaction): Add custom HTM fast path.
      	* config/posix/rwlock.h (gtm_rwlock): Update comments.  Move summary
      	field to the start of the structure.
      	* config/linux/rwlock.h (gtm_rwlock): Update comments.
      	* beginend.cc (gtm_thread::begin_transaction): Add retry policy
      	handling for custom HTM fast paths.
      
      From-SVN: r202101
      Torvald Riegel committed
  15. 03 Feb, 2013 1 commit
  16. 09 Nov, 2012 1 commit
    • Add HTM fastpath and use Intel RTM for it on x86. · 64fbcc74
      	* beginend.cc (htm_fastpath): New.
      	(gtm_thread::begin_transaction, _ITM_commitTransaction,
      	_ITM_commitTransactionEH): Add HTM fastpath handling.
      	* config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
      	* config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
      	* config/x86/target.h (htm_available, htm_init, htm_begin_success,
      	htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
      	* configure.tgt: Add -mrtm to XCFLAGS.
      	* method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
      	(gtm_thread::serialirr_mode): Add HTM fastpath handling.
      	* libitm_i.h (htm_fastpath, dispatch_htm): Declare.
      	* retry.cc (parse_default_method): Add HTM method parsing.
      	(gtm_thread::number_of_threads_changed): Use HTM by default if
      	available.
      
      From-SVN: r193369
      Torvald Riegel committed
  17. 14 Feb, 2012 1 commit
    • libitm: Add multi-lock, write-through TM method. · 31772c95
      	libitm/
      	* libitm_i.h (GTM::gtm_rwlog_entry): New.
      	(GTM::gtm_thread): Add read and write logs.
      	(GTM::dispatch_ml_wt): Declare.
      	* retry.cc (parse_default_method): Support ml_wt.
      	* method-ml.cc: New file.
      	* Makefile.am: Add method-ml.cc.
      	* Makefile.in: Regenerate.
      
      From-SVN: r184212
      Torvald Riegel committed
  18. 13 Jan, 2012 1 commit
    • libitm: Filter out undo writes that overlap with the libitm stack. · 07b6642b
      	PR libitm/51855
      	* config/generic/tls.h (GTM::mask_stack_top): New.
      	(GTM::mask_stack_bottom): Declare.
      	* config/generic/tls.c (GTM::mask_stack_bottom): New.
      	* local.cc (gtm_undolog::rollback): Filter out any updates that
      	overlap the libitm stack.  Add current transaction as parameter.
      	* libitm_i.h (GTM::gtm_undolog::rollback): Adapt.
      	* beginend.cc (GTM::gtm_thread::rollback): Adapt.
      	* testsuite/libitm.c/stackundo.c: New test.
      
      From-SVN: r183172
      Torvald Riegel committed
  19. 10 Jan, 2012 1 commit
  20. 08 Jan, 2012 1 commit
    • libitm: Optimize undo log. · 11f30bb0
      	libitm/
      	* local.cc (GTM_LB): Use GTM::gtm_undolog.
      	(GTM::gtm_thread::drop_references_undolog): Remove.
      	(GTM::gtm_thread::commit_undolog,
      	GTM::gtm_thread::rollback_undolog): Move to ...
      	* libitm_i.h (GTM::gtm_undolog): ...here. New.
      	(GTM::gtm_undolog_entry): Remove.
      	(GTM::gtm_thread): Adapt.
      	* beginend.cc (GTM::gtm_thread::rollback): Adapt.
      	(GTM::gtm_thread::trycommit): Adapt.
      	* method-serial.cc (serial_dispatch::log): Adapt.
      	* method-gl.cc (gl_wt_dispatch::pre_write): Adapt.
      	(gl_wt_dispatch::store): Fix likely/unlikely.
      	* containers.h (GTM::vector::resize): Add additional_capacity
      	parameter and handle it.
      	(GTM::vector::resize_noinline): New/adapt.
      	(GTM::vector::push): New.
      
      From-SVN: r182992
      Torvald Riegel committed
  21. 24 Dec, 2011 1 commit
    • libitm: Fix privatization safety during upgrades to serial mode. · 610e3901
      	libitm/
      	* beginend.cc (GTM::gtm_thread::restart): Add and handle
      	finish_serial_upgrade parameter.
      	* libitm.h (GTM::gtm_thread::restart): Adapt declaration.
      	* config/linux/rwlock.cc (GTM::gtm_rwlock::write_lock_generic):
      	Don't unset reader flag.
      	(GTM::gtm_rwlock::write_upgrade_finish): New.
      	* config/posix/rwlock.cc: Same.
      	* config/linux/rwlock.h (GTM::gtm_rwlock::write_upgrade_finish):
      	Declare.
      	* config/posix/rwlock.h: Same.
      	* method-serial.cc (GTM::gtm_thread::serialirr_mode): Unset reader
      	flag after commit or after rollback when restarting.
      
      From-SVN: r182675
      Torvald Riegel committed
  22. 13 Dec, 2011 1 commit
    • libitm: Conversion to c++11 atomics. · 36cfbee1
              * local_atomic: New file.
              * libitm_i.h: Include it.
              (gtm_thread::shared_state): Use atomic template.
              * beginend.cc (GTM::gtm_clock): Use atomic template.
              (global_tid): Use atomic template if 64-bit atomics available.
              (gtm_thread::gtm_thread): Update shared_state access.
              (gtm_thread::trycommit): Likewise.
              (choose_code_path): Update global_tid access.
              * method-gl.cc (gl_mg::orec): Use atomic template.  Update all users.
              * stmlock.h (GTM::gtm_clock): Use atomic template.
              (gtm_get_clock, gtm_inc_clock): Update accesses.
              * config/linux/rwlock.cc (gtm_rwlock::read_lock): Remove
              redundant __sync_synchronize after atomic shared_state access.
              * config/posix/rwlock.cc (gtm_rwlock::read_lock): Likewise.
              (gtm_rwlock::write_lock_generic): Likewise.
              (gtm_rwlock::read_unlock): Likewise.
              * config/alpha/target.h (atomic_read_barrier): Remove.
              (atomic_write_barrier): Remove.
              * config/x86/target.h (atomic_read_barrier): Remove.
              (atomic_write_barrier): Remove.
      
      From-SVN: r182294
      Richard Henderson committed
  23. 30 Nov, 2011 1 commit
    • Swap the action and jmpbuf arguments to GTM_longjmp · 062f93f2
      On several ABIs, the first register parameter is the same as
      the return value register.  Moving the action parameter first
      avoids the need for register shuffling on these targets.
      
              * libitm_i.h (GTM_longjmp): Swap first and second arguments.
              * beginend.c (_ITM_abortTransaction): Update to match.
              (GTM::gtm_thread::restart): Likewise.
              * config/alpha/sjlj.S (GTM_longjmp): Likewise.
              * config/x86/sjlj.S (GTM_longjmp): Likewise.
      
      From-SVN: r181863
      Richard Henderson committed
  24. 22 Nov, 2011 1 commit
  25. 09 Nov, 2011 1 commit
  26. 08 Nov, 2011 1 commit