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

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