]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
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

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

From-SVN: r242684

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

From-SVN: r242644

8 years agore PR fortran/69741 (Bad error in forall with array loop counters)
Harald Anlauf [Sun, 20 Nov 2016 20:14:18 +0000 (20:14 +0000)] 
re PR fortran/69741 (Bad error in forall with array loop counters)

2016-11-20  Harald Anlauf  <anlauf@gmx.de>

PR fortran/69741
* resolve.c (gfc_resolve_forall): Check for nonscalar index variables.

2016-11-20  Harald Anlauf  <anlauf@gmx.de>

PR fortran/69741
* gfortran.dg/forall_18.f90: New testcase.

From-SVN: r242643

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

From-SVN: r242630

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

From-SVN: r242611

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

From-SVN: r242579

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

From-SVN: r242527

8 years agoFix PR78294 - thread sanitizer broken when using ld.gold
Markus Trippelsdorf [Wed, 16 Nov 2016 11:31:18 +0000 (11:31 +0000)] 
Fix PR78294 - thread sanitizer broken when using ld.gold

When one uses ld.gold to build gcc, the thread sanitizer doesn't work,
because gold is more conservative when applying TLS relaxations than
ld.bfd. In this case a missing initial-exec attribute on a declaration
causes gcc to assume the general dynamic model. With ld.bfd this gets
relaxed to initial exec when linking the shared library, so the missing
attribute doesn't matter. But ld.gold doesn't perform this optimization
and this leads to crashes on tsan instrumented binaries.

See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78294
and: https://sourceware.org/bugzilla/show_bug.cgi?id=20805

The fix is easy, just add the missing attribute.

  PR sanitizer/78294
  * tsan/tsan_rtl.cc: Add missing attribute.

From-SVN: r242483

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

From-SVN: r242464

8 years agoFix find&replace error in license boilerplate
Jonathan Wakely [Tue, 15 Nov 2016 14:44:15 +0000 (14:44 +0000)] 
Fix find&replace error in license boilerplate

* testsuite/experimental/any/typedefs.cc: Fix license text.
* testsuite/experimental/chrono/value.cc: Likewise.
* testsuite/experimental/optional/assignment/1.cc: Likewise.
* testsuite/experimental/optional/assignment/2.cc: Likewise.
* testsuite/experimental/optional/assignment/3.cc: Likewise.
* testsuite/experimental/optional/assignment/4.cc: Likewise.
* testsuite/experimental/optional/assignment/5.cc: Likewise.
* testsuite/experimental/optional/assignment/6.cc: Likewise.
* testsuite/experimental/optional/cons/move.cc: Likewise.
* testsuite/experimental/optional/cons/value.cc: Likewise.
* testsuite/experimental/optional/constexpr/cons/value.cc: Likewise.
* testsuite/experimental/optional/constexpr/make_optional.cc: Likewise.
* testsuite/experimental/optional/constexpr/observers/1.cc: Likewise.
* testsuite/experimental/optional/constexpr/observers/2.cc: Likewise.
* testsuite/experimental/optional/constexpr/observers/3.cc: Likewise.
* testsuite/experimental/optional/constexpr/observers/4.cc: Likewise.
* testsuite/experimental/optional/constexpr/observers/5.cc: Likewise.
* testsuite/experimental/optional/constexpr/relops/1.cc: Likewise.
* testsuite/experimental/optional/constexpr/relops/2.cc: Likewise.
* testsuite/experimental/optional/constexpr/relops/3.cc: Likewise.
* testsuite/experimental/optional/constexpr/relops/4.cc: Likewise.
* testsuite/experimental/optional/constexpr/relops/5.cc: Likewise.
* testsuite/experimental/optional/constexpr/relops/6.cc: Likewise.
* testsuite/experimental/optional/make_optional.cc: Likewise.
* testsuite/experimental/optional/observers/1.cc: Likewise.
* testsuite/experimental/optional/observers/2.cc: Likewise.
* testsuite/experimental/optional/observers/3.cc: Likewise.
* testsuite/experimental/optional/observers/4.cc: Likewise.
* testsuite/experimental/optional/observers/5.cc: Likewise.
* testsuite/experimental/optional/relops/1.cc: Likewise.
* testsuite/experimental/optional/relops/2.cc: Likewise.
* testsuite/experimental/optional/relops/3.cc: Likewise.
* testsuite/experimental/optional/relops/4.cc: Likewise.
* testsuite/experimental/optional/relops/5.cc: Likewise.
* testsuite/experimental/optional/relops/6.cc: Likewise.
* testsuite/experimental/optional/requirements.cc: Likewise.
* testsuite/experimental/optional/swap/1.cc: Likewise.
* testsuite/experimental/optional/typedefs.cc: Likewise.
* testsuite/experimental/ratio/value.cc: Likewise.
* testsuite/experimental/string_view/typedefs.cc: Likewise.
* testsuite/experimental/system_error/value.cc: Likewise.
* testsuite/experimental/tuple/tuple_size.cc: Likewise.
* testsuite/experimental/type_traits/value.cc: Likewise.

From-SVN: r242420

8 years agoinstall.texi: Move the 'Overriding configure test results' subsub section to the...
Matthias Klose [Tue, 15 Nov 2016 11:08:33 +0000 (11:08 +0000)] 
install.texi: Move the 'Overriding configure test results' subsub section to the...

2016-11-15  Matthias Klose  <doko@ubuntu.com>

        * doc/install.texi: Move the 'Overriding configure test results'
        subsub section to the 'Cross-Compiler-Specific Options' sub section.

From-SVN: r242411

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

From-SVN: r242404

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

From-SVN: r242370

8 years agodecl.c (gnat_to_gnu_entity): In assertion about known Esize...
Bob Duff [Sun, 13 Nov 2016 18:38:16 +0000 (18:38 +0000)] 
decl.c (gnat_to_gnu_entity): In assertion about known Esize...

* gcc-interface/decl.c (gnat_to_gnu_entity): In assertion about known
Esize, protect with !is_type and change !Unknown_Esize to Known_Esize.

From-SVN: r242365

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

From-SVN: r242343

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

From-SVN: r242329

8 years agoi386.md (*<shift_insn><mode>3_doubleword): Mark operand 0 as earlyclobber.
Uros Bizjak [Fri, 11 Nov 2016 19:43:54 +0000 (20:43 +0100)] 
i386.md (*<shift_insn><mode>3_doubleword): Mark operand 0 as earlyclobber.

* config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
operand 0 as earlyclobber.
(*ashl<mode>3_doubleword): Ditto for all operand 0 alternatives.

From-SVN: r242320

8 years agore PR target/78310 (ICE: insn does not satisfy its constraints: {*bmi2_rorxdi3_1...
Uros Bizjak [Fri, 11 Nov 2016 17:04:18 +0000 (18:04 +0100)] 
re PR target/78310 (ICE: insn does not satisfy its constraints: {*bmi2_rorxdi3_1} with -mbmi2)

PR target/78310
* config/i386/i386.md (rotate to rotatex splitter): Avoid overflow
when calculating operand 2.
(rotate to rotatex zext splitter): Ditto.

testsuite/ChangeLog:

PR target/78310
* gcc.target/i386/pr78310.c: New test.

From-SVN: r242124

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

From-SVN: r242063

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

From-SVN: r242028

8 years agore PR target/78262 (wrong code with -fschedule-insns)
Uros Bizjak [Wed, 9 Nov 2016 20:41:17 +0000 (21:41 +0100)] 
re PR target/78262 (wrong code with -fschedule-insns)

PR target/78262
* config/i386/i386.md (*<shift_insn><mode>3_doubleword): Mark
operand 0 as earlyclobber.

testsuite/ChangeLog:

PR target/78262
* gcc.target/i386/pr78262.c: New test.

From-SVN: r242022

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

From-SVN: r241985

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

From-SVN: r241947