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

8 years agoPR libgcc/78064: Add missing include directive to unwind-c.c
Florian Weimer [Mon, 7 Nov 2016 19:54:05 +0000 (20:54 +0100)] 
PR libgcc/78064: Add missing include directive to unwind-c.c

Backport from mainline
2016-10-24  Florian Weimer  <fweimer@redhat.com>

PR libgcc/78064
* unwind-c.c: Include auto-target.h.

From-SVN: r241929

8 years agore PR driver/78206 (bootstrap failure under Apple sandbox that blacklists reads in...
Jack Howarth [Mon, 7 Nov 2016 18:35:50 +0000 (18:35 +0000)] 
re PR driver/78206 (bootstrap failure under Apple sandbox that blacklists reads in /usr/local)

2016-11-06  Jack Howarth  <howarth.at.gcc@gmail.com>

PR driver/78206
* incpath.c: (remove_dup(): Also silently ignore EPERM.

From-SVN: r241920

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

From-SVN: r241889

8 years agobackport: re PR fortran/69544 (Internal compiler error with -Wall and where)
Thomas Koenig [Sun, 6 Nov 2016 20:30:31 +0000 (20:30 +0000)] 
backport: re PR fortran/69544 (Internal compiler error with -Wall and where)

2016-11-06  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/69544
PR fortran/78178
* gfortran.dg/where_5.f90:  New test.
* gfortran.dg/where_6.f90:  New test.

2016-11-06  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/69544
PR fortran/78178
* match.c (match_simple_where):  Fill in locus for assigment
in simple WHERE statement.
(gfc_match_where):  Likewise.

From-SVN: r241886

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

From-SVN: r241880

8 years agoPR c/71115 - [5/6 Regression] Missing warning: excess elements in struct initializer
Martin Sebor [Sat, 5 Nov 2016 23:57:13 +0000 (23:57 +0000)] 
PR c/71115 - [5/6 Regression] Missing warning: excess elements in struct initializer

PR c/71115 - [5/6 Regression] Missing warning: excess elements in struct initializer
Backport from trunk.

gcc/c/ChangeLog:
* c-typeck.c (error_init): Use
expansion_point_location_if_in_system_header.
(warning_init): Same.

gcc/testsuite/ChangeLog:
* gcc.dg/init-excess-2.c: New test.
* gcc.dg/Woverride-init-1.c: Adjust.
* gcc.dg/Woverride-init-2.c: Same.

From-SVN: r241878

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

From-SVN: r241865

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

From-SVN: r241835

8 years agoCreate x.gcov file for binary w/o x.gcda file (PR
Martin Liska [Thu, 3 Nov 2016 13:43:12 +0000 (14:43 +0100)] 
Create x.gcov file for binary w/o x.gcda file (PR

From-SVN: r241820

8 years ago* explow.c (validize_mem): Do not modify the argument in-place
Eric Botcazou [Thu, 3 Nov 2016 11:51:03 +0000 (11:51 +0000)] 
* explow.c (validize_mem): Do not modify the argument in-place

From-SVN: r241814

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

From-SVN: r241806

8 years agobackport: re PR middle-end/72747 (powerpc: wrong code generated for vec_splats in...
Will Schmidt [Wed, 2 Nov 2016 14:13:07 +0000 (14:13 +0000)] 
backport: re PR middle-end/72747 (powerpc: wrong code generated for vec_splats in cascading assignment)

[gcc]

2016-11-02  Will Schmidt <will_schmidt@vnet.ibm.com>

Backport from trunk
2016-10-26  Will Schmidt <will_schmidt@vnet.ibm.com>

PR middle-end/72747
* gimplify.c (gimplify_init_constructor): Move emit of constructor
assignment to earlier in the if/else logic.

[gcc/testsuite]

2016-11-02  Will Schmidt  <will_schmidt@vnet.ibm.com>

Backport from trunk
2016-10-26  Will Schmidt <will_schmidt@vnet.ibm.com>

PR middle-end/72747
* c-c++-common/pr72747-1.c: New test.
* c-c++-common/pr72747-2.c: Likewise.

From-SVN: r241793

8 years agoFix linker detection in check_gc_sections_available
Rainer Orth [Wed, 2 Nov 2016 10:35:57 +0000 (10:35 +0000)] 
Fix linker detection in check_gc_sections_available

* lib/target-supports.exp (check_gc_sections_available): Use
-print-prog-name=ld to determine linker used.

From-SVN: r241785

8 years agoParallelize check-gnat
Rainer Orth [Wed, 2 Nov 2016 10:17:35 +0000 (10:17 +0000)] 
Parallelize check-gnat

Backport from mainline
2016-10-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

* gcc-interface/Make-lang.in (lang_checks_parallelized): New target.
(check_gnat_parallelize): Likewise.

From-SVN: r241782

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

From-SVN: r241762

8 years agobackport: re PR fortran/71902 (Unneeded temporary on reallocatable character assignment)
Thomas Koenig [Tue, 1 Nov 2016 08:12:00 +0000 (08:12 +0000)] 
backport: re PR fortran/71902 (Unneeded temporary on reallocatable character assignment)

2016-10-31  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/71902
* frontend-passes.c (realloc_string_callback): Also check for the
lhs being deferred.  Name temporary variable "realloc_string".

2016-10-31  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/71902
* gfortran.dg/dependency_47.f90:  New test.
* gfortran.dg/dependency_49.f90:  New test.

From-SVN: r241732

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

From-SVN: r241728

8 years agobackport: re PR libfortran/78123 (Short reads with T edit descriptor not padding...
Jerry DeLisle [Mon, 31 Oct 2016 23:40:40 +0000 (23:40 +0000)] 
backport: re PR libfortran/78123 (Short reads with T edit descriptor not padding correctly)

2016-10-31  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

Backport from trunk
PR libgfortran/78123
* io/transfer.c (formatted_transfer_scalar_read): Clear seen_eor
only if we have tabbed to left of current position.
Backport from trunk
PR fortran/78123
* gfortran.dg/fmt_t_9.f: New test.

From-SVN: r241727

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

From-SVN: r241692

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

From-SVN: r241682

8 years agopa.h (BIGGEST_ALIGNMENT): Adjust comment.
John David Anglin [Sat, 29 Oct 2016 15:47:41 +0000 (15:47 +0000)] 
pa.h (BIGGEST_ALIGNMENT): Adjust comment.

* config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
(MALLOC_ABI_ALIGNMENT): Define.

From-SVN: r241678

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

From-SVN: r241670

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

From-SVN: r241638

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

From-SVN: r241607

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

From-SVN: r241543

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

From-SVN: r241500

8 years agobackport: re PR fortran/78021 (Wrong result with optimization on character constant)
Thomas Koenig [Mon, 24 Oct 2016 22:12:06 +0000 (22:12 +0000)] 
backport: re PR fortran/78021 (Wrong result with optimization on character constant)

2016-10-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/78021
* gfc_compare_functions:  Strings with different lengths in
argument lists compare unequal.

2016-10-24  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/78021
* gfortran.dg/string_length_3.f90:  New test.

From-SVN: r241498

8 years agore PR fortran/71895 (ICE in gfc_compare_derived_types, at fortran/interface.c:520)
Steven G. Kargl [Mon, 24 Oct 2016 21:36:49 +0000 (21:36 +0000)] 
re PR fortran/71895 (ICE in gfc_compare_derived_types, at fortran/interface.c:520)

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

PR fortran/71895
* interface.c (gfc_compare_derived_types):  Convert gcc_assert()
to a gfc_internal_error() to prevent an ICE.

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

PR fortran/71895
* gfortran.dg/pr71895.f90: New test.

From-SVN: r241496

8 years agore PR fortran/61420 ([OOP] type-bound procedure returning a procedure pointer fails...
Paul Thomas [Mon, 24 Oct 2016 12:14:52 +0000 (12:14 +0000)] 
re PR fortran/61420 ([OOP] type-bound procedure returning a procedure pointer fails to compile)

2016-10-24  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/61420
PR fortran/78013
* resolve.c (resolve_variable): Obtain the typespec for a
variable expression, when the variable is a function result
that is a procedure pointer.

2016-10-24  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/61420
PR fortran/78013
* gfortran.dg/proc_ptr_49.f90: New test.

From-SVN: r241474

8 years agobackport: re PR tree-optimization/77916 (ICE in verify_gimple_in_cfg: invalid (pointe...
Bill Schmidt [Mon, 24 Oct 2016 02:41:12 +0000 (02:41 +0000)] 
backport: re PR tree-optimization/77916 (ICE in verify_gimple_in_cfg: invalid (pointer) operands to plus/minus)

[gcc]

2016-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/77916
* gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
Don't allow a MINUS_EXPR for pointer arithmetic for either known
or unknown strides.
(record_increment): Increments of -1 for unknown strides just use
a multiply initializer like other negative values.
(analyze_increments): Remove stopgap solution for -1 increment
applied to pointer arithmetic.
(insert_initializers): Requirement of initializer for -1 should be
based on pointer-typedness of the candidate basis.

[gcc/testsuite]

2016-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/77916
* gcc.dg/torture/pr77916.c: New.

From-SVN: r241462

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

From-SVN: r241458

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

From-SVN: r241442

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

From-SVN: r241434

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

From-SVN: r241389

8 years agoPR78052 Define std::allocator<void>::{construct,destroy}
Jonathan Wakely [Thu, 20 Oct 2016 11:17:55 +0000 (12:17 +0100)] 
PR78052 Define std::allocator<void>::{construct,destroy}

PR libstdc++/78052
* include/bits/allocator.h (allocator<void>::construct)
(allocator<void>::destroy): Define.
* testsuite/20_util/allocator/void.cc: New test.

From-SVN: r241370

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

From-SVN: r241357

8 years agore PR target/77991 (ICE on x32 in plus_constant, at explow.c:87)
Uros Bizjak [Wed, 19 Oct 2016 15:00:06 +0000 (17:00 +0200)] 
re PR target/77991 (ICE on x32 in plus_constant, at explow.c:87)

PR target/77991
* config/i386/i386.c (legitimize_tls_address)
<case TLS_MODEL_INITIAL_EXEC>: For TARGET_64BIT || TARGET_ANY_GNU_TLS
convert dest to Pmode if different than Pmode.

testsuite/ChangeLog:

PR target/77991
* gcc.target/i386/pr77991.c: New test.

From-SVN: r241346

8 years agoPR77990 fix unique_ptr for non-copyable deleters
Jonathan Wakely [Wed, 19 Oct 2016 10:36:24 +0000 (11:36 +0100)] 
PR77990 fix unique_ptr for non-copyable deleters

PR libstdc++/77990
* include/bits/unique_ptr.h (unique_ptr::unique_ptr(pointer)): Set
pointer member after value-initialization of tuple.
* testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust dg-errors.
* testsuite/20_util/unique_ptr/cons/77990.cc: New test.

From-SVN: r241337

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

From-SVN: r241324

8 years agobackport: tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before copying.
Kugan Vivekanandarajah [Tue, 18 Oct 2016 09:38:25 +0000 (09:38 +0000)] 
backport: tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before copying.

2016-10-18  Kugan Vivekanandarajah  <kuganv@linaro.org>

Backport from mainline
2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>

* tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
  copying.

From-SVN: r241298

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

From-SVN: r241290

8 years agobackport: re PR fortran/77978 (stop codes misinterpreted in both f2003 and f2008)
Steven G. Kargl [Mon, 17 Oct 2016 23:22:54 +0000 (23:22 +0000)] 
backport: re PR fortran/77978 (stop codes misinterpreted in both f2003 and f2008)

2016-10-17  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk
PR fortran/77978
* match.c (gfc_match_stopcode): Fix error reporting for several
deficiencies in matching stop-codes.

2016-10-17  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/77978
* gfortran.dg/pr77978_1.f90: New test.
* gfortran.dg/pr77978_2.f90: Ditto.
* gfortran.dg/pr77978_3.f90: Ditto.

From-SVN: r241286

8 years agoUpdate docs on libstdc++ source-code layout
Jonathan Wakely [Mon, 17 Oct 2016 17:03:50 +0000 (18:03 +0100)] 
Update docs on libstdc++ source-code layout

Backport from mainline:
2016-10-10  Jonathan Wakely  <jwakely@redhat.com>

* doc/xml/manual/appendix_contributing.xml (contrib.organization):
Replace <literallayout> with nested <variablelist> elements. Update
some more outdated text.
* doc/html/*: Regenerate.

Backport from mainline:
2016-10-10  Jonathan Wakely  <jwakely@redhat.com>

* doc/xml/manual/appendix_contributing.xml (contrib.organization):
Describe other subdirectories and add markup. Remove outdated
reference to check-script target.

From-SVN: r241270

8 years agoChange test to use VERIFY not assert
Jonathan Wakely [Mon, 17 Oct 2016 17:03:44 +0000 (18:03 +0100)] 
Change test to use VERIFY not assert

Backport from mainline:
2016-10-13  Jonathan Wakely  <jwakely@redhat.com>

* testsuite/26_numerics/random/default_random_engine.cc: Use VERIFY
instead of assert.

From-SVN: r241269

8 years agoRemove redundant const qualifiers from string_view
Jonathan Wakely [Mon, 17 Oct 2016 17:03:40 +0000 (18:03 +0100)] 
Remove redundant const qualifiers from string_view

Backport from mainline:
2016-10-11  Jonathan Wakely  <jwakely@redhat.com>

* include/experimental/string_view (basic_string_view::_S_compare):
Remove redundant const from return type.
* include/std/string_view (basic_string_view:_S_compare): Likewise.

From-SVN: r241268

8 years agoUse normal mode containers in searchers
Jonathan Wakely [Mon, 17 Oct 2016 17:03:35 +0000 (18:03 +0100)] 
Use normal mode containers in searchers

Backport from mainline:
2016-10-13  Jonathan Wakely  <jwakely@redhat.com>

* include/experimental/functional (boyer_moore_searcher)
(__boyer_moore_map_base, __boyer_moore_array_base): Qualify containers
with _GLIBCXX_STD_C.

From-SVN: r241267

8 years agoAdd noexcept to std::function swap
Jonathan Wakely [Mon, 17 Oct 2016 17:03:31 +0000 (18:03 +0100)] 
Add noexcept to std::function swap

Backport from mainline:
2016-08-22  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/77322
* doc/xml/manual/intro.xml: Document DR 2062 change.
* include/std/functional (function::swap): Add noexcept.
(swap(function<Res(Args...)&, function<Res(Args...)&)): Likewise.
* testsuite/20_util/function/77322.cc: New test.

From-SVN: r241266

8 years agoFix invalid dg-do directive
Jonathan Wakely [Mon, 17 Oct 2016 17:03:25 +0000 (18:03 +0100)] 
Fix invalid dg-do directive

Backport from mainline:
2016-08-17  Jonathan Wakely  <jwakely@redhat.com>

* testsuite/20_util/reference_wrapper/invoke-2.cc: Fix invalid dg-do
directive.

From-SVN: r241265

8 years agoUse ::new to avoid finding overloaded operator new
Jonathan Wakely [Mon, 17 Oct 2016 17:03:19 +0000 (18:03 +0100)] 
Use ::new to avoid finding overloaded operator new

Backport from mainline:
2016-08-06  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/72820
* include/std/functional (_Function_base::_Base_manager::_M_clone):
Qualify new operator.
* testsuite/20_util/function/cons/72820.cc: New test.

From-SVN: r241264

8 years agoBackport fixes to std::experimental::sample
Jonathan Wakely [Mon, 17 Oct 2016 17:03:09 +0000 (18:03 +0100)] 
Backport fixes to std::experimental::sample

PR libstdc++/77994
* include/experimental/algorithm (experimental::sample): Convert size
argument to iterator difference type. Fix invalid use of input
iterator. Defend against overloaded comma operator.

From-SVN: r241263

8 years agobackport: re PR tree-optimization/77937 (ICE: in replace_one_candidate, at gimple...
Bill Schmidt [Mon, 17 Oct 2016 14:24:21 +0000 (14:24 +0000)] 
backport: re PR tree-optimization/77937 (ICE: in replace_one_candidate, at gimple-ssa-strength-reduction.c:3370)

[gcc]

2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2016-10-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/77937
* gimple-ssa-strength-reduction.c (analyze_increments): Use
POINTER_TYPE_P on the candidate type to determine whether
candidates in this chain require pointer arithmetic.

2016-10-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/77937
* gimple-ssa-strength-reduction.c (analyze_increments): Set cost
to infinite when we have a pointer with an increment of -1.

[gcc/testsuite]

2016-10-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2016-10-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/77937
* gcc.dg/torture/pr77937-1.c: New.
* gcc.dg/torture/pr77937-2.c: New.

From-SVN: r241244

8 years agoDo not merge BBs with a different EH landing pads (PR
Martin Liska [Mon, 17 Oct 2016 13:19:04 +0000 (15:19 +0200)] 
Do not merge BBs with a different EH landing pads (PR

Backported from mainline
2016-10-13  Martin Liska  <mliska@suse.cz>

PR tree-optimization/77943
* g++.dg/tree-ssa/pr77943.C: New test.
Backported from mainline
2016-10-13  Martin Liska  <mliska@suse.cz>

PR tree-optimization/77943
* tree-ssa-tail-merge.c (merge_stmts_p): Do not merge BBs with
a different EH landing pads.

From-SVN: r241240

8 years agosystem-darwin-ppc64.ads (Support_64_Bit_Divides): Delete.
Eric Botcazou [Mon, 17 Oct 2016 08:56:14 +0000 (08:56 +0000)] 
system-darwin-ppc64.ads (Support_64_Bit_Divides): Delete.

* system-darwin-ppc64.ads (Support_64_Bit_Divides): Delete.
* system-linux-armeb.ads (Support_64_Bit_Divides): Likewise.
* system-linux-mips.ads (Support_64_Bit_Divides): Likewise.
* system-linux-mips64el.ads (Support_64_Bit_Divides): Likewise.
* system-linux-mipsel.ads (Support_64_Bit_Divides): Likewise.
* system-linux-sparcv9.ads (Support_64_Bit_Divides): Likewise.
* system-rtems.ads (Support_64_Bit_Divides): Likewise.

From-SVN: r241233

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

From-SVN: r241224

8 years agosparc.c (sparc_expand_vector_init): Only accept literal constants in CONST_VECTORs.
Eric Botcazou [Sun, 16 Oct 2016 19:38:31 +0000 (19:38 +0000)] 
sparc.c (sparc_expand_vector_init): Only accept literal constants in CONST_VECTORs.

* config/sparc/sparc.c (sparc_expand_vector_init): Only accept literal
constants in CONST_VECTORs.

From-SVN: r241220

8 years agobackport: system-aix.ads (Always_Compatible_Rep): Change to False.
Eric Botcazou [Sun, 16 Oct 2016 14:05:04 +0000 (14:05 +0000)] 
backport: system-aix.ads (Always_Compatible_Rep): Change to False.

Backport from mainline
2016-10-16  Eric Botcazou  <ebotcazou@adacore.com>

* system-aix.ads (Always_Compatible_Rep): Change to False.
* system-aix64.ads (Always_Compatible_Rep): Likewise.
* system-hpux-ia64.ads (Always_Compatible_Rep): Likewise.
* system-hpux.ads (Always_Compatible_Rep): Likewise.
* system-linux-alpha.ads (Always_Compatible_Rep): Likewise.
* system-linux-hppa.ads (Always_Compatible_Rep): Likewise.
* system-linux-ia64.ads (Always_Compatible_Rep): Likewise.
* system-linux-mips.ads (Always_Compatible_Rep): Likewise.
* system-linux-mips64el.ads (Always_Compatible_Rep): Likewise.
* system-linux-mipsel.ads (Always_Compatible_Rep): Likewise.
* system-linux-s390.ads (Always_Compatible_Rep): Likewise.
* system-linux-s390x.ads (Always_Compatible_Rep): Likewise.
* system-linux-sh4.ads (Always_Compatible_Rep): Likewise.
* system-linux-sparc.ads (Always_Compatible_Rep): Likewise.
* system-linux-sparcv9.ads (Always_Compatible_Rep): Likewise.
* system-rtems.ads (Always_Compatible_Rep): Likewise.

From-SVN: r241215

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

From-SVN: r241208

8 years agosparc.c (sparc_expand_vec_perm_bmask): Use a scratch register as destination of bmask.
Eric Botcazou [Sat, 15 Oct 2016 22:43:42 +0000 (22:43 +0000)] 
sparc.c (sparc_expand_vec_perm_bmask): Use a scratch register as destination of bmask.

* config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
register as destination of bmask.
(vector_init_bshuffle): Likewise.
* config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
(bmaskdi_vis): Enable only in 64-bit mode.

From-SVN: r241207

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

From-SVN: r241194

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

From-SVN: r241144

8 years agoDelete x86 deprecated pcommit instruction support
Andrew Senkevich [Thu, 13 Oct 2016 21:19:00 +0000 (21:19 +0000)] 
Delete x86 deprecated pcommit instruction support

Delete x86 pcommit instruction support, which has been deprecated:

https://software.intel.com/en-us/blogs/2016/09/12/deprecate-pcommit-instruction

gcc/

2016-10-13  Andrew Senkevich  <andrew.senkevich@intel.com>

Backport from trunk
* common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
(ix86_handle_option): Deleted handle of OPT_mpcommit.
* config.gcc: Deleted pcommitintrin.h
* config/i386/pcommitintrin.h: Deleted file.
* config/i386/cpuid.h (bit_PCOMMIT): Deleted.
* config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
detection.
* config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
__PCOMMIT__.
* config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
(PTA_PCOMMIT, IX86_BUILTIN_PCOMMIT, __builtin_ia32_pcommit): Deleted.
(ix86_option_override_internal): Deleted handle of option.
(ix86_valid_target_attribute_inner_p): Deleted pcommit.
* config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
* config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
(pcommit): Deleted instruction.
* config/i386/i386.opt: Mention -mpcommit deprecation.
* config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.

gcc/testsuite/

2016-10-13  Andrew Senkevich  <andrew.senkevich@intel.com>

Backport from trunk
* testsuite/gcc.target/i386/pcommit-1.c: Deleted test.
* testsuite/gcc.target/i386/sse-12.c: Deleted -pcommit option.
* testsuite/gcc.target/i386/sse-13.c: Ditto.
* testsuite/gcc.target/i386/sse-14.c: Ditto.
* testsuite/gcc.target/i386/sse-22.c: Ditto.
* testsuite/gcc.target/i386/sse-23.c: Ditto.
* testsuite/g++.dg/other/i386-2.C: Ditto.
* testsuite/g++.dg/other/i386-3.C: Ditto.

From-SVN: r241142

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

From-SVN: r241079

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

From-SVN: r241014

8 years agobackport: system-linux-armeb.ads (Backend_Overflow_Checks): Change to True.
Eric Botcazou [Tue, 11 Oct 2016 20:05:44 +0000 (20:05 +0000)] 
backport: system-linux-armeb.ads (Backend_Overflow_Checks): Change to True.

Backport from mainline
2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>

* system-linux-armeb.ads (Backend_Overflow_Checks): Change to True.
* system-linux-mips.ads (Backend_Overflow_Checks): Likewise.
* system-linux-mips64el.ads (Backend_Overflow_Checks): Likewise.
* system-linux-mipsel.ads (Backend_Overflow_Checks): Likewise.
* system-linux-sparcv9.ads (Backend_Overflow_Checks): Likewise.
* system-rtems.ads: Likewise.

2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
    Tristan Gingold  <gingold@adacore.com>

* system-linux-ppc64.ads: Delete.
* system-linux-ppc.ads: Make 32-bit/64-bit neutral.
* gcc-interface/Makefile.in (PowerPC/Linux): Simplify.

From-SVN: r241006

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

From-SVN: r240960

8 years agogen-avr-mmcu-texi.c (string.h): Include.
Georg-Johann Lay [Mon, 10 Oct 2016 14:27:07 +0000 (14:27 +0000)] 
gen-avr-mmcu-texi.c (string.h): Include.

* config/avr/gen-avr-mmcu-texi.c (string.h): Include.

From-SVN: r240927

8 years agoutils.c (convert): For a biased input type, convert the bias itself to the base type...
Eric Botcazou [Mon, 10 Oct 2016 08:53:06 +0000 (08:53 +0000)] 
utils.c (convert): For a biased input type, convert the bias itself to the base type before adding it.

* gcc-interface/utils.c (convert): For a biased input type, convert
the bias itself to the base type before adding it.

From-SVN: r240912

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

From-SVN: r240905

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

From-SVN: r240894

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

From-SVN: r240880

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

From-SVN: r240847

8 years agore PR target/77874 (two problems with gcc.target/i386/avx-1.c)
Uros Bizjak [Thu, 6 Oct 2016 17:55:20 +0000 (19:55 +0200)] 
re PR target/77874 (two problems with gcc.target/i386/avx-1.c)

PR target/77874
* config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
Remove wrong assert.
(<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
Use <round_constraint> as operand 1 constraint.

From-SVN: r240838

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

From-SVN: r240821

8 years agore PR fortran/58991 (ICE with associate and character string constant)
Steven G. Kargl [Wed, 5 Oct 2016 22:49:28 +0000 (22:49 +0000)] 
re PR fortran/58991 (ICE with associate and character string constant)

2016-10-05  Steven G. Kargl  <kargls@gcc.gnu.org>

PR fortran/58991
PR fortran/58992
* resolve.c (resolve_assoc_var):  Fix CHARACTER type-spec for a
selector in ASSOCIATE.
(resolve_fl_variable): Skip checks for an ASSOCIATE variable.

2016-10-05  Steven G. Kargl  <kargls@gcc.gnu.org>

PR fortran/58991
PR fortran/58992
* gfortran.dg/associate_22.f90: New test.

From-SVN: r240817

8 years agoPR 70564 disambiguate constructor for not_fn call wrapper
Jonathan Wakely [Wed, 5 Oct 2016 13:51:03 +0000 (14:51 +0100)] 
PR 70564 disambiguate constructor for not_fn call wrapper

PR libstdc++/70564
* include/experimental/functional (_Not_fn): Add second parameter to
disambiguate copying from initialization by not_fn.
(not_fn): Add second argument to initialization.
* testsuite/experimental/functional/not_fn.cc: Copy call wrapper using
direct-initialization. Test abstract class.

From-SVN: r240790

8 years ago77864 Fix noexcept conditions for map/set default constructors
Jonathan Wakely [Wed, 5 Oct 2016 13:43:58 +0000 (14:43 +0100)] 
77864 Fix noexcept conditions for map/set default constructors

PR libstdc++/77864
* include/bits/stl_map.h (map::map()): Use nothrow constructibility
of comparison function in conditional noexcept.
* include/bits/stl_multimap.h (multimap::multimap()): Likewise.
* include/bits/stl_multiset.h (multiset::multiset()): Likewise.
* include/bits/stl_set.h (set::set()): Likewise.
* testsuite/23_containers/map/cons/noexcept_default_construct.cc:
New test.
* testsuite/23_containers/multimap/cons/noexcept_default_construct.cc:
Likewise.
* testsuite/23_containers/multiset/cons/noexcept_default_construct.cc:
Likewise.
* testsuite/23_containers/set/cons/noexcept_default_construct.cc:
Likewise.

From-SVN: r240789

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

From-SVN: r240759

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

From-SVN: r240736

8 years agoFix libstdc++ versioned namespace build
Jonathan Wakely [Mon, 3 Oct 2016 14:42:06 +0000 (15:42 +0100)] 
Fix libstdc++ versioned namespace build

PR libstdc++/68323
PR libstdc++/77794
* config/abi/pre/gnu-versioned-namespace.ver: Add export for
__cxa_thread_atexit.
* include/Makefile.am: Add <experimental/lfts_config.h>
* include/Makefile.in: Regenerate.
* src/filesystem/Makefile.in: Likewise.
* include.bits/basic_string.h: Fix nesting of versioned namespaces.
* include/bits/c++config: Declare versioned namespaces for literals.
* include/bits/regex.h (basic_regex, match_results): Add workarounds
for PR c++/59256.
* include/bits/uniform_int_dist.h: Fix nesting of versioned namespace.
* include/std/chrono: Likewise.
* include/std/complex: Likewise.
* include/experimental/fs_fwd.h: Declare versioned namespace.
* include/experimental/lfts_config.h: Declare versioned namespaces.
* include/experimental/algorithm: Include
<experimental/lfts_config.h>.
* include/experimental/any: Likewise.
* include/experimental/chrono: Likewise.
* include/experimental/functional: Likewise.
* include/experimental/optional: Likewise.
* include/experimental/ratio: Likewise.
* include/experimental/system_error: Likewise.
* include/experimental/tuple: Likewise.
* include/experimental/type_traits: Likewise.
* include/experimental/string_view: Likewise. Fix nesting of
versioned namespaces.
* include/experimental/string_view.tcc: Reopen inline namespace for
non-inline function definitions.
* testsuite/17_intro/using_namespace_std_exp_neg.cc: New test.
* testsuite/20_util/duration/literals/range.cc: Adjust dg-error line.
* testsuite/experimental/any/misc/any_cast_neg.cc: Likewise.
* testsuite/ext/profile/mutex_extensions_neg.cc: Likewise.

From-SVN: r240720

8 years agoDaily bump.
GCC Administrator [Mon, 3 Oct 2016 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240703

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

From-SVN: r240697

8 years agobackport: re PR fortran/77391 (gfortran allows CHARACTER(LEN=:),PARAMETER:: STRING...
Steven G. Kargl [Sat, 1 Oct 2016 04:58:02 +0000 (04:58 +0000)] 
backport: re PR fortran/77391 (gfortran allows CHARACTER(LEN=:),PARAMETER:: STRING='constant'   buts does not report it as an extension)

2016-09-30  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk

PR fortran/77391
* resolve.c (deferred_requirements): New function to check F2008:C402.
(resolve_fl_variable,resolve_fl_parameter): Use it.

PR fortran/77391
* gfortran.dg/pr77391.f90: New test.

From-SVN: r240693

8 years agobackport: re PR fortran/77380 (ICE in gfc_check_dependency, at fortran/dependency...
Steven G. Kargl [Sat, 1 Oct 2016 00:46:28 +0000 (00:46 +0000)] 
backport: re PR fortran/77380 (ICE in gfc_check_dependency, at fortran/dependency.c:1255)

2016-09-30  Steven G. Kargl <kargl@gcc.gnu.org>

Backport from trunk

PR fortran/77380
* dependency.c (gfc_check_dependency): Do not assert with
-fcoarray=lib.

PR fortran/77380
* gfortran.dg/pr77380.f90: New test.

From-SVN: r240692

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

From-SVN: r240689

8 years agobackport: re PR fortran/61318 (Improve error diagnostic by pointing to the expression...
Steven G. Kargl [Fri, 30 Sep 2016 22:40:18 +0000 (22:40 +0000)] 
backport: re PR fortran/61318 (Improve error diagnostic by pointing to the expression and not to declared-at of a USE-associated variable)

2016-09-30  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk

PR fortran/61318
* interface.c (compare_parameter): Use better locus for error message.

PR fortran/61318
* gfortran.dg/pr61318.f90: New test.

From-SVN: r240683

8 years agobackport: re PR fortran/71859 (ICE on same variable/subroutine name (verify_gimple...
Steven G. Kargl [Fri, 30 Sep 2016 21:46:14 +0000 (21:46 +0000)] 
backport: re PR fortran/71859 (ICE on same variable/subroutine name (verify_gimple failed))

2016-09-30  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk

PR fortran/71859
* gfortran.dg/pr71859.f90: New test.
* gfortran.dg/intrinsic_numeric_arg.f: Update error message.
* gfortran.dg/coarray_collectives_1.f90: Ditto.

PR fortran/71859
* check.c(numeric_check): Prevent ICE.  Issue error for invalid
subroutine as an actual argument when numeric argument is expected.

From-SVN: r240682

8 years agobackport: re PR fortran/69867 (ICE on initializing character in type with array of...
Steven G. Kargl [Fri, 30 Sep 2016 21:02:56 +0000 (21:02 +0000)] 
backport: re PR fortran/69867 (ICE on initializing character in type with array of incompatible data)

2016-09-30  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk

PR fortran/69867
* decl.c (build_struct): Ensure that pointers point to something.

PR fortran/69962
* decl.c (gfc_set_constant_character_len):  if expr is not
constant issue an error instead of an ICE.

PR fortran/69962
* gfortran.dg/pr69962.f90: New test.

PR fortran/69867
* gfortran.dg/pr69867.f90: New test.

From-SVN: r240679