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

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

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

From-SVN: r243983

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

From-SVN: r243970

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

From-SVN: r243957

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

From-SVN: r243950

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

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

From-SVN: r243940

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

From-SVN: r243930

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

From-SVN: r243920

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

From-SVN: r243917

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

From-SVN: r243911

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

From-SVN: r243902

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

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

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

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

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

From-SVN: r243895

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

From-SVN: r243880

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

From-SVN: r243833

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

From-SVN: r243815

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

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

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

From-SVN: r243797

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

From-SVN: r243786

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

From-SVN: r243779

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

From-SVN: r243767

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

From-SVN: r243732

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

From-SVN: r243676

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

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

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

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

From-SVN: r243641

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

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

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

    gcc/
    * tree-ssa-math-opts.c (struct symbolic_number): Improve comment.

From-SVN: r243638

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

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

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

    gcc/
    PR tree-optimization/77673
    * tree-ssa-math-opts.c (struct symbolic_number): Add new src field.
    (init_symbolic_number): Initialize src field from src parameter.
    (perform_symbolic_merge): Select most dominated statement as the
    source statement.  Set src field of resulting n structure from the
    input src with the lowest address.
    (find_bswap_or_nop): Rename source_stmt into ins_stmt.
    (bswap_replace): Rename src_stmt into ins_stmt.  Initially get source
    of load from src field rather than insertion statement.  Cancel
    optimization if statement analyzed is not dominated by the insertion
    statement.
    (pass_optimize_bswap::execute): Rename src_stmt to ins_stmt.  Compute
    dominance information.

    gcc/testsuite/
    PR tree-optimization/77673
    * gcc.dg/pr77673.c: New test.

From-SVN: r243637

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

From-SVN: r243627

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

Backport from mainline
2016-10-26  Uros Bizjak  <ubizjak@gmail.com>

* acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Include <limits.h>
for PATH_MAX in realpath test.
* configure: Regenerate.

From-SVN: r243604

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

Backport from mainline
2016-05-25  Jonathan Wakely  <jwakely@redhat.com>

* acinclude.m4 (GLIBCXX_CHECK_FILESYSTEM_DEPS): Fix test for sendfile.
* configure: Regenerate.
* config.h.in: Regenerate.

From-SVN: r243603

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

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

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

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

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

From-SVN: r243600

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

From-SVN: r243586

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

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

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

From-SVN: r243565