]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
8 years agoDaily bump.
GCC Administrator [Wed, 15 Feb 2017 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r245462

8 years agoPR69321 fix any_cast<T>(any*) for non-copyable T
Jonathan Wakely [Tue, 14 Feb 2017 21:17:34 +0000 (21:17 +0000)] 
PR69321 fix any_cast<T>(any*) for non-copyable T

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

PR libstdc++/69321
* include/experimental/any (__any_caster): Avoid instantiating
manager function for types that can't be stored in any.
* testsuite/experimental/any/misc/any_cast.cc: Likewise.
* testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.

From-SVN: r245458

8 years agoPR69301 don't assume atomic<T> can default construct T
Jonathan Wakely [Tue, 14 Feb 2017 21:17:29 +0000 (21:17 +0000)] 
PR69301 don't assume atomic<T> can default construct T

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

PR libstdc++/69301
* include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
aligned buffer instead of default-initialized variable.
* testsuite/29_atomics/atomic/69301.cc: New test.
* include/ext/pointer.h (_Pointer_adapter::operator++(int))
(_Pointer_adapter::operator--(int)): Likewise.

From-SVN: r245457

8 years agoPR78702 fix accessibility of locale::facet::__shim
Jonathan Wakely [Tue, 14 Feb 2017 21:17:23 +0000 (21:17 +0000)] 
PR78702 fix accessibility of locale::facet::__shim

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

PR libstdc++/78702
* include/bits/locale_classes.h (locale::facet::__shim): Change from
private to protected.
* src/c++11/cxx11-shim_facets.cc (__shim_accessor): Define helper to
make locale::facet::__shim accessible.

From-SVN: r245456

8 years agoPR78134 fix return types of heterogeneous lookup functions
Jonathan Wakely [Tue, 14 Feb 2017 21:17:18 +0000 (21:17 +0000)] 
PR78134 fix return types of heterogeneous lookup functions

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

PR libstdc++/78134
* include/bits/stl_map.h (map::lower_bound, map::upper_bound)
(map::equal_range): Fix return type of heterogeneous overloads.
* include/bits/stl_multimap.h (multimap::lower_bound)
(multimap::upper_bound, multimap::equal_range): Likewise.
* include/bits/stl_multiset.h (multiset::lower_bound)
(multiset::upper_bound, multiset::equal_range): Likewise.
* include/bits/stl_set.h (set::lower_bound, set::upper_bound)
(set::equal_range): Likewise.
* testsuite/23_containers/map/operations/2.cc: Check return types.
* testsuite/23_containers/multimap/operations/2.cc: Likewise.
* testsuite/23_containers/multiset/operations/2.cc: Likewise.
* testsuite/23_containers/set/operations/2.cc: Likewise.

From-SVN: r245455

8 years agoPR78273 fix count to work with partitioning function
Jonathan Wakely [Tue, 14 Feb 2017 21:17:11 +0000 (21:17 +0000)] 
PR78273 fix count to work with partitioning function

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

PR libstdc++/78273
* include/bits/stl_map.h (map::count<_Kt>(const _Kt&)): Don't assume
the heterogeneous comparison can only find one match.
* include/bits/stl_set.h (set::count<_Kt>(const _Kt&)): Likewise.
* testsuite/23_containers/map/operations/2.cc: Test count works with
comparison function that just partitions rather than sorting.
* testsuite/23_containers/set/operations/2.cc: Likewise.

From-SVN: r245454

8 years agobackport: [multiple changes]
Martin Liska [Tue, 14 Feb 2017 10:45:31 +0000 (11:45 +0100)] 
backport: [multiple changes]

2016-03-01  Richard Biener  <rguenther@suse.de>

2017-02-14  Martin Liska  <mliska@suse.cz>

Backport from mainline
2016-03-01  Richard Biener  <rguenther@suse.de>

PR middle-end/70022
PR target/79498
* fold-const.c (fold_indirect_ref_1): Fix range checking for
vector BIT_FIELD_REF extract.

From-SVN: r245426

8 years agoReplace XALLOCAVEC with XCNEWVEC (PR c/79471).
Martin Liska [Tue, 14 Feb 2017 08:03:42 +0000 (09:03 +0100)] 
Replace XALLOCAVEC with XCNEWVEC (PR c/79471).

2017-02-14  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-02-13  Martin Liska  <mliska@suse.cz>

PR c/79471
* calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.

From-SVN: r245418

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

From-SVN: r245412

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

From-SVN: r245379

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

From-SVN: r245368

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

From-SVN: r245351

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

From-SVN: r245318

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

From-SVN: r245289

8 years agors6000: Fix spelling of AltiVec in rs6000.opt (PR79397)
Segher Boessenkool [Wed, 8 Feb 2017 21:44:37 +0000 (22:44 +0100)] 
rs6000: Fix spelling of AltiVec in rs6000.opt (PR79397)

It was spelled Altivec in two user-facing messages in rs6000.opt; let's
be consistent.

PR translation/79397
* config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
of AltiVec.

From-SVN: r245287

8 years agotrans-types.c (gfc_get_int_kind_from_width_isofortranen): Choose REAL type with the...
Steven G. Kargl [Wed, 8 Feb 2017 00:37:22 +0000 (00:37 +0000)] 
trans-types.c (gfc_get_int_kind_from_width_isofortranen): Choose REAL type with the widest precision if...

2017-02-07  Steven G. Kargl  <kargl@gcc.gnu.org>

* trans-types.c (gfc_get_int_kind_from_width_isofortranen):  Choose
REAL type with the widest precision if two (or more) have the same
storage size.

From-SVN: r245265

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

From-SVN: r245262

8 years ago[ARM][PR target/78945] Fix libatomic on armv7-m
Szabolcs Nagy [Tue, 7 Feb 2017 12:51:00 +0000 (12:51 +0000)] 
[ARM][PR target/78945] Fix libatomic on armv7-m

libatomic/

Backport from mainline:
2017-01-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>

PR target/78945
* config/arm/exch_n.c (libat_exchange): Check __ARM_FEATURE_SIMD32.

From-SVN: r245247

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

From-SVN: r245235

8 years agobackport: dated 2017-01-26 and 2017-01-25 respectively
Carl Love [Mon, 6 Feb 2017 17:40:29 +0000 (17:40 +0000)] 
backport: dated 2017-01-26 and 2017-01-25 respectively

gcc/ChangeLog:

2017-02-06  Carl Love  <cel@us.ibm.com>

        Backport of two commits from mainline, r244943 and r244904,
        dated 2017-01-26 and 2017-01-25 respectively

        * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
        of entries for ALTIVEC_BUILTIN_VEC_PACKS.  Remove bogus entries
        for P8V_BUILTIN_VEC_VGBBD.

gcc/testsuite/ChangeLog:

2017-02-06  Carl Love  <cel@us.ibm.com>
        * gcc.target/powerpc/builtins-3-p8.c:  Add new testfile for missing
        vec_packs built-in tests.

From-SVN: r245212

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

From-SVN: r245200

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

From-SVN: r245185

8 years agoDaily bump.
GCC Administrator [Sat, 4 Feb 2017 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r245175

8 years agobackport: re PR testsuite/65484 (FAIL: g++.dg/vect/pr36648.cc on powerpc64)
Bill Schmidt [Fri, 3 Feb 2017 19:06:58 +0000 (19:06 +0000)] 
backport: re PR testsuite/65484 (FAIL: g++.dg/vect/pr36648.cc on powerpc64)

2017-02-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2017-01-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR target/65484
* g++.dg/vect/pr36648.cc: Modify to reflect that the loop is not
vectorized on POWER unless hardware misaligned loads are
available.

From-SVN: r245164

8 years agore PR lto/79061 ([LTO][ASAN] LTO plus ASAN fails with "AddressSanitizer: initializati...
Maxim Ostapenko [Fri, 3 Feb 2017 09:13:06 +0000 (09:13 +0000)] 
re PR lto/79061 ([LTO][ASAN] LTO plus ASAN fails with "AddressSanitizer: initialization-order-fiasco")

PR lto/79061
* asan.c (asan_add_global): Force has_dynamic_init to zero in LTO mode.

From-SVN: r245148

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

From-SVN: r245139

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

From-SVN: r245112

8 years agoPR78346 make <bits/predefined_ops.h> handle stashing iterators
Jonathan Wakely [Wed, 1 Feb 2017 12:57:58 +0000 (12:57 +0000)] 
PR78346 make <bits/predefined_ops.h> handle stashing iterators

PR libstdc++/78346
* include/bits/predefined_ops.h (_Iter_equals_iter): Store iterator
not its referent.
(_Iter_comp_to_iter): Likewise.
* testsuite/25_algorithms/search/78346.cc: New test.

From-SVN: r245092

8 years agoPR libstdc++/79254 fix exception-safety of std::string copy assignment
Jonathan Wakely [Wed, 1 Feb 2017 12:18:43 +0000 (12:18 +0000)] 
PR libstdc++/79254 fix exception-safety of std::string copy assignment

PR libstdc++/79254
* include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
(basic_string::operator=(const basic_string&)): If source object is
small just deallocate, otherwise perform new allocation before
making any changes.
* testsuite/21_strings/basic_string/allocator/wchar_t/copy_assign.cc:
Test exception-safety of copy assignment when allocator propagates.
* testsuite/21_strings/basic_string/allocator/char/copy_assign.cc:
Likewise.
* testsuite/util/testsuite_allocator.h (uneq_allocator::swap): Make
std::swap visible.

From-SVN: r245088

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

From-SVN: r245077

8 years agore PR fortran/79305 (real128 - undefined reference to cexpl)
Steven G. Kargl [Tue, 31 Jan 2017 21:42:01 +0000 (21:42 +0000)] 
re PR fortran/79305 (real128 - undefined reference to cexpl)

2017-01-31  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/79305
* c99_protos.h: Spell HAVE_EXPL correctly.
* intrinsics/c99_functions.c: Ditto.

From-SVN: r245074

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

From-SVN: r245042

8 years agoOnly declare gets for C++ < 2014 on Solaris (PR libstdc++/78979)
Rainer Orth [Mon, 30 Jan 2017 16:08:42 +0000 (16:08 +0000)] 
Only declare gets for C++ < 2014 on Solaris (PR libstdc++/78979)

Backport from mainline
2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

PR libstdc++/78979
* inclhack.def (solaris_gets_c11, solaris_gets_cxx14)
(solaris_std_gets_cxx14, solaris_stdlib_noreturn): New fixes.
* fixincl.x: Regenerate.
* tests/base/iso/stdio_iso.h [SOLARIS_GETS_C11_CHECK,
SOLARIS_GETS_CXX14_CHECK, SOLARIS_STD_GETS_CXX14_CHECK,
SOLARIS_STDLIB_NORETURN_CHECK]: New tests.

From-SVN: r245034

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

From-SVN: r245018

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

From-SVN: r245011

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

From-SVN: r245000

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

From-SVN: r244958

8 years agobackport: [multiple changes]
Richard Biener [Thu, 26 Jan 2017 13:08:43 +0000 (13:08 +0000)] 
backport: [multiple changes]

2017-01-26  Richard Biener  <rguenther@suse.de>

Backport from mainline
2016-01-10  Richard Biener  <rguenther@suse.de>

PR tree-optimization/79034
* tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
Propagate out degenerate PHIs in the joiner.

* g++.dg/torture/pr79034.C: New testcase.

2016-11-07  Richard Biener  <rguenther@suse.de>

PR tree-optimization/78224
* tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
Split the fallthru edge in case its successor may have PHIs.
Do not free dominance info.

* g++.dg/torture/pr78224.C: New testcase.

From-SVN: r244930

8 years agobackport: [multiple changes]
Richard Biener [Thu, 26 Jan 2017 08:16:37 +0000 (08:16 +0000)] 
backport: [multiple changes]

2017-01-26  Richard Biener  <rguenther@suse.de>

Backport from mainline
2016-09-27  Richard Biener  <rguenther@suse.de>

PR tree-optimization/77745
* tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
When removing redundant stores make sure to check compatibility
of the TBAA state for downstream accesses.
* tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
value-numbering virtual operands for store matches.

* g++.dg/torture/pr77745.C: New testcase.

2016-09-29  Richard Biener  <rguenther@suse.de>

PR tree-optimization/77768
* tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
with stores to a place we know has a constant value.
* tree-vrp.c (set_defs_to_varying): New helper avoiding
writing to vr_const_varying.
(vrp_initialize): Call it.
(vrp_visit_stmt): Likewise.
(evrp_dom_walker::before_dom_children): Likewise.
* tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
Handle stores to readonly memory when removing redundant stores.

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

From-SVN: r244918

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

From-SVN: r244913

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

From-SVN: r244886

8 years agoAdd missing test.
Wilco Dijkstra [Tue, 24 Jan 2017 14:15:44 +0000 (14:15 +0000)] 
Add missing test.

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

From-SVN: r244873

8 years agoWith -fpu=neon DI mode shifts are expanded after reload.
Wilco Dijkstra [Tue, 24 Jan 2017 14:14:12 +0000 (14:14 +0000)] 
With -fpu=neon DI mode shifts are expanded after reload.

With -fpu=neon DI mode shifts are expanded after reload.  DI mode registers can
either fully or partially overlap on both ARM and Thumb-2.  However the shift
expansion code can only deal with the full overlap case, and generates incorrect
code for partial overlaps.  The fix is to add new variants that support either
full overlap or no overlap.

Backport from mainline
    gcc/
PR target/78041
* config/arm/neon.md (ashldi3_neon): Add "r 0 i" and "&r r i" variants.
Remove partial overlap check for shift by 1.
(ashldi3_neon): Likewise.
    testsuite/
* gcc.target/arm/pr78041.c: New test.

From-SVN: r244872

8 years agobackport: re PR tree-optimization/77450 (ICE: in verify_ssa, at tree-ssa.c:1016 on...
Richard Biener [Tue, 24 Jan 2017 13:56:50 +0000 (13:56 +0000)] 
backport: re PR tree-optimization/77450 (ICE: in verify_ssa, at tree-ssa.c:1016 on very simple code with vectors)

2017-01-24  Richard Biener  <rguenther@suse.de>

        Backport from mainline
        2016-09-06  Richard Biener  <rguenther@suse.de>

        PR c/77450
        * c-common.c (c_common_mark_addressable_vec): Handle
        COMPOUND_LITERAL_EXPR.

From-SVN: r244870

8 years agoBackport PRs 71848, 77646, 77648, 77879, 78188
Richard Biener [Tue, 24 Jan 2017 11:30:44 +0000 (11:30 +0000)] 
Backport PRs 71848, 77646, 77648, 77879, 78188

2017-01-24  Richard Biener  <rguenther@suse.de>

Backport from mainline
2016-09-20  Richard Biener  <rguenther@suse.de>

PR tree-optimization/77646
* tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
a VDEF.

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

2016-11-05  David Edelsohn  <dje.gcc@gmail.com>
Richard Biener  <rguenther@suse.de>

PR bootstrap/78188
PR c++/71848
* ipa-comdats.c (pass_ipa_comdats::gate): Require HAVE_COMDAT_GROUP.

* g++.dg/ipa/pr78188.C: New test.

2016-09-21  Richard Biener  <rguenther@suse.de>

PR tree-optimization/77648
* tree-ssa-structalias.c (process_constraint): Handle all DEREF
with complex RHS.
(make_transitive_closure_constraints): Adjust comment.
(make_any_offset_constraints): New function.
(handle_rhs_call): Make sure to first expand a pointer to all
subfields before transitively closing it.
(handle_const_call): Likewise.  Properly expand returned
pointers as well.
(handle_pure_call): Likewise.

* gcc.dg/torture/pr77648-1.c: New testcase.
* gcc.dg/torture/pr77648-2.c: Likewise.

2016-10-07  Richard Biener  <rguenther@suse.de>

PR tree-optimization/77879
* tree-ssa-structalias.c (handle_const_call): Properly handle
NRV return slots.
(handle_pure_call): Likewise.

From-SVN: r244864

8 years agoBackport PRs 77436, 77450, 77605, 77855, 78047, 78185, 78333
Richard Biener [Tue, 24 Jan 2017 08:06:29 +0000 (08:06 +0000)] 
Backport PRs 77436, 77450, 77605, 77855, 78047, 78185, 78333

2017-01-24  Richard Biener  <rguenther@suse.de>

Backport from mainline
2016-10-06  Richard Biener  <rguenther@suse.de>

PR tree-optimization/77855
* tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
instead of removing the current item while iterating over the set
which is not safe.

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

2016-09-01  Richard Biener  <rguenther@suse.de>

PR middle-end/77436
* tree-chrec.c (tree_fold_binomial): Use widest_int, properly
check whether the result fits the desired result type.

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

2016-09-06  Richard Biener  <rguenther@suse.de>

PR c/77450
c-family/
* c-common.c (c_common_mark_addressable_vec): Handle
COMPOUND_LITERAL_EXPR.

* c-c++-common/vector-subscript-7.c: Adjust.
* gcc.dg/pr77450.c: New testcase.

2016-09-19  Richard Biener  <rguenther@suse.de>

PR middle-end/77605
* tree-data-ref.c (analyze_subscript_affine_affine): Use the
proper niter to bound the loops.

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

2016-11-02  Richard Biener  <rguenther@suse.de>

PR tree-optimization/78047
* tree-ssa-structalias.c (push_fields_onto_fieldstack): Initialize
fake field at offset zero conservatively regarding to may_have_pointers.

2016-11-02  Richard Biener  <rguenther@suse.de>

PR middle-end/78185
* loop-invariant.c (find_invariant_insn): Never hoist trapping or
faulting instructions.
* tree-ssa-loop-im.c: Include tree-ssa-loop-niter.h.
(fill_always_executed_in_1): Honor infinite child loops.

* gcc.dg/pr78185.c: New testcase.

2016-11-16  Richard Biener  <rguenther@suse.de>

PR middle-end/78333
* gimplify.c (gimplify_function_tree): Do not instrument
GNU extern inline functions.

* gcc.dg/pr78333.c: New testcase.

From-SVN: r244853

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

From-SVN: r244841

8 years agoFix FAIL: gcc.dg/lto/pr69188 on bare-metal targets
Martin Liska [Mon, 23 Jan 2017 12:25:17 +0000 (13:25 +0100)] 
Fix FAIL: gcc.dg/lto/pr69188 on bare-metal targets

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

Backport from mainline
2016-01-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* gcc.dg/lto/pr69188_0.c: Require profiling support for testcase.

From-SVN: r244798

8 years agoDo not declare artificial variables in tree-profile.c to have a definition (PR lto...
Martin Liska [Mon, 23 Jan 2017 12:24:54 +0000 (13:24 +0100)] 
Do not declare artificial variables in tree-profile.c to have a definition (PR lto/69188).

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

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

PR lto/69188
* tree-profile.c (init_ic_make_global_vars): Do not call
finalize_decl.
(gimple_init_gcov_profiler): Likewise.
2017-01-23  Martin Liska  <mliska@suse.cz>

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

PR lto/69188
* gcc.dg/lto/pr69188_0.c: New test.
* gcc.dg/lto/pr69188_1.c: New test.

From-SVN: r244797

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

From-SVN: r244767

8 years agobackport: faq.xml: Update address of C++ ABI link.
Gerald Pfeifer [Sun, 22 Jan 2017 16:05:45 +0000 (16:05 +0000)] 
backport: faq.xml: Update address of C++ ABI link.

Merge from mainline
2017-01-01  Gerald Pfeifer  <gerald@pfeifer.com>

* doc/xml/faq.xml: Update address of C++ ABI link.
* doc/xml/manual/abi.xml: Ditto.

From-SVN: r244761

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

From-SVN: r244754

8 years agobackport: extend.texi (Cilk Plus Builtins): cilkplus.org now uses https by default.
Gerald Pfeifer [Sat, 21 Jan 2017 22:04:31 +0000 (22:04 +0000)] 
backport: extend.texi (Cilk Plus Builtins): cilkplus.org now uses https by default.

Backport from mainline
2016-12-29  Gerald Pfeifer  <gerald@pfeifer.com>

* doc/extend.texi (Cilk Plus Builtins): cilkplus.org now uses
https by default.
* doc/passes.texi (Cilk Plus Transformation): Ditto.
* doc/generic.texi (Statements for C++): Ditto, and use @uref.

From-SVN: r244753

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

From-SVN: r244737

8 years agoReload global options when strict aliasing is dropped (PR ipa/79043).
Martin Liska [Fri, 20 Jan 2017 12:09:22 +0000 (13:09 +0100)] 
Reload global options when strict aliasing is dropped (PR ipa/79043).

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

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

PR ipa/79043
* function.c (set_cfun): Add new argument force.
* function.h (set_cfun): Likewise.
* ipa-inline-transform.c (inline_call): Use the function when
strict alising from is dropped for function we inline to.
2017-01-20  Martin Liska  <mliska@suse.cz>

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

PR ipa/79043
* gcc.c-torture/execute/pr79043.c: New test.

From-SVN: r244709

8 years agobackport: [multiple changes]
Martin Liska [Fri, 20 Jan 2017 12:04:46 +0000 (13:04 +0100)] 
backport: [multiple changes]

2016-03-26  Richard Biener  <rguenther@suse.de> Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

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

Backport from mainline
2016-03-26  Richard Biener  <rguenther@suse.de>
            Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

PR ipa/70366
* ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
instead of
TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
as 2nd argument to cl_optimization_restore().

From-SVN: r244708

8 years agoalias-1.c: New testcase.
Martin Liska [Fri, 20 Jan 2017 12:03:55 +0000 (13:03 +0100)] 
alias-1.c: New testcase.

* gcc.c-torture/execute/alias-1.c: New testcase. * c-common.c: Do not silently ignore -fstrict-aliasing changes.

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

Backport from mainline
2015-12-01  Jan Hubicka  <hubicka@ucw.cz>

* c-common.c (parse_optimize_options): Do not silently ignore
-fstrict-aliasing changes.
2017-01-20  Martin Liska  <mliska@suse.cz>

Backport from mainline
2015-12-01  Jan Hubicka  <hubicka@ucw.cz>

* gcc.c-torture/execute/alias-1.c: New testcase.

From-SVN: r244707

8 years agoipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when inlining -fno-stric...
Martin Liska [Fri, 20 Jan 2017 08:52:46 +0000 (09:52 +0100)] 
ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when inlining -fno-strict-aliasing into...

* ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when  inlining -fno-strict-aliasing into -fstrict-aliasing body.

From-SVN: r244690

8 years agoFix wrong assumption in contains_type_p (PR ipa/71207).
Martin Liska [Fri, 20 Jan 2017 08:49:08 +0000 (09:49 +0100)] 
Fix wrong assumption in contains_type_p (PR ipa/71207).

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

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

PR ipa/71207
* ipa-polymorphic-call.c (contains_type_p): Fix wrong
assumption and add comment.
2017-01-20  Martin Liska  <mliska@suse.cz>

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

PR ipa/71207
* g++.dg/ipa/pr71207.C: New test.

From-SVN: r244688

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

From-SVN: r244670

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

From-SVN: r244606

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

From-SVN: r244558

8 years agobackport: re PR rtl-optimization/78617 (LRA clobbers live register during remateriali...
Thomas Preud'homme [Tue, 17 Jan 2017 10:11:20 +0000 (10:11 +0000)] 
backport: re PR rtl-optimization/78617 (LRA clobbers live register during rematerialization)

2017-01-17 Thomas Preud'homme <thomas.preudhomme@arm.com>

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

    gcc/
    PR rtl-optimization/78617
    * lra-remat.c (do_remat): Initialize live_hard_regs from live in
    registers, also setting hard registers mapped to pseudo registers.

    gcc/testsuite/
    PR rtl-optimization/78617
    * gcc.c-torture/execute/pr78617.c: New test.

From-SVN: r244526

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

From-SVN: r244512

8 years agoPR libstdc++/78389 fix backwards size adjustments
Ville Voutilainen [Mon, 16 Jan 2017 13:32:39 +0000 (15:32 +0200)] 
PR libstdc++/78389 fix backwards size adjustments

Backport from mainline
2017-01-16  Ville Voutilainen  <ville.voutilainen@gmail.com>

PR libstdc++/78389
* include/bits/list.tcc (merge(list&&)): Fix backwards size adjustments.
(merge(list&&, _StrictWeakOrdering)): Likewise.
* testsuite/23_containers/list/operations/78389.cc: Add
better test for the sizes.

From-SVN: r244493

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

From-SVN: r244480

8 years agobackport: re PR libstdc++/78389 (list::merge and list::sort are not exception safe)
Ville Voutilainen [Sun, 15 Jan 2017 16:27:08 +0000 (18:27 +0200)] 
backport: re PR libstdc++/78389 (list::merge and list::sort are not exception safe)

Backport from mainline
2017-01-13  Ville Voutilainen  <ville.voutilainen@gmail.com>

PR libstdc++/78389
* include/bits/list.tcc (merge(list&&)):
Adjust list sizes if the comparator throws.
(merge(list&&, _StrictWeakOrdering)): Likewise.
* testsuite/23_containers/list/operations/78389.cc: New.

From-SVN: r244475

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

From-SVN: r244469

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

From-SVN: r244457

8 years agobackport: re PR target/78253 ([ARM] call weak function instead of strong when called...
Christophe Lyon [Fri, 13 Jan 2017 13:11:07 +0000 (13:11 +0000)] 
backport: re PR target/78253 ([ARM] call weak function instead of strong when called through pointer)

2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>

Backport from mainline r244320.
2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>

PR target/78253
* config/arm/arm.c (legitimize_pic_address): Handle reference to
weak symbol.
(arm_assemble_integer): Likewise.

From-SVN: r244438

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

From-SVN: r244389

8 years agoFix build issue with NO_FUNCTION_CSE
Kyrylo Tkachov [Thu, 12 Jan 2017 17:41:49 +0000 (17:41 +0000)] 
Fix build issue with NO_FUNCTION_CSE

* postreload.c (reload_cse_simplify): Check for NO_FUNCTION_CSE
definition instead of using it directly.

From-SVN: r244376

8 years agore PR c++/77812 (incorrectly rejects valid C++ code that uses enum in template instan...
Nathan Sidwell [Thu, 12 Jan 2017 12:40:28 +0000 (12:40 +0000)] 
re PR c++/77812 (incorrectly rejects valid C++ code that uses enum in template instantiation)

cp/
PR c++/77812
* name-lookup.c (set_namespace_binding_1): An overload of 1 decl
is a new overload.

testsuite/
PR c++/77812
* g++.dg/pr77812.C: New.

From-SVN: r244351

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

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

From-SVN: r244347

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

From-SVN: r244344

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

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

From-SVN: r244343

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

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

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

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

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

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

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

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

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

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

From-SVN: r244319

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

From-SVN: r244300

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

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

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

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

From-SVN: r244284

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

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

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

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

From-SVN: r244268

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

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

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

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

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

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

From-SVN: r244267

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

Fix PR70668.

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

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

From-SVN: r244258

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

From-SVN: r244253

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

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

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

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

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

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

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

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

From-SVN: r244243

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

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

From-SVN: r244222

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

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

From-SVN: r244221

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

From-SVN: r244211

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

From-SVN: r244202

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

From-SVN: r244189

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

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

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

From-SVN: r244158

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

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

From-SVN: r244157

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

From-SVN: r244117

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

From-SVN: r244081

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

From-SVN: r244038

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

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

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

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

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

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

From-SVN: r244019

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

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

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

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

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

From-SVN: r244016

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

From-SVN: r244007

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

From-SVN: r243998

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

From-SVN: r243988

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

From-SVN: r243985