]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
8 years agore PR lto/79042 (LTO doesn't propagate node->dynamically_initialized bit for varpool...
Maxim Ostapenko [Thu, 12 Jan 2017 07:44:17 +0000 (07:44 +0000)] 
re PR lto/79042 (LTO doesn't propagate node->dynamically_initialized bit for varpool nodes.)

PR lto/79042
* lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
bit.
(input_varpool_node): Unpack dynamically_initialized bit.
* lto-streamer.h (LTO_minor_version): Bump version.

From-SVN: r244347

8 years agoDaily bump.
GCC Administrator [Thu, 12 Jan 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r244344

8 years agoi386.c (memory_address_length): Increase len only when rip_relative_addr_p returns...
Uros Bizjak [Wed, 11 Jan 2017 22:02:48 +0000 (23:02 +0100)] 
i386.c (memory_address_length): Increase len only when rip_relative_addr_p returns false.

* config/i386/i386.c (memory_address_length): Increase len
only when rip_relative_addr_p returns false.

From-SVN: r244343

8 years agoPR78255: Make postreload aware of NO_FUNCTION_CSE
Andre Vieira [Wed, 11 Jan 2017 15:08:25 +0000 (15:08 +0000)] 
PR78255: Make postreload aware of NO_FUNCTION_CSE

gcc/ChangeLog:
2017-01-11  Andre Vieira <andre.simoesdiasvieira@arm.com>

Backport from mainline
2016-12-09  Andre Vieira <andre.simoesdiasvieira@arm.com>

PR rtl-optimization/78255
* gcc/postreload.c (reload_cse_simplify): Do not CSE a function if
NO_FUNCTION_CSE is true.

gcc/testsuite/ChangeLog:
2017-01-11  Andre Vieira <andre.simoesdiasvieira@arm.com>

Backport from mainline
2016-12-20  Andre Vieira  <andre.simoesdiasvieira@arm.com>

* gcc.target/arm/pr78255-2.c: Fix to work for targets
that do not optimize for tailcall.

2017-01-11  Andre Vieira <andre.simoesdiasvieira@arm.com>

Backport from mainline
2016-12-09  Andre Vieira <andre.simoesdiasvieira@arm.com>

PR rtl-optimization/78255
* gcc.target/aarch64/pr78255.c: New.
* gcc.target/arm/pr78255-1.c: New.
* gcc.target/arm/pr78255-2.c: New.

From-SVN: r244319

8 years agoDaily bump.
GCC Administrator [Wed, 11 Jan 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r244300

8 years agobackport: re PR sanitizer/65479 (sanitizer stack trace missing frames past #0 on...
Bill Seurer [Tue, 10 Jan 2017 19:11:55 +0000 (19:11 +0000)] 
backport: re PR sanitizer/65479 (sanitizer stack trace missing frames past #0 on powerpc64)

2017-01-10  Bill Seurer  <seurer@linux.vnet.ibm.com>

Backport from mainline
2016-12-21  Bill Seurer  <seurer@linux.vnet.ibm.com>

PR sanitizer/65479
* config/rs6000/rs6000.c (rs6000_option_override_internal): Add
-fasynchronous-unwind-tables option when -fsanitize=address is
specified.

From-SVN: r244284

8 years agoDo not error when -E provided (PR pch/78970).
Martin Liska [Tue, 10 Jan 2017 14:08:42 +0000 (15:08 +0100)] 
Do not error when -E provided (PR pch/78970).

2017-01-10  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-01-09  Martin Liska  <mliska@suse.cz>

PR pch/78970
* gcc.c (driver_handle_option): Handle OPT_E and set
have_E.
(lookup_compiler): Do not show error message with have_E.

From-SVN: r244268

8 years agoError for '-' as filename of a precompiled header (PR pch/78970)
Martin Liska [Tue, 10 Jan 2017 14:07:41 +0000 (15:07 +0100)] 
Error for '-' as filename of a precompiled header (PR pch/78970)

2017-01-10  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-01-05  Martin Liska  <mliska@suse.cz>

PR pch/78970
* gcc.c (lookup_compiler): Reject '-' filename for a precompiled
header.
2017-01-10  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-01-05  Martin Liska  <mliska@suse.cz>

PR pch/78970
* c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
header.

From-SVN: r244267

8 years agore PR target/70668 (nds32-elf toolchain fails to compile on OSX)
Chung-Ju Wu [Tue, 10 Jan 2017 04:23:35 +0000 (04:23 +0000)] 
re PR target/70668 (nds32-elf toolchain fails to compile on OSX)

Fix PR70668.

Backport from mainline
2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>

PR target/70668
* config/nds32/nds32.md (casesi): Don't access the operands array
out of bounds.

From-SVN: r244258

8 years agoDaily bump.
GCC Administrator [Tue, 10 Jan 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r244253

8 years agobackport: [multiple changes]
Andreas Tobler [Mon, 9 Jan 2017 21:06:20 +0000 (22:06 +0100)] 
backport: [multiple changes]

2017-01-09  Andreas Tobler  <andreast@gcc.gnu.org>

toplevel:
    Backport from mainline
    2016-10-10  Andreas Tobler <andreast@gcc.gnu.org>

    * configure.ac: Add aarch64-*-freebsd*.
    * configure: Regenerate.

gcc:
    Backport from mainline
    2016-10-10  Andreas Tobler  <andreast@gcc.gnu.org>

    * config.gcc: Add aarch64-*-freebsd* support.
    * config.host: Likewise.
    * config/aarch64/aarch64-freebsd.h: New file.
    * config/aarch64/t-aarch64-freebsd: Ditto.

libgcc:
    Backport from mainline
    2016-10-10  Andreas Tobler  <andreast@gcc.gnu.org>

    * config.host: Add support for aarch64-*-freebsd*.

From-SVN: r244243

8 years agoAdd missing dg-options to C++11 test.
Jonathan Wakely [Mon, 9 Jan 2017 11:09:09 +0000 (11:09 +0000)] 
Add missing dg-options to C++11 test.

* testsuite/30_threads/thread/cons/lwg2097.cc: Compile with
-std=gnu++11.

From-SVN: r244222

8 years agoAdd missing dg-options to C++14 test
Jonathan Wakely [Mon, 9 Jan 2017 11:05:01 +0000 (11:05 +0000)] 
Add missing dg-options to C++14 test

* testsuite/25_algorithms/sort/78991.cc: Compile with -std=gnu++14.

From-SVN: r244221

8 years agoDaily bump.
GCC Administrator [Mon, 9 Jan 2017 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r244211

8 years agoDaily bump.
GCC Administrator [Sun, 8 Jan 2017 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r244202

8 years agoDaily bump.
GCC Administrator [Sat, 7 Jan 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r244189

8 years agoAdd deleted std::thread(const thread&&) constructor
Jonathan Wakely [Fri, 6 Jan 2017 14:04:33 +0000 (14:04 +0000)] 
Add deleted std::thread(const thread&&) constructor

Backport from mainline
2017-01-03  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/78956
* include/std/thread (thread(const thread&&)): Add deleted
constructor.
* testsuite/30_threads/thread/cons/lwg2097.cc: New test.

From-SVN: r244158

8 years agoPR78991 make __gnu_cxx::__ops constructors explicit
Jonathan Wakely [Fri, 6 Jan 2017 14:04:26 +0000 (14:04 +0000)] 
PR78991 make __gnu_cxx::__ops constructors explicit

PR libstdc++/78991
* include/bits/predefined_ops.h (_Iter_comp_iter, _Iter_comp_val)
(_Val_comp_iter, _Iter_equals_val, _Iter_pred, _Iter_comp_to_val)
(_Iter_comp_to_iter, _Iter_negate): Make constructors explicit.
* testsuite/25_algorithms/sort/78991.cc: New test.

From-SVN: r244157

8 years agoDaily bump.
GCC Administrator [Fri, 6 Jan 2017 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r244117

8 years agoDaily bump.
GCC Administrator [Thu, 5 Jan 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r244081

8 years agoDaily bump.
GCC Administrator [Wed, 4 Jan 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r244038

8 years agoFix tree-optimization/78886.
Martin Liska [Tue, 3 Jan 2017 12:08:10 +0000 (13:08 +0100)] 
Fix tree-optimization/78886.

2017-01-03  Martin Liska  <mliska@suse.cz>

Backport from mainline
2016-12-22  Martin Liska  <mliska@suse.cz>

PR tree-optimization/78886
* tree-ssa-strlen.c (handle_builtin_malloc): Return when LHS
is equal to NULL.
2017-01-03  Martin Liska  <mliska@suse.cz>

Backport from mainline
2016-12-22  Martin Liska  <mliska@suse.cz>

PR tree-optimization/78886
* gcc.dg/tree-ssa/pr78886.c: New test.

From-SVN: r244019

8 years agoFill bitregion_{start,end} in store_constructor (PR tree-optimization/78428).
Martin Liska [Tue, 3 Jan 2017 10:54:40 +0000 (11:54 +0100)] 
Fill bitregion_{start,end} in store_constructor (PR tree-optimization/78428).

Backport from mainline
2016-12-13  Martin Liska  <mliska@suse.cz>

PR tree-optimization/78428
* expr.c (store_constructor_field): Add new arguments to the
function.
(store_constructor): Set up bitregion_end and add
gcc_unreachable to fields that have either non-constant size
or (and) offset.

Backport from mainline
2016-12-13  Martin Liska  <mliska@suse.cz>

PR tree-optimization/78428
* gcc.dg/tree-ssa/pr78428.c: New test.

From-SVN: r244016

8 years agoDaily bump.
GCC Administrator [Tue, 3 Jan 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r244007

8 years agoDaily bump.
GCC Administrator [Mon, 2 Jan 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243998

8 years agoDaily bump.
GCC Administrator [Sun, 1 Jan 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243988

8 years agoDaily bump.
GCC Administrator [Sat, 31 Dec 2016 00:16:14 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243985

8 years agore PR translation/78745 (Truncated messages in po file)
Jakub Jelinek [Fri, 30 Dec 2016 19:21:22 +0000 (20:21 +0100)] 
re PR translation/78745 (Truncated messages in po file)

PR translation/78745
* exgettext: Handle multi-line help texts in *.opt files.
* gcc.pot: Regenerate.

From-SVN: r243983

8 years agoDaily bump.
GCC Administrator [Fri, 30 Dec 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243970

8 years agoDaily bump.
GCC Administrator [Thu, 29 Dec 2016 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243957

8 years agoDaily bump.
GCC Administrator [Wed, 28 Dec 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243950

8 years agore PR translation/78922 (Comment submitted for translation in stringop.opt)
Jakub Jelinek [Tue, 27 Dec 2016 14:49:08 +0000 (15:49 +0100)] 
re PR translation/78922 (Comment submitted for translation in stringop.opt)

PR translation/78922
* config/i386/stringop.opt: Remove.

From-SVN: r243940

8 years agoDaily bump.
GCC Administrator [Tue, 27 Dec 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243930

8 years agoDaily bump.
GCC Administrator [Mon, 26 Dec 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243920

8 years agoDaily bump.
GCC Administrator [Sun, 25 Dec 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243917

8 years agoDaily bump.
GCC Administrator [Sat, 24 Dec 2016 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243911

8 years agoDaily bump.
GCC Administrator [Fri, 23 Dec 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243902

8 years agobackport: re PR fortran/78239 (ICE in char_len_param_value, at fortran/decl.c:926...
Thomas Koenig [Thu, 22 Dec 2016 20:27:52 +0000 (20:27 +0000)] 
backport: re PR fortran/78239 (ICE in char_len_param_value, at fortran/decl.c:926, with -fimplicit-none)

2016-12-22  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/78239
* decl.c (char_len_param_value): Also check for -fimplicit-none
when determining if implicit none is in force.

2016-12-22  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/78239
* gfortran.dg/fimplicit_none_1.f90:  New test.
* gfortran.dg/fimplicit_none_2.f90:  New test

From-SVN: r243895

8 years agoDaily bump.
GCC Administrator [Thu, 22 Dec 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243880

8 years agoDaily bump.
GCC Administrator [Wed, 21 Dec 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243833

8 years agoDaily bump.
GCC Administrator [Tue, 20 Dec 2016 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243815

8 years agobackport: Make the perfect-forwarding constructor of a two-element tuple sfinae away...
Ville Voutilainen [Mon, 19 Dec 2016 15:22:05 +0000 (17:22 +0200)] 
backport: Make the perfect-forwarding constructor of a two-element tuple sfinae away when the first argument is an allocator_arg.

Backport from mainline
2016-12-19  Ville Voutilainen  <ville.voutilainen@gmail.com>

Make the perfect-forwarding constructor of a two-element tuple
sfinae away when the first argument is an allocator_arg.
* include/std/tuple (tuple(_U1&&, _U2&&)): Constrain.
* testsuite/20_util/tuple/cons/allocator_with_any.cc: New.

From-SVN: r243797

8 years agoDaily bump.
GCC Administrator [Mon, 19 Dec 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243786

8 years agoDaily bump.
GCC Administrator [Sun, 18 Dec 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243779

8 years agoDaily bump.
GCC Administrator [Sat, 17 Dec 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243767

8 years agoDaily bump.
GCC Administrator [Fri, 16 Dec 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243732

8 years agoDaily bump.
GCC Administrator [Thu, 15 Dec 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243676

8 years agore PR tree-optimization/78731 (Possible bug with switch when optimization is turned...
Richard Biener [Wed, 14 Dec 2016 10:31:37 +0000 (10:31 +0000)] 
re PR tree-optimization/78731 (Possible bug with switch when optimization is turned on.)

2016-12-14  Richard Biener  <rguenther@suse.de>

PR tree-optimization/78731
* tree-ssa-threadedge.c (simplify_control_stmt_condition):
If we've seen a backedge to not walk the SSA value chain.
(thread_around_empty_blocks): Pass down whether we've seen
a backedge to simplify_control_stmt_condition.
(thread_through_normal_block): Likewise.

* gcc.dg/torture/pr78731.c: New testcase.

From-SVN: r243641

8 years agoImprove comment for struct symbolic_number in bswap pass
Thomas Preud'homme [Wed, 14 Dec 2016 10:07:10 +0000 (10:07 +0000)] 
Improve comment for struct symbolic_number in bswap pass

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: r243638

8 years agoFix PR77673: bswap loads passed end of object
Thomas Preud'homme [Wed, 14 Dec 2016 10:07:01 +0000 (10:07 +0000)] 
Fix PR77673: bswap loads passed end of object

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: r243637

8 years agoDaily bump.
GCC Administrator [Wed, 14 Dec 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243627

8 years agoAdd missing header in Filesystem TS configure tests
Jonathan Wakely [Tue, 13 Dec 2016 11:53:03 +0000 (11:53 +0000)] 
Add missing header in Filesystem TS configure tests

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: r243604

8 years agoFix configure test for sendfile()
Jonathan Wakely [Tue, 13 Dec 2016 11:52:59 +0000 (11:52 +0000)] 
Fix configure test for sendfile()

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: r243603

8 years agoFix PR77933: stack corruption on ARM when using high registers and LR
Thomas Preud'homme [Tue, 13 Dec 2016 09:39:02 +0000 (09:39 +0000)] 
Fix PR77933: stack corruption on ARM when using high registers and LR

2016-12-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    Backport from mainline
    2016-11-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/
    PR target/77933
    * config/arm/arm.c (thumb1_expand_prologue): Distinguish between lr
    being live in the function and lr needing to be saved.  Distinguish
    between already saved pushable registers and registers to push.
    Check for LR being an available pushable register.

    gcc/testsuite/
    PR target/77933
    * gcc.target/arm/pr77933-1.c: New test.
    * gcc.target/arm/pr77933-2.c: Likewise.

From-SVN: r243600

8 years agoDaily bump.
GCC Administrator [Tue, 13 Dec 2016 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243586

8 years agoImprove tests for contents of <new> header
Jonathan Wakely [Mon, 12 Dec 2016 16:36:30 +0000 (16:36 +0000)] 
Improve tests for contents of <new> header

Backport from mainline
2016-12-07  Jonathan Wakely  <jwakely@redhat.com>

* testsuite/18_support/headers/new/synopsis.cc: Add C++14 declarations.
* testsuite/18_support/headers/new/synopsis_cxx98.cc: New test.

From-SVN: r243565

8 years agoPR78465 Remove runtime tests for <atomic> macros
Jonathan Wakely [Mon, 12 Dec 2016 16:36:25 +0000 (16:36 +0000)] 
PR78465 Remove runtime tests for <atomic> macros

PR libstdc++/78465
* testsuite/29_atomics/headers/atomic/macros.cc: Replace runtime tests
with preprocessor conditions.

From-SVN: r243564

8 years agoBackport all Filesystem library fixes from trunk
Jonathan Wakely [Mon, 12 Dec 2016 15:00:43 +0000 (15:00 +0000)] 
Backport all Filesystem library fixes from trunk

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: r243557

8 years agobackport: re PR tree-optimization/77309 (wrong code at -Os and above on x86_64-linux...
Bernd Schmidt [Mon, 12 Dec 2016 13:01:28 +0000 (13:01 +0000)] 
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: r243550

8 years agoDaily bump.
GCC Administrator [Mon, 12 Dec 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243535

8 years agoDaily bump.
GCC Administrator [Sun, 11 Dec 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243521

8 years agoDaily bump.
GCC Administrator [Sat, 10 Dec 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243511

8 years agoDaily bump.
GCC Administrator [Fri, 9 Dec 2016 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243471

8 years agore PR c++/78551 (Internal compiler error with constexpr initialization of union)
Nathan Sidwell [Thu, 8 Dec 2016 19:27:32 +0000 (19:27 +0000)] 
re PR c++/78551 (Internal compiler error with constexpr initialization of union)

PR c++/78551
* constexpr.c (extract_string_elt): New.  Broken out of ...
(cxx_eval_array_reference): ... here.  Call it.
(cxx_eval_store_expression): Convert init by STRING_CST into
CONSTRUCTOR, if needed.

PR c++/78551
* g++.dg/cpp1y/pr78551.C: New.

From-SVN: r243457

8 years agoDaily bump.
GCC Administrator [Thu, 8 Dec 2016 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243421

8 years agors6000: Don't forget to initialize the TOC (PR77957)
Segher Boessenkool [Wed, 7 Dec 2016 23:11:23 +0000 (00:11 +0100)] 
rs6000: Don't forget to initialize the TOC (PR77957)

The code generating traceback tables mistakenly does an early return
if !optional_tbtab, which causes it to miss the code generating the TOC
section.  This only matters if the TOC will be empty since otherwise
the section is created elsewhere.

This patch fixes it.

PR target/77957
* config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
return early if !optional_tbtab.

From-SVN: r243416

8 years agobackport: [multiple changes]
Thomas Preud'homme [Wed, 7 Dec 2016 17:51:00 +0000 (17:51 +0000)] 
backport: [multiple changes]

2016-12-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    Backport from mainline
    2016-11-16  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/
    * config/arm/arm.md (arm_addsi3): Add alternative for addition of
    general register with general register or ARM constant into SP
    register.

    gcc/testsuite/
    * gcc.target/arm/empty_fiq_handler.c: New test.

    Backport from mainline
    2016-11-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/testsuite/
    * gcc.target/arm/empty_fiq_handler.c: Skip if -mthumb is passed in and
    target is Thumb-only.

From-SVN: r243373

8 years agobackport: Constrain optional's __constexpr_addressof in its return type and use a...
Ville Voutilainen [Wed, 7 Dec 2016 15:22:34 +0000 (17:22 +0200)] 
backport: Constrain optional's __constexpr_addressof in its return type and use a constexpr addressof for optional, if available.

Backport from mainline
2016-12-06  Ville Voutilainen  <ville.voutilainen@gmail.com>

Constrain optional's __constexpr_addressof in its return type
and use a constexpr addressof for optional, if available.
* include/experimental/optional (__constexpr_addressof):
Constrain in the return type instead of in a template parameter.
(_Has_addressof_mem)
(_Has_addressof_free, _Has_addressof, __constexpr_addressof):
Guard with #ifndef __cpp_lib_addressof_constexpr.
(operator->()): Use std::__addressof if it's constexpr.

From-SVN: r243350

8 years agobackport: re PR tree-optimization/78646 (incorrect result type for pointer addition...
Bill Schmidt [Wed, 7 Dec 2016 01:08:40 +0000 (01:08 +0000)] 
backport: re PR tree-optimization/78646 (incorrect result type for pointer addition in slsr)

2016-12-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2016-12-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
            Stefan Freudenberger  <stefan@reservoir.com>

PR tree-optimization/78646
* gimple-ssa-strength-reduction.c (replace_ref): The pointer
addition used for the memory base expression should have the type
of the candidate.

From-SVN: r243331

8 years agoDaily bump.
GCC Administrator [Wed, 7 Dec 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243326

8 years agoAdd missing noexcept on std::_Sp_locker constructors
Aditya Kumar [Tue, 6 Dec 2016 11:56:56 +0000 (11:56 +0000)] 
Add missing noexcept on std::_Sp_locker constructors

2016-12-06  Aditya Kumar  <hiraditya@msn.com>

* src/c++11/shared_ptr.cc (_Sp_locker::_Sp_locker(const void* p)): Add
noexcept on constructor.
(_Sp_locker::_Sp_locker(const void* p1, const void* p2)): Same.

From-SVN: r243296

8 years agoDaily bump.
GCC Administrator [Tue, 6 Dec 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243275

8 years agoDaily bump.
GCC Administrator [Mon, 5 Dec 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243233

8 years agobackport: re PR fortran/78443 ([OOP] Incorrect behavior with non_overridable keyword)
Janus Weil [Sun, 4 Dec 2016 16:34:13 +0000 (17:34 +0100)] 
backport: re PR fortran/78443 ([OOP] Incorrect behavior with non_overridable keyword)

2016-12-04  Janus Weil  <janus@gcc.gnu.org>

Backport from trunk
PR fortran/78443
* class.c (add_proc_comp): Add a vtype component for non-overridable
procedures that are overriding.

2016-12-04  Janus Weil  <janus@gcc.gnu.org>

Backport from trunk
PR fortran/78443
* gfortran.dg/typebound_proc_35.f90: New test case.

From-SVN: r243230

8 years agoDaily bump.
GCC Administrator [Sun, 4 Dec 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243225

8 years agoDaily bump.
GCC Administrator [Sat, 3 Dec 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243212

8 years ago[ree] PR rtl-optimization/78038: Handle global register dataflow definitions in ree
Kyrylo Tkachov [Fri, 2 Dec 2016 12:22:54 +0000 (12:22 +0000)] 
[ree] PR rtl-optimization/78038: Handle global register dataflow definitions in ree

2016-12-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

Backport from mainline
2016-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

PR rtl-optimization/78038
* ree.c (get_defs): Return NULL if a defining insn for REG cannot
be deduced to set REG through the RTL structure.
(make_defs_and_copies_lists): Return false on a failing get_defs call.

* gcc.target/aarch64/pr78038.c: New test.

From-SVN: r243175

8 years agoS/390: Fix vector all/any cc modes.
Andreas Krebbel [Fri, 2 Dec 2016 08:51:58 +0000 (08:51 +0000)] 
S/390: Fix vector all/any cc modes.

This fixes a problem with the vector compares producing CC mode
results.

The instructions produce condition code modes which can be either
interpreted to check an ALL elements or an ANY element result.  As the
modes where used before they could not be inverted by the middle-end
by inverting the comparison code (e.g. eq to ne).  The result usually
was just wrong.

In fact inverting a comparison code on an CCVALL mode would require to
also change the mode to CCVANY but this cannot be done easily in the
middle-end.  With this patch the meaning of an ALL cc mode only refers
to the not-inverted comparison code (e.g. eq, gt, ge).  With that
change inverting the comparison code matches a not operation on the
condition code mask again.

Bootstrapped and regression tested on s390 and s390x.

Bye,

-Andreas-

gcc/testsuite/ChangeLog:

2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

Backport from mainline
2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* gcc.target/s390/vector/vec-scalar-cmp-1.c: Fix and harden the
pattern checks.
* gcc.target/s390/zvector/vec-cmp-1.c: New test.

gcc/ChangeLog:

2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

Backport from mainline
2016-12-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* config/s390/s390-modes.def (CCVEQANY, CCVH, CCVHANY, CCVHU)
(CCVHUANY): Remove modes.
(CCVIH, CCVIHU, CCVIALL, CCVIANY, CCVFALL, CCVFANY): Add modes and
documentation.
* config/s390/s390.c (s390_match_ccmode_set): Rename cc modes.
(s390_expand_vec_compare_scalar): Pick one of the cc consumer
modes.
(s390_branch_condition_mask): Adjust to use the new cc consumer
modes.  The new modes allow for proper reversal in the middle-end.
(s390_expand_vec_compare_cc): Determine the proper cc producer and
consumer modes for a comparison.
* config/s390/s390.md: Rename CCVH to CCVIH and CCVHU to CCVIHU
throughout the file.
* config/s390/vx-builtins.md: Likewise.

From-SVN: r243169

8 years agoDaily bump.
GCC Administrator [Fri, 2 Dec 2016 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243148

8 years agobackport: rs6000.c (insn_is_swappable_p): Properly look inside UNSPEC_VSX_XXSPLTW...
Bill Schmidt [Thu, 1 Dec 2016 23:13:25 +0000 (23:13 +0000)] 
backport: rs6000.c (insn_is_swappable_p): Properly look inside UNSPEC_VSX_XXSPLTW vec.

2016-12-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2016-12-01  Alan Modra  <amodra@gmail.com>

* gcc/config/rs6000/rs6000.c (insn_is_swappable_p): Properly
look inside UNSPEC_VSX_XXSPLTW vec.

From-SVN: r243144

8 years agore PR fortran/78279 (ICE in identical_array_ref, at fortran/dependency.c:104)
Steven G. Kargl [Thu, 1 Dec 2016 21:28:41 +0000 (21:28 +0000)] 
re PR fortran/78279 (ICE in identical_array_ref, at fortran/dependency.c:104)

2016-12-01  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/78279
* dependency.c (identical_array_ref): Convert gcc_assert to conditional
and gfc_internal_error.

2016-12-01  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/78279
* gfortran.dg/pr78279.f90: New test.

From-SVN: r243134

8 years agoDon't define libstdc++-internal macros in Solaris 10+ <math.h>
Rainer Orth [Thu, 1 Dec 2016 15:15:40 +0000 (15:15 +0000)] 
Don't define libstdc++-internal macros in Solaris 10+ <math.h>

fixincludes:
Backport from mainline
2016-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

* inclhack.def (solaris_math_12): New fix.
(hpux11_fabsf): Replace bypass by *-hp-hpux11* mach selector.
* fixincl.x: Regenerate.
* tests/base/math.h [SOLARIS_MATH_12_CHECK]: New test.

libstdc++-v3:
Backport from mainline
2016-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

* acinclude.m4 (GLIBCXX_CHECK_MATH11_PROTO): Update comments.
(__CORRECT_ISO_CPP11_MATH_H_PROTO): Rename to ...
(__CORRECT_ISO_CPP11_MATH_H_PROTO_FP): ... this.
Add test for C++11 <math.h> integral overloads.
* configure: Regenerate.
* config.h.in: Regenerate.

* include/c_global/cmath [__cplusplus >= 201103L]: Reflect
__CORRECT_ISO_CPP11_MATH_H_PROTO to
__CORRECT_ISO_CPP11_MATH_H_PROTO_FP rename.
* include/c_global/cmath [_GLIBCXX_USE_C99_MATH &&
!_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC && __cplusplus >= 201103L]
(std::fpclassify): Wrap in !__CORRECT_ISO_CPP11_MATH_H_PROTO_INT.
(std::isfinite): Likewise.
(std::isinf): Likewise.
(std::isnan): Likewise.
(std::isnormal): Likewise.
(std::signbit): Likewise.
(std::isgreater): Likewise.
(std::isgreaterequal): Likewise.
(std::isless): Likewise.
(std::islessequal): Likewise.
(std::islessgreater): Likewise.
(std::isunordered): Likewise.
[__cplusplus >= 201103L && _GLIBCXX_USE_C99_MATH_TR1]
(std::acosh): Likewise.
(std::asinh): Likewise.
(std::atanh): Likewise.
(std::cbrt): Likewise.
(std::copysign): Likewise.
(std::erf): Likewise.
(std::erfc): Likewise.
(std::exp2): Likewise.
(std::expm1): Likewise.
(std::fdim): Likewise.
(std::fma): Likewise.
(std::fmax): Likewise.
(std::fmin): Likewise.
(std::hypot): Likewise.
(std::ilogb): Likewise.
(std::lgamma): Likewise.
(std::llrint): Likewise.
(std::llround): Likewise.
(std::log1p): Likewise.
(std::log2): Likewise.
(std::logb): Likewise.
(std::lrint): Likewise.
(std::lround): Likewise.
(std::nearbyint): Likewise.
(std::nextafter): Likewise.
(std::nexttoward): Likewise.
(std::remainder): Likewise.
(std::remquo): Likewise.
(std::rint): Likewise.
(std::round): Likewise.
(std::scalbln): Likewise.
(std::scalbn): Likewise.
(std::tgamma): Likewise.
(std::trunc): Likewise.
* include/tr1/cmath [_GLIBCXX_USE_C99_MATH_TR1 && __cplusplus >=
201103L]: Reflect __CORRECT_ISO_CPP11_MATH_H_PROTO to
__CORRECT_ISO_CPP11_MATH_H_PROTO_FP rename.

From-SVN: r243115

8 years agoDaily bump.
GCC Administrator [Thu, 1 Dec 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r243089

8 years agoDaily bump.
GCC Administrator [Wed, 30 Nov 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242986

8 years agobackport: re PR target/78426 (wrong code with strncmp on SH)
Kaz Kojima [Tue, 29 Nov 2016 23:23:30 +0000 (23:23 +0000)] 
backport: re PR target/78426 (wrong code with strncmp on SH)

Backported from mainline
2016-11-19  Kaz Kojima  <kkojima@gcc.gnu.org>

PR target/78426
* config/sh/sh-mem.cc (sh_expand_cmpnstr): Use copy_to_mode_reg
instead of force_reg.
(sh_expand_setmem): Likewise.

From-SVN: r242982

8 years agoDaily bump.
GCC Administrator [Tue, 29 Nov 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242939

8 years agoDaily bump.
GCC Administrator [Mon, 28 Nov 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242903

8 years agoDaily bump.
GCC Administrator [Sun, 27 Nov 2016 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242889

8 years agoDaily bump.
GCC Administrator [Sat, 26 Nov 2016 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242885

8 years agoDaily bump.
GCC Administrator [Fri, 25 Nov 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242855

8 years agore PR fortran/78500 (ICE in gfc_check_vardef_context, at fortran/expr.c:5289)
Steven G. Kargl [Thu, 24 Nov 2016 20:11:49 +0000 (20:11 +0000)] 
re PR fortran/78500 (ICE in gfc_check_vardef_context, at fortran/expr.c:5289)

2016-11-24  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/78500
* expr.c (gfc_check_vardef_contextm): Fix NULL pointer dereference.
* interface.c (matching_typebound_op): Ditto.

2016-11-24  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/78500
* gfortran.dg/class_result_4.f90: New test.

From-SVN: r242849

8 years agoAdd missing backport note to changelog entry
Martin Liska [Thu, 24 Nov 2016 10:20:11 +0000 (10:20 +0000)] 
Add missing backport note to changelog entry

From-SVN: r242826

8 years agoAdd sem_item::m_hash_set (PR ipa/78309)
Martin Liska [Thu, 24 Nov 2016 10:12:24 +0000 (11:12 +0100)] 
Add sem_item::m_hash_set (PR ipa/78309)

PR ipa/78309
* ipa-icf.c (void sem_item::set_hash): Update m_hash_set.
(sem_function::get_hash): Use the new field.
(sem_function::parse): Remove an argument from ctor.
(sem_variable::parse): Likewise.
(sem_variable::get_hash): Use the new field.
(sem_item_optimizer::read_section): Use new ctor and set hash.
* ipa-icf.h: _hash is removed from sem_item::sem_item,
sem_variable::sem_variable, sem_function::sem_function.

From-SVN: r242824

8 years agoDaily bump.
GCC Administrator [Thu, 24 Nov 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242815

8 years agore PR fortran/78297 (ICE in finish_equivalences, at fortran/trans-common.c:1246)
Steven G. Kargl [Wed, 23 Nov 2016 22:48:54 +0000 (22:48 +0000)] 
re PR fortran/78297 (ICE in finish_equivalences, at fortran/trans-common.c:1246)

2016-11-23  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/78297
* trans-common.c (finish_equivalences): Do not dereference a NULL pointer.

2016-11-23  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/78297
* gfortran.dg/pr78297.f90: New test.

From-SVN: r242811

8 years agoi386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
Uros Bizjak [Wed, 23 Nov 2016 21:40:26 +0000 (22:40 +0100)] 
i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.

* config/i386/i386.md (*<any_or:code>hi_1): Fix operand 2 constraints.
(kxnor<mode>): Return "#" for alternative 0.

From-SVN: r242801

8 years agobackport: re PR fortran/66227 ([OOP] EXTENDS_TYPE_OF n returns wrong result for polym...
Janus Weil [Wed, 23 Nov 2016 16:46:31 +0000 (17:46 +0100)] 
backport: re PR fortran/66227 ([OOP] EXTENDS_TYPE_OF n returns wrong result for polymorphic variable allocated to extended type)

2016-11-23  Janus Weil  <janus@gcc.gnu.org>

Backport from trunk
PR fortran/66227
* simplify.c (gfc_simplify_extends_type_of): Fix missed optimization.
Prevent over-simplification. Fix a comment. Add a comment.

2016-11-23  Janus Weil  <janus@gcc.gnu.org>

Backport from trunk
PR fortran/66227
* gfortran.dg/extends_type_of_3.f90: Fix and extend the test case.

From-SVN: r242770

8 years agoReplace unsupported effective-target with dg-options
Jonathan Wakely [Wed, 23 Nov 2016 15:27:12 +0000 (15:27 +0000)] 
Replace unsupported effective-target with dg-options

* testsuite/24_iterators/reverse_iterator/71771.cc: Replace calls to
C++14 std::rbegin and std::rend.  Use dg-options instead of
effective-target.

From-SVN: r242764

8 years agoDaily bump.
GCC Administrator [Wed, 23 Nov 2016 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r242730

8 years agoMakefile.in ($(lang_checks_parallelized)): Fix detection of -j argument.
Uros Bizjak [Tue, 22 Nov 2016 18:19:58 +0000 (19:19 +0100)] 
Makefile.in ($(lang_checks_parallelized)): Fix detection of -j argument.

gcc/ChangeLog

* Makefile.in ($(lang_checks_parallelized)): Fix detection
of -j argument.

gcc/ada/ChangeLog

* gcc-interface/Make-lang.in (check-acats): Fix detection
of -j argument.

libstdc++-v3/ChangeLog

* testsuite/Makefile.am
(check-DEJAGNU $(check_DEJAGNU_normal_targets)): Fix detection
of -j argument.
* testsuite/Makefile.in: Regenereate.

From-SVN: r242716