1. 18 May, 2018 1 commit
    • PR c++/58407 - deprecated implicit copy ops. · b46b715d
      gcc/c-family/
      	* c.opt (Wdeprecated-copy): New flag.
      gcc/cp/
      	* call.c (build_over_call): Warn about deprecated trivial fns.
      	* class.c (classtype_has_user_copy_or_dtor): New.
      	(type_build_ctor_call): Check TREE_DEPRECATED.
      	(type_build_dtor_call): Likewise.
      	* decl2.c (cp_warn_deprecated_use): Move from tree.c.
      	Add checks.  Return bool.  Handle -Wdeprecated-copy.
      	(mark_used): Use it.
      	* decl.c (grokdeclarator): Remove redundant checks.
      	* typeck2.c (build_functional_cast): Likewise.
      	* method.c (lazily_declare_fn): Mark deprecated copy ops.
      	* init.c (build_aggr_init): Only set TREE_USED if there are
      	side-effects.
      libitm/
      	* beginend.cc (save): Disable -Werror=deprecated-copy.
      
      From-SVN: r260381
      Jason Merrill committed
  2. 02 May, 2018 2 commits
    • [testsuite] Add scan-ltrans-tree-dump · 9220b511
      2018-05-02  Tom de Vries  <tom@codesourcery.com>
      
      	PR testsuite/85106
      	* gcc.dg/ipa/ipa-icf-38.c: Use scan-ltrans-tree-dump.
      	* lib/scanltranstree.exp: New file.
      	* lib/target-supports.exp (scan-ltrans-tree-dump_required_options)
      	(scan-ltrans-tree-dump-times_required_options)
      	(scan-ltrans-tree-dump-not_required_options)
      	(scan-ltrans-tree-dump-dem_required_options)
      	(scan-ltrans-tree-dump-dem-not_required_options): New proc.
      	* lib/gcc-dg.exp: Include scanltranstree.exp.
      
      	* testsuite/lib/libatomic.exp: Include scanltranstree.exp.
      
      	* testsuite/lib/libgomp.exp: Include scanltranstree.exp.
      
      	* testsuite/lib/libitm.exp: Include scanltranstree.exp.
      
      	* testsuite/lib/libvtv.exp: Include scanltranstree.exp.
      
      	* doc/sourcebuild.texi (Commands for use in dg-final, Scan optimization
      	dump files): Add ltrans-tree.
      
      From-SVN: r259838
      Tom de Vries committed
    • [testsuite] Add scan-wpa-ipa-dump · 6c3c13c1
      2018-05-02  Tom de Vries  <tom@codesourcery.com>
      
      	PR testsuite/85106
      	* gcc.dg/ipa/ipa-icf-38.c: New test.
      	* gcc.dg/ipa/ipa-icf-38a.c: New test.
      	* lib/scandump.exp (dump-base): New proc.
      	(scan-dump, scan-dump-times, scan-dump-not, scan-dump-dem)
      	(scan-dump-dem-not): Add and handle parameter for suffix of the dump
      	base.
      	* lib/scanipa.exp: Add "" argument to scan-dump calls.
      	* lib/scanlang.exp: Same.
      	* lib/scanrtl.exp: Same.
      	* lib/scantree.exp: Same.
      	* lib/scanwpaipa.exp: New file.
      	* lib/gcc-dg.exp: Include scanwpaipa.exp.
      
      	* testsuite/lib/libatomic.exp: Include scanwpaipa.exp.
      
      	* testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
      
      	* testsuite/lib/libitm.exp: Include scanwpaipa.exp.
      
      	* testsuite/lib/libvtv.exp: Include scanwpaipa.exp.
      
      	* doc/sourcebuild.texi (Commands for use in dg-final, Scan optimization
      	dump files): Add wpa-ipa.
      
      From-SVN: r259837
      Tom de Vries committed
  3. 24 Apr, 2018 2 commits
    • x86: Update __CET__ check · ffc2fc06
      __CET__ has been changed by revision 259522:
      
      commit d59cfa9a4064339cf2bd2da828c4c133f13e57f0
      Author: hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
      Date:   Fri Apr 20 13:30:13 2018 +0000
      
          Define __CET__ for -fcf-protection and remove -mibt
      
      to
      
          (__CET__ & 1) != 0: -fcf-protection=branch or -fcf-protection=full
          (__CET__ & 2) != 0: -fcf-protection=return or -fcf-protection=full
      
      We should check (__CET__ & 2) != 0 for shadow stack.
      
      libgcc/
      
      	* config/i386/linux-unwind.h: Add (__CET__ & 2) != 0 check
      	when including "config/i386/shadow-stack-unwind.h".
      
      libitm/
      
      	* config/x86/sjlj.S (_ITM_beginTransaction): Add
      	(__CET__ & 2) != 0 check for shadow stack.
      	(GTM_longjmp): Likewise.
      
      From-SVN: r259621
      H.J. Lu committed
    • Regenerate configure of target libraries · 7b47ecf2
      	* configure: Regenerated.
      
      From-SVN: r259610
      H.J. Lu committed
  4. 23 Apr, 2018 1 commit
  5. 19 Apr, 2018 1 commit
  6. 18 Apr, 2018 1 commit
  7. 19 Feb, 2018 1 commit
    • CET shouldn't be enabled in 32-bit run-time libraries by defualt · 14e335ed
      ENDBR32 and RDSSPD are multi-byte NOPs on x86-64 processors and
      newer x86 processors, starting Pentium Pro.  They are UD on older
      32-bit processors. Detect this at configure time and adjust the
      default value for enable_cet. GCC will enable CET in 32-bit run-time
      libraries in any case if --enable-cet is used to configure GCC.
      
      	PR target/84148
      	* config/cet.m4: Check if target support multi-byte NOPS (SSE).
      	* libatomic/configure: Regenerate.
      	* libbacktrace/configure: Likewise.
      	* libgcc/configure: Likewise.
      	* libgfortran/configure: Likewise.
      	* libgomp/configure: Likewise.
      	* libitm/configure: Likewise.
      	* libmpx/configure: Likewise.
      	* libobjc/configure: Likewise.
      	* libquadmath/configure: Likewise.
      	* libsanitizer/configure: Likewise.
      	* libssp/configure: Likewise.
      	* libstdc++-v3/configure: Likewise.
      	* libvtv/configure: Likewise.
      
      From-SVN: r257809
      Igor Tsimbalist committed
  8. 03 Jan, 2018 2 commits
    • Update copyright years. · 85ec4feb
      From-SVN: r256169
      Jakub Jelinek committed
    • gcc.c (process_command): Update copyright notice dates. · 65e6aea3
      gcc/
      	* gcc.c (process_command): Update copyright notice dates.
      	* gcov-dump.c (print_version): Ditto.
      	* gcov.c (print_version): Ditto.
      	* gcov-tool.c (print_version): Ditto.
      	* gengtype.c (create_file): Ditto.
      	* doc/cpp.texi: Bump @copying's copyright year.
      	* doc/cppinternals.texi: Ditto.
      	* doc/gcc.texi: Ditto.
      	* doc/gccint.texi: Ditto.
      	* doc/gcov.texi: Ditto.
      	* doc/install.texi: Ditto.
      	* doc/invoke.texi: Ditto.
      gcc/fortran/
      	* gfortranspec.c (lang_specific_driver): Update copyright notice
      	dates.
      	* gfc-internals.texi: Bump @copying's copyright year.
      	* gfortran.texi: Ditto.
      	* intrinsic.texi: Ditto.
      	* invoke.texi: Ditto.
      gcc/ada/
       	* gnat_ugn.texi: Bump @copying's copyright year.
       	* gnat_rm.texi: Likewise.
      gcc/go/
      	* gccgo.texi: Bump @copyrights-go year.
      libitm/
      	* libitm.texi: Bump @copying's copyright year.
      libgomp/
      	* libgomp.texi: Bump @copying's copyright year.
      libquadmath/
      	* libquadmath.texi: Bump @copying's copyright year.
      
      From-SVN: r256166
      Jakub Jelinek committed
  9. 17 Nov, 2017 2 commits
    • Enable building libitm with Intel CET · c51081fc
      libitm/
      	* Makefile.in: Regenerate.
      	* acinclude.m4: Add enable.m4 and cet.m4.
      	* config/x86/sjlj.S: Include cet.h.
      	(_ITM_beginTransaction): Add _CET_ENDBR.
      	Save Shadow Stack pointer.
      	(GTM_longjmp): Add _CET_ENDBR. Restore Shadow Stack pointer.
      	* config/x86/target.h (struct gtm_jmpbuf):
      	Add new field for Shadow Stack pointer.
      	* configure: Regenerate.
      	* configure.ac: Set CET_FLAGS. Update XCFLAGS.
      	* configure.ac: Update libtool_VERSION for x86.
      	* testsuite/Makefile.in: Regenerate.
      
      From-SVN: r254908
      Igor Tsimbalist committed
    • Add extra field to gtm_jmpbuf on x86 only · cc03e55b
      Expand the gtm_jmpbuf structure by one word field to add
      Intel CET support further. The code in sjlj.S already
      allocates more space on the stack then gtm_jmpbuf needs.
      Use this extra space to absorb the new field.
      
      The structure is allocated on the stack in such a way
      that eip/rsp field is overlapped with return address on
      the stack. Locate the new field right before eip/rsp so
      code that accesses buffer fields relative to address of
      gtm_jmpbuf has its offsets unchanged.
      
      	* libitm/config/x86/target.h: Add new field (ssp).
      	* libitm/config/x86/sjlj.S: Change offsets.
      
      From-SVN: r254907
      Igor Tsimbalist committed
  10. 16 Jun, 2017 1 commit
    • PR c++/80560 - warn on undefined memory operations involving non-trivial types · c3684b7b
      gcc/c-family/ChangeLog:
      
      	PR c++/80560
      	* c.opt (-Wclass-memaccess): New option.
      
      gcc/cp/ChangeLog:
      
      	PR c++/80560
      	* call.c (first_non_public_field, maybe_warn_class_memaccess): New
      	functions.
      	(has_trivial_copy_assign_p, has_trivial_copy_p): Ditto.
      	(build_cxx_call): Call maybe_warn_class_memaccess.
      
      gcc/ChangeLog:
      
      	PR c++/80560
      	* dumpfile.c (dump_register): Avoid calling memset to initialize
      	a class with a default ctor.
      	* gcc.c (struct compiler): Remove const qualification.
      	* genattrtab.c (gen_insn_reserv): Replace memset with initialization.
      	* hash-table.h: Ditto.
      	* ipa-cp.c (allocate_and_init_ipcp_value): Replace memset with
      	  assignment.
      	* ipa-prop.c (ipa_free_edge_args_substructures): Ditto.
      	* omp-low.c (lower_omp_ordered_clauses): Replace memset with
      	default ctor.
      	* params.h (struct param_info): Make struct members non-const.
      	* tree-switch-conversion.c (emit_case_bit_tests): Replace memset
      	with default initialization.
      	* vec.h (vec_copy_construct, vec_default_construct): New helper
      	functions.
      	(vec<T>::copy, vec<T>::splice, vec<T>::reserve): Replace memcpy
      	with vec_copy_construct.
      	(vect<T>::quick_grow_cleared): Replace memset with default ctor.
      	(vect<T>::vec_safe_grow_cleared, vec_safe_grow_cleared): Same.
      	* doc/invoke.texi (-Wclass-memaccess): Document.
      
      libcpp/ChangeLog:
      
      	PR c++/80560
      	* line-map.c (line_maps::~line_maps): Avoid calling htab_delete
      	with a null pointer.
      	(linemap_init): Avoid calling memset on an object of a non-trivial
      	type.
      
      libitm/ChangeLog:
      
      	PR c++/80560
      	* beginend.cc (GTM::gtm_thread::rollback): Avoid calling memset
      	on an object of a non-trivial type.
      	(GTM::gtm_transaction_cp::commit): Use assignment instead of memcpy
      	to copy an object.
      	* method-ml.cc (orec_iterator::reinit): Avoid -Wclass-memaccess.
      
      gcc/testsuite/ChangeLog:
      
      	PR c++/80560
      	* g++.dg/Wclass-memaccess.C: New test.
      
      From-SVN: r249234
      Martin Sebor committed
  11. 12 May, 2017 1 commit
    • Load new scanlang.exp · 62ffe920
      	libitm:
      	* testsuite/lib/libitm.exp: Load scanlang.exp.
      
      	libgomp:
      	* testsuite/lib/libgomp.exp: Load scanlang.exp.
      
      	libatomic:
      	* testsuite/lib/libatomic.exp: Load scanlang.exp.
      
      From-SVN: r247959
      Rainer Orth committed
  12. 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
  13. 21 Jan, 2017 1 commit
    • re PR other/79046 (g++ -print-file-name=plugin uses full version number in path) · 73aa401e
      	PR other/79046
      libatomic/
      	* testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
      	of cat to get version from BASE-VER file.
      	* testsuite/Makefile.in: Regenerated.
      libffi/
      	* configure.ac: Add GCC_BASE_VER.
      	* include/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
      	of cat to get version from BASE-VER file.
      	* configure: Regenerated.
      	* testsuite/Makefile.in: Regenerated.
      	* include/Makefile.in: Regenerated.
      	* Makefile.in: Regenerated.
      	* man/Makefile.in: Regenerated.
      libgomp/
      	* testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
      	of cat to get version from BASE-VER file.
      	* testsuite/Makefile.in: Regenerated.
      libitm/
      	* testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
      	of cat to get version from BASE-VER file.
      	* testsuite/Makefile.in: Regenerated.
      libmpx/
      	* mpxrt/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
      	of cat to get version from BASE-VER file.
      	* mpxwrap/Makefile.am (gcc_version): Likewise.
      	* mpxrt/Makefile.in: Regenerated.
      	* mpxwrap/Makefile.in: Regenerated.
      liboffloadmic/
      	* plugin/configure.ac: Add GCC_BASE_VER.
      	* plugin/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
      	of cat to get version from BASE-VER file.
      	* plugin/configure: Regenerated.
      	* plugin/aclocal.m4: Regenerated.
      	* plugin/Makefile.in: Regenerated.
      libsanitizer/
      	* interception/Makefile.am (gcc_version): Use @get_gcc_base_ver@
      	instead of cat to get version from BASE-VER file.
      	* asan/Makefile.am (gcc_version): Likewise.
      	* ubsan/Makefile.am (gcc_version): Likewise.
      	* sanitizer_common/Makefile.am (gcc_version): Likewise.
      	* lsan/Makefile.am (gcc_version): Likewise.
      	* tsan/Makefile.am (gcc_version): Likewise.
      	* interception/Makefile.in: Regenerated.
      	* asan/Makefile.in: Regenerated.
      	* ubsan/Makefile.in: Regenerated.
      	* sanitizer_common/Makefile.in: Regenerated.
      	* lsan/Makefile.in: Regenerated.
      	* tsan/Makefile.in: Regenerated.
      libvtv/
      	* testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
      	of cat to get version from BASE-VER file.
      	* testsuite/Makefile.in: Regenerated.
      
      From-SVN: r244742
      Jakub Jelinek committed
  14. 19 Jan, 2017 1 commit
  15. 18 Jan, 2017 1 commit
  16. 17 Jan, 2017 1 commit
    • re PR other/79046 (g++ -print-file-name=plugin uses full version number in path) · 3c36aa6b
      	PR other/79046
      	* configure: Regenerated.
      config/
      	* acx.m4 (GCC_BASE_VER): New m4 function.
      	(ACX_TOOL_DIRS): Require GCC_BASE_VER, for
      	--with-gcc-major-version-only use just major number from BASE-VER.
      gcc/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
      	version from BASE-VER file.
      	(CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
      	(gcc.o): Depend on $(BASEVER).
      	* common.opt (dumpfullversion): New option.
      	* gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
      	* doc/invoke.texi: Document -dumpfullversion.
      	* doc/install.texi: Document --with-gcc-major-version-only.
      	* configure: Regenerated.
      libatomic/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* testsuite/Makefile.in: Regenerated.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      libgomp/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* testsuite/Makefile.in: Regenerated.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      libgcc/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
      	version from BASE-VER file.
      	* configure: Regenerated.
      libssp/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      liboffloadmic/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* aclocal.m4: Include ../config/acx.m4.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      libquadmath/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      libmpx/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      libada/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
      	version from BASE-VER file.
      	* configure: Regenerated.
      lto-plugin/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      libitm/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* testsuite/Makefile.in: Regenerated.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      fixincludes/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.in (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* configure: Regenerated.
      libcilkrts/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* aclocal.m4: Include ../config/acx.m4.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      libcc1/
      	* configure.ac: Add GCC_BASE_VER.  For --with-gcc-major-version-only
      	use just major number from BASE-VER.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      libobjc/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.in (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* configure: Regenerated.
      libstdc++-v3/
      	* configure.ac: Add GCC_BASE_VER.
      	* fragment.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* po/Makefile.in: Regenerated.
      	* libsupc++/Makefile.in: Regenerated.
      	* testsuite/Makefile.in: Regenerated.
      	* src/Makefile.in: Regenerated.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      	* include/Makefile.in: Regenerated.
      	* doc/Makefile.in: Regenerated.
      	* python/Makefile.in: Regenerated.
      	* src/c++11/Makefile.in: Regenerated.
      	* src/c++98/Makefile.in: Regenerated.
      	* src/filesystem/Makefile.in: Regenerated.
      libvtv/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* testsuite/Makefile.in: Regenerated.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      libsanitizer/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* libbacktrace/Makefile.in: Regenerated.
      	* interception/Makefile.in: Regenerated.
      	* asan/Makefile.in: Regenerated.
      	* ubsan/Makefile.in: Regenerated.
      	* configure: Regenerated.
      	* sanitizer_common/Makefile.in: Regenerated.
      	* lsan/Makefile.in: Regenerated.
      	* Makefile.in: Regenerated.
      	* tsan/Makefile.in: Regenerated.
      libgfortran/
      	* configure.ac: Add GCC_BASE_VER.
      	* Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
      	get version from BASE-VER file.
      	* configure: Regenerated.
      	* Makefile.in: Regenerated.
      
      From-SVN: r244521
      Jakub Jelinek committed
  17. 04 Jan, 2017 1 commit
    • Update configure deps, remove stray \xA0 in picflag.m4, regenerate · 8f56cb51
      Also fix a stray changelog entry.  Some of the regen here is due to
      previous changes not being regenerated properly, in part due to the
      missing configure dependencies.
      
      	* configure: Regenerate.
      config/
      	* picflag.m4: Remove stray \xA0 in comment.
      gcc/
      	* Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
      	* configure: Regenerate.
      	* config.in: Regenerate.
      libada/
      	* Makefile.in (configure_deps): Update and order as per
      	configure.ac sinclude.
      	* configure: Regenerate.
      libgcc/
      	* Makefile.in (configure_deps): Update.
      	* configure: Regenerate.
      libiberty/
      	* Makefile.in (configure_deps): Update.
      	* configure: Regenerate.
      libitm/
      	* Makefile.in: Regenerate.
      	* testsuite/Makefile.in: Regenerate.
      
      From-SVN: r244049
      Alan Modra committed
  18. 01 Jan, 2017 2 commits
    • Update copyright years. · cbe34bb5
      From-SVN: r243994
      Jakub Jelinek committed
    • gcc.c (process_command): Update copyright notice dates. · c1a9c369
      gcc/
      	* gcc.c (process_command): Update copyright notice dates.
      	* gcov-dump.c (print_version): Ditto.
      	* gcov.c (print_version): Ditto.
      	* gcov-tool.c (print_version): Ditto.
      	* gengtype.c (create_file): Ditto.
      	* doc/cpp.texi: Bump @copying's copyright year.
      	* doc/cppinternals.texi: Ditto.
      	* doc/gcc.texi: Ditto.
      	* doc/gccint.texi: Ditto.
      	* doc/gcov.texi: Ditto.
      	* doc/install.texi: Ditto.
      	* doc/invoke.texi: Ditto.
      gcc/fortran/
      	* gfortranspec.c (lang_specific_driver): Update copyright notice
      	dates.
      	* gfc-internals.texi: Bump @copying's copyright year.
      	* gfortran.texi: Ditto.
      	* intrinsic.texi: Ditto.
      	* invoke.texi: Ditto.
      gcc/ada/
      	* gnat_ugn.texi: Bump @copying's copyright year.
      	* gnat_rm.texi: Likewise.
      gcc/go/
      	* gccgo.texi: Bump @copyrights-go year.
      libitm/
      	* libitm.texi: Bump @copying's copyright year.
      libgomp/
      	* libgomp.texi: Bump @copying's copyright year.
      libquadmath/
      	* libquadmath.texi: Bump @copying's copyright year.
      
      From-SVN: r243992
      Jakub Jelinek committed
  19. 12 Dec, 2016 1 commit
    • Disable hwcaps on libgfortran · 66dbcf2d
      	libgfortran:
      	* configure.ac: Call GCC_CHECK_LINKER_HWCAP.
      	* Makefile.am (libgfortran_la_LDFLAGS): Add HWCAP_LDFLAGS.
      	* aclocal.m4: Regenerate.
      	* configure: Regenerate.
      	* Makefile.in: Regenerate.
      
      	config:
      	* hwcaps.m4: New file.
      
      	libitm:
      	* acinclude.m4 (LIBITM_CHECK_LINKER_FEATURES): Remove.
      	* aclocal.m4: Regenerate.
      	* configure.ac: Call GCC_CHECK_LINKER_HWCAP instead of
      	LIBITM_CHECK_LINKER_HWCAP.
      
      From-SVN: r243552
      Rainer Orth committed
  20. 15 Nov, 2016 1 commit
    • config-ml.in: Remove references to GCJ. · 84c1b9d3
      <toplevel>
      
      2016-11-15  Matthias Klose  <doko@ubuntu.com>
      
      	* config-ml.in: Remove references to GCJ.
      	* configure.ac: Likewise.
      	* configure: Regenerate.
      
      config/
      
      2016-11-15  Matthias Klose  <doko@ubuntu.com>
      
      	multi.m4: Don't set GCJ.
      
      gcc/
      
      2016-11-15  Matthias Klose  <doko@ubuntu.com>
      
      	* doc/install.texi: Remove references to gcj/libjava.
      	* doc/invoke.texi: Likewise.
      
      */ (where necessary)
      
      2016-11-15  Matthias Klose  <doko@ubuntu.com>
      
      	* configure: Regenerate.
      
      From-SVN: r242433
      Matthias Klose committed
  21. 19 Apr, 2016 1 commit
    • Allocate memory on cache line if requested · 831698b8
      Since GTM::gtm_thread has
      
      gtm_thread *next_thread __attribute__((__aligned__(HW_CACHELINE_SIZE)));
      
      GTM::gtm_thread::operator new () calls xmalloc with separate_cl == true.
      xmalloc must return memory on cache line in this case.
      
      	PR libitm/70456
      	* util.cc (xmalloc): Use posix_memalign to allocate memory on
      	on cache line if requested.
      
      From-SVN: r235211
      H.J. Lu committed
  22. 03 Mar, 2016 1 commit
    • libitm: Introduce target macro TARGET_BEGIN_TRANSACTION_ATTRIBUTE. · edcbda7e
      The attached patch adds the a target specific attribute via the
      new target macro TARGET_BEGIN_TRANSACTION_ATTRIBUTE to the
      function begin_transaction().  S/390 uses this to set the
      soft-float target attribute which is needed to fix a crash with
      -m31.
      
      As there seems to be no place in libitm to document internal macros like
      USE_HTM_FASTPATH or the new macro, I've put the documentation in a
      comment where the macro is used.
      
      2016-03-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
      
      	* config/s390/target.h (TARGET_BEGIN_TRANSACTION_ATTRIBUTE): Define
      	function attribute to disable floating point in begin_transaction() on
      	S/390.
      	* beginend.cc (begin_transaction): Use
      	TARGET_BEGIN_TRANSACTION_ATTRIBUTE.
      
      From-SVN: r233929
      Dominik Vogt committed
  23. 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
  24. 21 Jan, 2016 1 commit
  25. 20 Jan, 2016 1 commit
    • re PR target/69343 (Bootstrap failure on s390{,x}-linux) · b1de98e3
      PR bootstrap/69343
      PR bootstrap/69339
      PR tree-opt/68964
      
      Revert:
      gcc/
        * tree.c (tm_define_builtin): New.
        (find_tm_vector_type): New.
        (build_tm_vector_builtins): New.
        (build_common_builtin_nodes): Call it.
      libitm/
        * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
        (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
        (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
        (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
        * configure.ac (ARCH_AARCH64): New conditional.
        (ARCH_PPC, ARCH_S390): Likewise.
        * Makefile.in, configure: Rebuild.
        * libitm.h (_ITM_TYPE_M128): Always define.
        * vect64.cc: Split ...
        * vect128.cc: ... out of...
        * config/x86/x86_sse.cc: ... here.
        * config/arm/neon.cc: New file.
      
      From-SVN: r232631
      Richard Henderson committed
  26. 19 Jan, 2016 1 commit
  27. 16 Jan, 2016 1 commit
  28. 15 Jan, 2016 1 commit
  29. 13 Jan, 2016 3 commits
    • libitm: Fix seq-cst MOs/fences in rwlock. · e89137ce
      From-SVN: r232353
      Torvald Riegel committed
    • re PR target/68964 (Internal compiler error for test case gcc.dg/tm/20100610.c since r231674) · 4c868789
      PR 68964
      
      gcc/
       PR tree-opt/68964
       * target.def (builtin_tm_load, builtin_tm_store): Remove.
       * config/i386/i386.c (ix86_builtin_tm_load): Remove.
       (ix86_builtin_tm_store): Remove.
       (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
       (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
       * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
       (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
       * doc/tm.texi: Rebuild.
       * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
       (BUILT_IN_TM_MEMCPY_RTWN): New.
       * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
       fallback from vector to integer helpers.
       (build_tm_load): Handle vector types directly, instead of
       via target hook.
       (build_tm_store): Likewise.
       (expand_assign_tm): Prepare for register types not handled by
       the above.  Copy them to memory and use memcpy.
       * tree.c (tm_define_builtin): New.
       (find_tm_vector_type): New.
       (build_tm_vector_builtins): New.
       (build_common_builtin_nodes): Call it.
      
      libitm/
       * Makefile.am (libitm_la_SOURCES) [ARCH_AARCH64]: Add vect128.cc
       (libitm_la_SOURCES) [ARCH_ARM]: Add neon.cc
       (libitm_la_SOURCES) [ARCH_PPC]: Add vect128.cc
       (libitm_la_SOURCES) [ARCH_S390]: Add vect128.cc
       * configure.ac (ARCH_AARCH64): New conditional.
       (ARCH_PPC, ARCH_S390): Likewise.
       * Makefile.in, configure: Rebuild.
       * libitm.h (_ITM_TYPE_M128): Always define.
       * vect64.cc: Split ...
       * vect128.cc: ... out of...
       * config/x86/x86_sse.cc: ... here.
       * config/arm/neon.cc: New file.
      
      From-SVN: r232330
      Richard Henderson committed
  30. 12 Jan, 2016 1 commit
  31. 04 Jan, 2016 2 commits
    • Update copyright years. · 818ab71a
      From-SVN: r232055
      Jakub Jelinek committed
    • gcc.c (process_command): Update copyright notice dates. · 21fa2a29
      gcc/
      	* gcc.c (process_command): Update copyright notice dates.
      	* gcov-dump.c (print_version): Ditto.
      	* gcov.c (print_version): Ditto.
      	* gcov-tool.c (print_version): Ditto.
      	* gengtype.c (create_file): Ditto.
      	* doc/cpp.texi: Bump @copying's copyright year.
      	* doc/cppinternals.texi: Ditto.
      	* doc/gcc.texi: Ditto.
      	* doc/gccint.texi: Ditto.
      	* doc/gcov.texi: Ditto.
      	* doc/install.texi: Ditto.
      	* doc/invoke.texi: Ditto.
      gcc/ada/
      	* gnat_ugn.texi: Bump @copying's copyright year.
      	* gnat_rm.texi: Likewise.
      gcc/fortran/
      	* gfortranspec.c (lang_specific_driver): Update copyright notice
      	dates.
      	* gfc-internals.texi: Bump @copying's copyright year.
      	* gfortran.texi: Ditto.
      	* intrinsic.texi: Ditto.
      	* invoke.texi: Ditto.
      gcc/go/
      	* gccgo.texi: Bump @copyrights-go year.
      gcc/java/
      	* jcf-dump.c (version): Update copyright notice dates.
      libgomp/
      	* libgomp.texi: Bump @copying's copyright year.
      libitm/
      	* libitm.texi: Bump @copying's copyright year.
      libjava/
      	* classpath/gnu/java/rmi/registry/RegistryImpl.java (version): Update
      	copyright notice dates.
      	* classpath/tools/gnu/classpath/tools/orbd/Main.java (run): Ditto.
      	* gnu/gcj/convert/Convert.java (version): Update copyright notice
      	dates.
      	* gnu/gcj/tools/gcj_dbtool/Main.java (main): Ditto.
      libquadmath/
      	* libquadmath.texi: Bump @copying's copyright year.
      
      From-SVN: r232053
      Jakub Jelinek committed
  32. 26 Nov, 2015 1 commit