and though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here

This project is mirrored from git://gcc.gnu.org/git/gcc.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
Last successful update .
  1. 21 Dec, 2016 2 commits
  2. 20 Dec, 2016 1 commit
  3. 19 Dec, 2016 1 commit
  4. 18 Dec, 2016 1 commit
  5. 17 Dec, 2016 1 commit
  6. 16 Dec, 2016 2 commits
  7. 15 Dec, 2016 3 commits
  8. 14 Dec, 2016 7 commits
    • Nathan Sidwell's avatar
      re PR c++/78701 (ICE: unexpected expression N of kind template_parm_index) · 7373f204
      Nathan Sidwell authored
      	PR c++/78701
      	* pt.c (type_unification_real): Check tsubst arg doesn't have
      	remaining template parms before converting it.
      
      	PR c++/78701
      	* g++.dg/cpp0x/pr78701.C: New.
      
      From-SVN: r243660
      7373f204
    • Uros Bizjak's avatar
      re PR target/59874 (Missing builtin (__builtin_clzs) when compiling with g++) · 2a5c20fe
      Uros Bizjak authored
      	PR target/59874
      	* config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_CLZS
      	and IX86_BUILTIN_CTZS.
      	(bdesc_args): Add __builtin_clzs and __builtin_ctzs.
      	(ix86_fold_builtin): Handle IX86_BUILTIN_CTZS and IX86_BUILTIN_CLZS.
      
      From-SVN: r243651
      2a5c20fe
    • Jakub Jelinek's avatar
      re PR target/78796 (TLS fails to link on aarch64 with -mcmodel=large) · b150535f
      Jakub Jelinek authored
      	PR target/78796
      	* config/aarch64/aarch64.c (aarch64_classify_symbol): Merge large
      	model checks into switch.
      
      	* gcc.dg/tls/pr78796.c: New test.
      
      From-SVN: r243646
      b150535f
    • Richard Biener's avatar
      re PR tree-optimization/78731 (Possible bug with switch when optimization is turned on.) · e2574ed3
      Richard Biener authored
      2016-12-14  Richard Biener  <rguenther@suse.de>
      
      	PR tree-optimization/78731
      	* gcc.dg/torture/pr78731.c: New testcase.
      
      From-SVN: r243642
      e2574ed3
    • Thomas Preud'homme's avatar
      Improve comment for struct symbolic_number in bswap pass · 105ef8df
      Thomas Preud'homme authored
      2016-12-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
      
          Backport from mainline
          2016-11-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
      
          gcc/
          * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.
      
      From-SVN: r243636
      105ef8df
    • Thomas Preud'homme's avatar
      Fix PR77673: bswap loads passed end of object · 39b05e20
      Thomas Preud'homme authored
      2016-12-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
      
          Backport from mainline
          2016-11-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
      
          gcc/
          PR tree-optimization/77673
          * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
          (init_symbolic_number): Initialize src field from src parameter.
          (perform_symbolic_merge): Select most dominated statement as the
          source statement.  Set src field of resulting n structure from the
          input src with the lowest address.
          (find_bswap_or_nop): Rename source_stmt into ins_stmt.
          (bswap_replace): Rename src_stmt into ins_stmt.  Initially get source
          of load from src field rather than insertion statement.  Cancel
          optimization if statement analyzed is not dominated by the insertion
          statement.
          (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt.  Compute
          dominance information.
      
          gcc/testsuite/
          PR tree-optimization/77673
          * gcc.dg/pr77673.c: New test.
      
      From-SVN: r243635
      39b05e20
    • GCC Administrator's avatar
      Daily bump. · 16781eb7
      GCC Administrator authored
      From-SVN: r243628
      16781eb7
  9. 13 Dec, 2016 4 commits
    • Michael Meissner's avatar
      backport: re PR target/72717 (ICE: in emit_move_insn, at expr.c:3693 with... · 86c5a6eb
      Michael Meissner authored
      backport: re PR target/72717 (ICE: in emit_move_insn, at expr.c:3693 with vector shift @ powerpc64le)
      
      [gcc]
      2016-12-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
      
      	Backport from mainline
      	2016-12-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
      
      	PR target/72717
      	* config/rs6000/rs6000.c (rs6000_expand_vector_init): If the
      	V2DImode elements are SUBREG's convert the result into DImode
      	rather than failing in emit_move_insn.
      
      [gcc/testsuite]
      2016-12-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
      
      	Backport from mainline
      	2016-12-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
      
      	PR target/72717
      	* gcc.target/powerpc/pr72717.c: New test.
      
      From-SVN: r243626
      86c5a6eb
    • Jakub Jelinek's avatar
      re PR c++/78761 (C++14, compiler generate mangled name that can not be demangled) · 54d36ec5
      Jakub Jelinek authored
      	PR c++/78761
      	* cp-demangle.c (cplus_demangle_type): Demangle Dc as decltype(auto).
      	* testsuite/demangle-expected: Add test for decltype(auto).
      
      From-SVN: r243594
      54d36ec5
    • Iain Sandoe's avatar
      [Darwin,PPC] Back-port fix for PR71496. · 3dd7ea46
      Iain Sandoe authored
      gcc/
      
      2016-12-13  Iain Sandoe  <iain@codesourcery.com>
      
      	Backport from mainline
      	2016-12-11  Iain Sandoe  <iain@codesourcery.com>
      
      	PR rtl-optimization/71496
      	* config/rs6000/darwin.md (load_macho_picbase_si): Mark as non-
      	copyable.  (load_macho_picbase_di, reload_macho_picbase_si,
      	reload_macho_picbase_di): Likewise.
      
      From-SVN: r243590
      3dd7ea46
    • GCC Administrator's avatar
      Daily bump. · f0b33ae7
      GCC Administrator authored
      From-SVN: r243587
      f0b33ae7
  10. 12 Dec, 2016 17 commits
    • Jonathan Wakely's avatar
      Add missing header in Filesystem TS configure tests · c629e659
      Jonathan Wakely authored
      Backport from mainline
      2016-10-26  Uros Bizjak  <ubizjak@gmail.com>
      
      	* acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Include <limits.h>
      	for PATH_MAX in realpath test.
      	* configure: Regenerate.
      
      From-SVN: r243577
      c629e659
    • Jonathan Wakely's avatar
      Remove bogus ChangeLog entries from r243569 to r243574 · c3e169de
      Jonathan Wakely authored
      For some reason git-svn created a number of duplicate ChangeLog entries
      and committed them.
      
      From-SVN: r243576
      c3e169de
    • Jonathan Wakely's avatar
      Fix configure test for sendfile() · bc156488
      Jonathan Wakely authored
      	Backport from mainline
      	2016-05-25  Jonathan Wakely  <jwakely@redhat.com>
      
      	* acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Fix test for sendfile.
      	* configure: Regenerate.
      	* config.h.in: Regenerate.
      
      From-SVN: r243574
      bc156488
    • Jonathan Wakely's avatar
      Improve tests for contents of <new> header · 8a26eb21
      Jonathan Wakely authored
      	Backport from mainline
      	2016-12-07  Jonathan Wakely  <jwakely@redhat.com>
      
      	* testsuite/18_support/headers/new/synopsis.cc: Add C++14 declarations
      	and use effective-target to do test for C++11 and later.
      	* testsuite/18_support/headers/new/synopsis_cxx98.cc: New test.
      
      From-SVN: r243573
      8a26eb21
    • Jonathan Wakely's avatar
      PR78465 Remove runtime tests for <atomic> macros · afa5dd98
      Jonathan Wakely authored
      	PR libstdc++/78465
      	* testsuite/29_atomics/headers/atomic/macros.cc: Replace runtime tests
      	with preprocessor conditions.
      
      From-SVN: r243572
      afa5dd98
    • Jonathan Wakely's avatar
      Enable experimental::enable_shared_from_this explicitly · f70c36d1
      Jonathan Wakely authored
      Backport from mainline
      2016-10-19  Jonathan Wakely  <jwakely@redhat.com>
      
      	* include/experimental/bits/shared_ptr.h (experimental::shared_ptr):
      	Change relevant constructors to call _M_enable_shared_from_this_with.
      	(experimental::shared_ptr::__efst_base_t)
      	(experimental::shared_ptr::__has_efst_base): Helpers to detect
      	accessible and unambiguous enable_shared_from_this bases.
      	(experimental::shared_ptr::_M_enable_shared_from_this_with): Define.
      	(experimental::__enable_shared_from_this_helper): Remove overload for
      	std::experimental::enable_shared_from_this.
      	(experimental::__expt_enable_shared_from_this_base): Define friend
      	function to select a std::experimental::enable_shared_from_this base.
      	* testsuite/experimental/memory/shared_ptr/cons/
      	enable_shared_from_this.cc: New test.
      	* testsuite/experimental/memory/shared_ptr/cons/unique_ptr_ctor.cc:
      	Adjust expected behaviour for shared_ptr<A[]>.
      
      From-SVN: r243571
      f70c36d1
    • Jonathan Wakely's avatar
      Remove stray character at end of dg-do directive · 4f0f0f1e
      Jonathan Wakely authored
      	* testsuite/experimental/filesystem/operations/is_empty.cc:
      	Remove stray character at end of dg-do directive.
      
      From-SVN: r243570
      4f0f0f1e
    • Jonathan Wakely's avatar
      Fix configure test for sendfile() · 2c85f917
      Jonathan Wakely authored
      	Backport from mainline
      	2016-05-25  Jonathan Wakely  <jwakely@redhat.com>
      
      	* acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Fix test for sendfile.
      	* configure: Regenerate.
      	* config.h.in: Regenerate.
      
      From-SVN: r243569
      2c85f917
    • Nathan Sidwell's avatar
      re PR other/78252 (C++ demangler crashes with infinite recursion with lambda (auto)) · 0e40fe84
      Nathan Sidwell authored
      	PR c++/78252
      	* cp-demangle.c (struct d_print_info): Add is_lambda_arg field.
      	(d_print_init): Initialize it.
      	(d_print_comp_inner) <DEMANGLE_COMPONENT_TEMPLATE_PARAM>: Check
      	is_lambda_arg for auto.
      	<DEMANGLE_COMPONENT_REFERENCE,
      	DEMANGLE_COMPONENT_RVALUE_REFERENCE>: Skip smashing check when
      	is_lambda_arg.
      	<DEMANGLE_COMPONENT_LAMBDA>: Increment is_lambda_arg around arg
      	printing.
      	* testsuite/demangle-expected: Add lambda auto mangling cases.
      
      From-SVN: r243568
      0e40fe84
    • Jonathan Wakely's avatar
      Improve tests for contents of <new> header · f3362389
      Jonathan Wakely authored
      	Backport from mainline
      	2016-12-07  Jonathan Wakely  <jwakely@redhat.com>
      
      	* testsuite/18_support/headers/new/synopsis.cc: Add C++14 declarations
      	and use effective-target to do test for C++11 and later.
      	* testsuite/18_support/headers/new/synopsis_cxx98.cc: New test.
      
      From-SVN: r243563
      f3362389
    • Jonathan Wakely's avatar
      PR78465 Remove runtime tests for <atomic> macros · eb505474
      Jonathan Wakely authored
      	PR libstdc++/78465
      	* testsuite/29_atomics/headers/atomic/macros.cc: Replace runtime tests
      	with preprocessor conditions.
      
      From-SVN: r243561
      eb505474
    • Jonathan Wakely's avatar
      Enable experimental::enable_shared_from_this explicitly · 7cbb5199
      Jonathan Wakely authored
      Backport from mainline
      2016-10-19  Jonathan Wakely  <jwakely@redhat.com>
      
      	* include/experimental/bits/shared_ptr.h (experimental::shared_ptr):
      	Change relevant constructors to call _M_enable_shared_from_this_with.
      	(experimental::shared_ptr::__efst_base_t)
      	(experimental::shared_ptr::__has_efst_base): Helpers to detect
      	accessible and unambiguous enable_shared_from_this bases.
      	(experimental::shared_ptr::_M_enable_shared_from_this_with): Define.
      	(experimental::__enable_shared_from_this_helper): Remove overload for
      	std::experimental::enable_shared_from_this.
      	(experimental::__expt_enable_shared_from_this_base): Define friend
      	function to select a std::experimental::enable_shared_from_this base.
      	* testsuite/experimental/memory/shared_ptr/cons/
      	enable_shared_from_this.cc: New test.
      	* testsuite/experimental/memory/shared_ptr/cons/unique_ptr_ctor.cc:
      	Adjust expected behaviour for shared_ptr<A[]>.
      
      From-SVN: r243560
      7cbb5199
    • Jonathan Wakely's avatar
      Remove stray character at end of dg-do directive · e0e2d308
      Jonathan Wakely authored
      	* testsuite/experimental/filesystem/operations/is_empty.cc:
      	Remove stray character at end of dg-do directive.
      
      From-SVN: r243556
      e0e2d308
    • Jonathan Wakely's avatar
      Backport all Filesystem library fixes from trunk · 7d4631e2
      Jonathan Wakely authored
      This implements the following LWG DRs:
      2681 2682 2683 2706 2707 2712 2720 2723
      
      	Backport from mainline
      	PR libstdc++/70975
      	PR libstdc++/71337
      	PR libstdc++/78111
      	* include/experimental/bits/fs_dir.h (recursive_directory_iterator):
      	Overload pop (LWG 2706).
      	* include/experimental/bits/fs_fwd.h (perms::resolve_symlinks):
      	Replace with symlink_nofollow (LWG 2720).
      	* include/experimental/bits/fs_ops.h
      	(exists(const path&, error_code&)): Clear error if status is known
      	(LWG 2725).
      	* include/experimental/bits/fs_path.h (__is_path_src)
      	(_S_range_begin, _S_range_end): Overload to treat string_view as a
      	Source object.
      	(path::operator+=, path::compare): Overload for basic_string_view.
      	(path::path(string_type&&))
      	(path::operator=(string&&), path::assign(string_type&&)): Define
      	construction and assignment from string_type rvalues (LWG 2707).
      	(path::_S_convert<_Iter>(_Iter, _Iter)): Remove cv-qualifiers from
      	iterator's value_type.
      	(path::_S_convert<_Iter>(_Iter __first, __null_terminated)): Likewise.
      	Do not use operation not supported by input iterators.
      	(path::__is_path_iter_src): Add partial specialization for const
      	encoded character types.
      	* src/filesystem/dir.cc (open_dir): Return same value for errors
      	whether ignored or not.
      	(_Dir::advance(error_code*, directory_options)): Return false on
      	error.
      	(directory_iterator(const path&, directory_options, error_code*)):
      	Create end iterator on error (LWG 2723).
      	(recursive_directory_iterator(const path&, directory_options,
      	error_code*)): Likewise.
      	(recursive_directory_iterator::increment): Reset state on error.
      	(recursive_directory_iterator::pop): Define new overload.
      	* src/filesystem/ops.cc (canonical): Set error for non-existent path.
      	(file_time): Take error_code parameter and check for overflow.
      	(close_fd): Remove.
      	(do_copy_file): Report an error if source or destination is not a
      	regular file (LWG 2712). Pass error_code in file_time calls.  Just
      	use close(3) instead of close_fd, to prevent retrying on error.
      	Check if _GLIBCXX_USE_FCHMODAT is defined.
      	[_GLIBCXX_USE_SENDFILE]: Fallback to read/write operations in case
      	sendfile fails with ENOSYS or EINVAL. Pass non-null pointer to
      	sendfile for offset argument.
      	(copy): Update comment to refer to LWG 2681. Implement 2682 and 2683
      	resolutions.
      	(equivalent): Fix error handling and result when only one file exists.
      	(is_empty): Fix error handling.
      	(last_write_time(const path&, error_code&)): Pass error_code in
      	file_time calls.
      	(last_write_time(const path&, file_time_type, error_code&)): Handle
      	negative times correctly.
      	(permissions(const path&, perms, error_code&)): Handle
      	symlink_nofollow.
      	(read_symlink): Add missing ec.clear().
      	(status(const path&, error_code&)): Handle EOVERFLOW.
      	(temp_directory_path): Pass error_code argument to other filesystem
      	operations.
      	* testsuite/experimental/filesystem/iterators/directory_iterator.cc:
      	Update expected behaviour on error.
      	* testsuite/experimental/filesystem/iterators/pop.cc: New.
      	* testsuite/experimental/filesystem/iterators/
      	recursive_directory_iterator.cc: Update expected behaviour on error.
      	* testsuite/experimental/filesystem/operations/copy.cc: Update
      	expected behaviour for copying directories with create_symlinks.
      	Verify that error_code arguments are cleared if there's no error.
      	Remove files created by tests. Test copying directories.
      	* testsuite/experimental/filesystem/operations/copy_file.cc: Remove
      	files created by tests.
      	* testsuite/experimental/filesystem/operations/create_symlink.cc: New.
      	* testsuite/experimental/filesystem/operations/equivalent.cc: New.
      	* testsuite/experimental/filesystem/operations/exists.cc: Test
      	overload taking an error_code.
      	* testsuite/experimental/filesystem/operations/is_empty.cc: New.
      	* testsuite/experimental/filesystem/operations/last_write_time.cc:
      	New.
      	* testsuite/experimental/filesystem/operations/permissions.cc: Test
      	overload taking error_code. Test symlink_nofollow on non-symlinks.
      	* testsuite/experimental/filesystem/operations/read_symlink.cc: New.
      	* testsuite/experimental/filesystem/operations/remove_all.cc: New.
      	* testsuite/experimental/filesystem/operations/temp_directory_path.cc:
      	Add testcase for inaccessible directory.
      	* testsuite/experimental/filesystem/path/construct/range.cc: Test
      	construction from input iterators with const value types.
      	* testsuite/experimental/filesystem/path/construct/string_view.cc:
      	New.
      	* testsuite/util/testsuite_fs.h (scoped_file): Define RAII helper.
      
      From-SVN: r243554
      7d4631e2
    • Bernd Schmidt's avatar
      backport: re PR tree-optimization/77309 (wrong code at -Os and above on... · 23cb12de
      Bernd Schmidt authored
      backport: re PR tree-optimization/77309 (wrong code at -Os and above on x86_64-linux-gnu (in the 64-bit mode))
      
      	Backport from mainline
      	2016-11-07  Bernd Schmidt  <bschmidt@redhat.com>
      
              PR rtl-optimization/77309
              * combine.c (make_compound_operation): Allow EQ for IN_CODE, and
              don't assume an equality comparison for plain COMPARE.
              (simplify_comparison): Pass a more accurate code to
              make_compound_operation.
      
              PR rtl-optimization/77309
              * gcc.dg/torture/pr77309.c: New test.
      
      From-SVN: r243549
      23cb12de
    • Thomas Preud'homme's avatar
      Fix PR77904: callee-saved register trashed when clobbering sp · 392853cd
      Thomas Preud'homme authored
      2016-12-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
      
          Backport from mainline
          2016-11-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
      
          gcc/
          PR target/77904
          * config/arm/arm.c (thumb1_compute_save_reg_mask): Mark frame pointer
          in save register mask if it is needed.
      
          gcc/testsuite/
          PR target/77904
          * gcc.target/arm/pr77904.c: New test.
      
      From-SVN: r243543
      392853cd
    • GCC Administrator's avatar
      Daily bump. · 1e9238a1
      GCC Administrator authored
      From-SVN: r243536
      1e9238a1
  11. 11 Dec, 2016 1 commit
    • Iain Sandoe's avatar
      [Darwin] Back-port fix for PR67710. · a9a8a7b1
      Iain Sandoe authored
      gcc/
      
      2016-12-11  Iain Sandoe  <iain@codesourcery.com>
      
      	Backport from mainline
      	2016-11-27  Iain Sandoe  <iain@codesourcery.com>
      		    Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
      
      	PR target/67710
      	* config.in: Regenerate
      	* config/darwin-driver.c (darwin_driver_init): Emit a version string
      	for the assembler.
      	* config/darwin.h(ASM_MMACOSX_VERSION_MIN_SPEC): New, new tests.
      	* config/darwin.opt(asm_macosx_version_min): New.
      	* config/i386/darwin.h: Handle ASM_MMACOSX_VERSION_MIN_SPEC.
      	* configure: Regenerate
      	* configure.ac: Check for mmacosx-version-min handling.
      
      gcc/testsuite/
      
      2016-12-11  Iain Sandoe  <iain@codesourcery.com>
      
      	Backport from mainline
      	2016-11-27  Iain Sandoe  <iain@codesourcery.com>
      		    Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
      		    Dominique d'Humieres  <dominiq@lps.ens.fr>
      
      	PR target/67710
      	*  gcc.dg/darwin-minversion-1.c: Update min version check.
      	*  gcc.dg/darwin-minversion-2.c: Likewise.
      	*  gcc.dg/darwin-minversion-3.c: Likewise.
      
      libgcc/
      
      2016-12-11  Iain Sandoe  <iain@codesourcery.com>
      
      	Backport from mainline
      	2016-11-27  Iain Sandoe  <iain@codesourcery.com>
      		    Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
      
      	PR target/67710
      	*  config/t-darwin: Default builds to 10.5 codegen.
      
      From-SVN: r243526
      a9a8a7b1