]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
7 years agoDaily bump.
GCC Administrator [Sun, 1 Oct 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253324

7 years agoDaily bump.
GCC Administrator [Sat, 30 Sep 2017 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253312

7 years agoDaily bump.
GCC Administrator [Fri, 29 Sep 2017 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253271

7 years agoDaily bump.
GCC Administrator [Thu, 28 Sep 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253245

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

From-SVN: r253219

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

From-SVN: r253182

7 years ago[Patch, Darwin] Fix 81037 by adjutng headers
Iain Sandoe [Mon, 25 Sep 2017 23:49:58 +0000 (23:49 +0000)] 
[Patch, Darwin]  Fix 81037 by adjutng headers

2017-09-26  Iain Sandoe  <iain@codesourcery.com>
            Ryan Mounce  <ryan@mounce.com.au>

PR bootstrap/81037
  Backport from mainline r235362
  2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>

* system.h (list, map, set, vector): Include conditionally.
* auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
* graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
* ipa-icf.c (INCLUDE_LIST): Define.
* ipa-icf-gimple.c (INCLUDE_LIST): Define.
* config/sh/sh.c (INCLUDE_VECTOR): Define.
* config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
(INCLUDE_LIST, INCLUDE_VECTOR): Define.
* fortran/trans-common.c (INCLUDE_MAP): Define.

Backport from mainline r235361
2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>

* auto-profile.c: Remove <string.h> include.
* diagnostic.c: Remove <new> include.
* genmatch.c: Likewise.
* pretty-print.c: Likewise.
* toplev.c: Likewise
* c/c-objc-common.c: Likewise.
* cp/error.c: Likewise.
* fortran/error.c: Likewise.

Co-Authored-By: Ryan Mounce <ryan@mounce.com.au>
From-SVN: r253181

7 years agoDaily bump.
GCC Administrator [Mon, 25 Sep 2017 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253128

7 years agoDaily bump.
GCC Administrator [Sun, 24 Sep 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253119

7 years agoDaily bump.
GCC Administrator [Sat, 23 Sep 2017 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253111

7 years agoDaily bump.
GCC Administrator [Fri, 22 Sep 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253085

7 years agore PR tree-optimization/71702 (dr_group_sort_cmp violates transitivity required for...
Alexander Monakov [Thu, 21 Sep 2017 21:56:16 +0000 (00:56 +0300)] 
re PR tree-optimization/71702 (dr_group_sort_cmp violates transitivity required for qsort)

PR tree-optimization/71702

Backport r230667
2015-11-20  Jim Wilson  <jim.wilson@linaro.org>

* tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.

From-SVN: r253081

7 years agoPR81996, __builtin_return_address(0) fails
Alan Modra [Thu, 21 Sep 2017 13:25:45 +0000 (22:55 +0930)] 
PR81996, __builtin_return_address(0) fails

rs6000_return_addr assumes that the stack link is at frame+0, which is
true for count>0.  For count==0, rs6000_return_addr is called with
frame==frame_pointer_rtx and the stack link is *not* at frame+0 if
-fstack-protector-all or -fsanitize=address because rs6000.h sets
FRAME_GROWS_DOWNWARD for those options.

PR target/81996
* gcc/config/rs6000/rs6000.c (rs6000_return_addr): Use
stack_pointer_rtx for count 0.  Update comments.  Break up
large rtl expression.

From-SVN: r253070

7 years agoDaily bump.
GCC Administrator [Thu, 21 Sep 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r253043

7 years agoDaily bump.
GCC Administrator [Wed, 20 Sep 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r252987

7 years agoIgnore empty string in target attribute (PR c++/81355).
Martin Liska [Tue, 19 Sep 2017 08:12:58 +0000 (10:12 +0200)] 
Ignore empty string in target attribute (PR c++/81355).

2017-09-19  Martin Liska  <mliska@suse.cz>

PR c++/81355
* config/i386/i386.c (sorted_attr_string): Skip empty strings.

From-SVN: r252965

7 years agoRemove test failing on the branch.
Martin Liska [Tue, 19 Sep 2017 08:12:35 +0000 (10:12 +0200)] 
Remove test failing on the branch.

2017-09-18  Martin Liska  <mliska@suse.cz>

* gcc.dg/asan/pr81224.c: Remove.

From-SVN: r252964

7 years agoDaily bump.
GCC Administrator [Tue, 19 Sep 2017 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r252958

7 years agoPR c++/80294 - ICE with constexpr and inheritance.
Jason Merrill [Mon, 18 Sep 2017 18:34:10 +0000 (14:34 -0400)] 
PR c++/80294 - ICE with constexpr and inheritance.

* constexpr.c (reduced_constant_expression_p):
A null constructor element is non-constant.
(cxx_eval_indirect_ref): Don't VERIFY_CONSTANT before
returning an empty base.

From-SVN: r252940

7 years agoPR c++/79607 - ICE with T{} initializer
Jason Merrill [Mon, 18 Sep 2017 18:34:03 +0000 (14:34 -0400)] 
PR c++/79607 - ICE with T{} initializer

* decl.c (type_dependent_init_p): Check the type of a CONSTRUCTOR.

From-SVN: r252939

7 years agoPR c++/72457 - ICE with list-value-initialized base.
Jason Merrill [Mon, 18 Sep 2017 18:33:58 +0000 (14:33 -0400)] 
PR c++/72457 - ICE with list-value-initialized base.

* init.c (expand_aggr_init_1): Only handle value-init of bases.
* constexpr.c (build_data_member_initialization): Handle multiple
initializers for the same field.

From-SVN: r252938

7 years agoPR c++/55922 - list-value-initialization of base
Jason Merrill [Mon, 18 Sep 2017 18:33:52 +0000 (14:33 -0400)] 
PR c++/55922 - list-value-initialization of base

PR c++/63151
* init.c (expand_aggr_init_1): Handle list-initialization from {}.

From-SVN: r252937

7 years agoBackport PRs 64516, 68528, 80171, 80362
Richard Biener [Mon, 18 Sep 2017 13:14:45 +0000 (13:14 +0000)] 
Backport PRs 64516, 68528, 80171, 80362

2017-09-18  Richard Biener  <rguenther@suse.de>

Backport from mainline
2017-04-10  Richard Biener  <rguenther@suse.de>

PR middle-end/80362
* fold-const.c (fold_binary_loc): Look at unstripped ops when
looking for NEGATE_EXPR in -A / -B to A / B folding.

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

2015-11-25  Richard Biener  <rguenther@suse.de>

PR middle-end/68528
* fold-const.c (fold_binary_loc): Do not call negate_expr_p
on stripped operands.

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

2017-03-27  Richard Biener  <rguenther@suse.de>

PR middle-end/80171
* gimple-fold.c (fold_ctor_reference): Properly guard against
NULL return value from canonicalize_constructor_val.

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

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

PR middle-end/64516
* fold-const.c (fold_unary_loc): Preserve alignment when
folding a VIEW_CONVERT_EXPR into a MEM_REF.

* gcc.dg/align-3.c: New testcase.

From-SVN: r252926

7 years agoRemove test failing on the branch.
Martin Liska [Mon, 18 Sep 2017 09:09:46 +0000 (11:09 +0200)] 
Remove test failing on the branch.

2017-09-18  Martin Liska  <mliska@suse.cz>

* gcc.dg/asan/pr81224.c: Remove.

From-SVN: r252912

7 years agoDaily bump.
GCC Administrator [Mon, 18 Sep 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r252897

7 years agoDaily bump.
GCC Administrator [Sun, 17 Sep 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r252889

7 years agobackport: re PR target/82112 (internal compiler error: in fold_convert_loc, at fold...
Jakub Jelinek [Sat, 16 Sep 2017 18:40:37 +0000 (20:40 +0200)] 
backport: re PR target/82112 (internal compiler error: in fold_convert_loc, at fold-const.c:2262)

Backported from mainline
2017-09-12  Jakub Jelinek  <jakub@redhat.com>

PR target/82112
* gcc.target/powerpc/pr82112.c: New test.
* g++.dg/ext/altivec-18.C: New test.

From-SVN: r252887

7 years agobackport: re PR target/82112 (internal compiler error: in fold_convert_loc, at fold...
Jakub Jelinek [Sat, 16 Sep 2017 18:39:47 +0000 (20:39 +0200)] 
backport: re PR target/82112 (internal compiler error: in fold_convert_loc, at fold-const.c:2262)

Backported from mainline
2017-09-12  Jakub Jelinek  <jakub@redhat.com>

PR target/82112
* c-common.c (sync_resolve_size): Instead of c_dialect_cxx ()
assertion check that in the condition.
(get_atomic_generic_size): Likewise.  Before testing if parameter
has pointer type, if it has array type, call for C++
default_conversion to perform array-to-pointer conversion.

* c-c++-common/pr82112.c: New test.
* gcc.dg/pr82112.c: New test.

From-SVN: r252886

7 years agobackport: re PR c/81687 (Compiler drops label in OpenMP region)
Jakub Jelinek [Sat, 16 Sep 2017 18:38:53 +0000 (20:38 +0200)] 
backport: re PR c/81687 (Compiler drops label in OpenMP region)

Backported from mainline
2017-08-09  Jakub Jelinek  <jakub@redhat.com>

PR c/81687
* omp-low.c (omp_copy_decl): Don't remap FORCED_LABEL or DECL_NONLOCAL
LABEL_DECLs.
* tree-cfg.c (move_stmt_op): Don't adjust DECL_CONTEXT of FORCED_LABEL
or DECL_NONLOCAL labels.
(move_stmt_r) <case GIMPLE_LABEL>: Adjust DECL_CONTEXT of FORCED_LABEL
or DECL_NONLOCAL labels here.

* testsuite/libgomp.c/pr81687-1.c: New test.
* testsuite/libgomp.c/pr81687-2.c: New test.

From-SVN: r252885

7 years agobackport: re PR target/81621 (ICE in delete_insn, at cfgrtl.c:167 with s390x cross...
Jakub Jelinek [Sat, 16 Sep 2017 18:38:01 +0000 (20:38 +0200)] 
backport: re PR target/81621 (ICE in delete_insn, at cfgrtl.c:167 with s390x cross compiler)

Backported from mainline
2017-08-03  Jakub Jelinek  <jakub@redhat.com>

PR target/81621
* bb-reorder.c (pass_partition_blocks::execute): Return TODO_df_finish
after setting changeable df flags.

* gcc.dg/pr81621.c: New test.

From-SVN: r252884

7 years agobackport: re PR middle-end/81052 (ICE in verify_dominators, at dominance.c:1184)
Jakub Jelinek [Sat, 16 Sep 2017 18:37:09 +0000 (20:37 +0200)] 
backport: re PR middle-end/81052 (ICE in verify_dominators, at dominance.c:1184)

Backported from mainline
2017-08-03  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/81052
* omp-low.c (diagnose_sb_0): Handle flag_openmp_simd like flag_openmp.
(pass_diagnose_omp_blocks::gate): Enable also for flag_openmp_simd.

* c-c++-common/pr81052.c: New test.

From-SVN: r252883

7 years agobackport: re PR c/45784 (gcc OpenMP - error: invalid controlling predicate)
Jakub Jelinek [Sat, 16 Sep 2017 18:36:03 +0000 (20:36 +0200)] 
backport: re PR c/45784 (gcc OpenMP - error: invalid controlling predicate)

Backported from mainline
2017-07-27  Jakub Jelinek  <jakub@redhat.com>

PR c/45784
* c-omp.c (c_finish_omp_for): If the condition is wrapped in
rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
new COMPOUND_EXPRs around the rhs of the comparison.

* testsuite/libgomp.c/pr45784.c: New test.
* testsuite/libgomp.c++/pr45784.C: New test.

From-SVN: r252882

7 years agobackport: re PR target/81766 (ICE in maybe_add_or_update_dep_1, at sched-deps.c:924...
Jakub Jelinek [Sat, 16 Sep 2017 18:35:03 +0000 (20:35 +0200)] 
backport: re PR target/81766 (ICE in maybe_add_or_update_dep_1, at sched-deps.c:924 caused by r250815)

Backported from mainline
2017-08-08  Richard Biener  <rguenther@suse.de>

PR middle-end/81766
* function.c (thread_prologue_and_epilogue_insns): Restore
behavior of always calling find_many_sub_basic_blocks on
the inserted prologue.

* gcc.target/i386/pr81766.c: New testcase.

2017-08-02  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/79499
* function.c (thread_prologue_and_epilogue_insns): Determine blocks
for find_many_sub_basic_blocks bitmap by looking up BLOCK_FOR_INSN
of first NONDEBUG_INSN_P in each of the split_prologue_seq and
prologue_seq sequences - if any.

* gcc.dg/pr79499.c: New test.

From-SVN: r252881

7 years agore PR libquadmath/65757 (gfortran gives incorrect result for anint with real*16 argument)
Jakub Jelinek [Sat, 16 Sep 2017 18:33:53 +0000 (20:33 +0200)] 
re PR libquadmath/65757 (gfortran gives incorrect result for anint with real*16 argument)

PR libquadmath/65757
* math/roundq.c: Cherry-pick upstream glibc 2015-04-28 change.

From-SVN: r252880

7 years agobackport: re PR c++/80984 (ICE with label/variable ambiguity)
Jakub Jelinek [Sat, 16 Sep 2017 18:33:01 +0000 (20:33 +0200)] 
backport: re PR c++/80984 (ICE with label/variable ambiguity)

Backported from mainline
2017-06-13  Jakub Jelinek  <jakub@redhat.com>

PR c++/80984
* cp-gimplify.c (cp_genericize): Only look for VAR_DECLs in
BLOCK_VARS (outer) chain.
(cxx_omp_const_qual_no_mutable): Likewise.

* g++.dg/opt/nrv18.C: New test.

From-SVN: r252879

7 years agobackport: re PR c++/81154 (OpenMP with shared variable in a template class crash)
Jakub Jelinek [Sat, 16 Sep 2017 18:31:58 +0000 (20:31 +0200)] 
backport: re PR c++/81154 (OpenMP with shared variable in a template class crash)

Backported from mainline
2017-06-21  Jakub Jelinek  <jakub@redhat.com>

PR c++/81154
* semantics.c (handle_omp_array_sections_1, finish_omp_clauses):
Complain about t not being a variable if t is OVERLOAD even
when processing_template_decl.

* g++.dg/gomp/pr81154.C: New test.

From-SVN: r252878

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

From-SVN: r252867

7 years agoBackport r251049
Martin Liska [Fri, 15 Sep 2017 14:11:27 +0000 (16:11 +0200)] 
Backport r251049

2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-08-11  Martin Liska  <mliska@suse.cz>

PR tree-opt/79987
* tree-chkp.c (chkp_get_bounds_for_decl_addr): Do not instrument
variables of void type.
2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-08-11  Martin Liska  <mliska@suse.cz>

PR tree-opt/79987
* gcc.target/i386/mpx/pr79987.c: New test.

From-SVN: r252819

7 years agoBackport r249728
Martin Liska [Fri, 15 Sep 2017 12:14:40 +0000 (14:14 +0200)] 
Backport r249728

2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-06-28  Martin Liska  <mliska@suse.cz>

PR sanitizer/81224
* asan.c (instrument_derefs): Bail out inner references
that are hard register variables.
2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-06-28  Martin Liska  <mliska@suse.cz>

PR sanitizer/81224
* gcc.dg/asan/pr81224.c: New test.

From-SVN: r252813

7 years agoBackport r251530
Martin Liska [Fri, 15 Sep 2017 12:14:19 +0000 (14:14 +0200)] 
Backport r251530

2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-08-30  Martin Liska  <mliska@suse.cz>

PR inline-asm/82001
* ipa-icf-gimple.c (func_checker::compare_tree_list_operand):
Rename to ...
(func_checker::compare_asm_inputs_outputs): ... this function.
(func_checker::compare_gimple_asm): Use the function to compare
also ASM constrains.
* ipa-icf-gimple.h: Rename the function.
2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-08-30  Martin Liska  <mliska@suse.cz>

PR inline-asm/82001
* gcc.dg/ipa/pr82001.c: New test.

From-SVN: r252812

7 years agoBackport r251020
Martin Liska [Fri, 15 Sep 2017 12:14:01 +0000 (14:14 +0200)] 
Backport r251020

2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-08-10  Martin Liska  <mliska@suse.cz>

PR c++/81355
* c-attribs.c (handle_target_attribute):
Report warning for an empty string argument of target attribute.
2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-08-10  Martin Liska  <mliska@suse.cz>

PR c++/81355
* g++.dg/other/pr81355.C: New test.

From-SVN: r252811

7 years agoBackport r250951
Martin Liska [Fri, 15 Sep 2017 12:13:42 +0000 (14:13 +0200)] 
Backport r250951

2017-09-15  Martin Liska  <mliska@suse.cz>

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

PR tree-opt/81696
* ipa-icf-gimple.c (func_checker::compare_cst_or_decl): Consider
LABEL_DECLs that can be from a different function.
2017-09-15  Martin Liska  <mliska@suse.cz>

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

PR tree-opt/81696
* gcc.dg/ipa/pr81696.c: New test.

From-SVN: r252810

7 years agoBackport r250336
Martin Liska [Fri, 15 Sep 2017 12:13:21 +0000 (14:13 +0200)] 
Backport r250336

2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-07-19  Martin Liska  <mliska@suse.cz>

PR sanitizer/63361
* c-c++-common/ubsan/float-cast-overflow-1.c: Add either
-ffloat-store or -mieee for targets that need it.

From-SVN: r252809

7 years agoBackport r249735
Martin Liska [Fri, 15 Sep 2017 12:13:04 +0000 (14:13 +0200)] 
Backport r249735

2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-06-28  Martin Liska  <mliska@suse.cz>

PR ipa/81128
* ipa-visibility.c (non_local_p): Handle visibility.
2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-06-28  Martin Liska  <mliska@suse.cz>

PR ipa/81128
* c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
to a function declaration.
2017-09-15  Martin Liska  <mliska@suse.cz>

Backport from mainline
2017-06-28  Martin Liska  <mliska@suse.cz>

PR ipa/81128
* gcc.target/i386/pr81128.c: New test.

From-SVN: r252808

7 years agoDaily bump.
GCC Administrator [Fri, 15 Sep 2017 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r252776

7 years agoDaily bump.
GCC Administrator [Thu, 14 Sep 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r252741

7 years agoFix libstdc++ tests using invalid effective-target
Jonathan Wakely [Wed, 13 Sep 2017 15:28:18 +0000 (16:28 +0100)] 
Fix libstdc++ tests using invalid effective-target

* testsuite/20_util/reference_wrapper/80504.cc: Do not use invalid
effective-target.
* testsuite/22_locale/conversions/buffer/2.cc: Likewise.
* testsuite/28_regex/basic_regex/ctors/basic/iter.cc: Likewise. Fix
use of test_container.

From-SVN: r252093

7 years agoPR libstdc++/81468 constrain std::chrono::time_point constructor
Jonathan Wakely [Wed, 13 Sep 2017 15:28:12 +0000 (16:28 +0100)] 
PR libstdc++/81468 constrain std::chrono::time_point constructor

PR libstdc++/81468
* include/std/chrono (time_point(const time_point<_Dur2>&)): Add
missing constraint from LWG DR 1177.
* testsuite/20_util/duration/cons/dr1177.cc: New.
* testsuite/20_util/time_point/cons/81468.cc: New.
* testsuite/20_util/duration/literals/range.cc: Update dg-error line.

From-SVN: r252092

7 years agoFix broken URLs in libstdc++ API docs
Jonathan Wakely [Wed, 13 Sep 2017 10:22:50 +0000 (11:22 +0100)] 
Fix broken URLs in libstdc++ API docs

* doc/doxygen/mainpage.html: Fix broken URLs.

From-SVN: r252073

7 years agoPR libstdc++/81835 fix broken URLs in libstdc++ docs
Jonathan Wakely [Wed, 13 Sep 2017 10:10:44 +0000 (11:10 +0100)] 
PR libstdc++/81835 fix broken URLs in libstdc++ docs

PR libstdc++/81835
* doc/xml/manual/extensions.xml: Replace unstable URL.
* doc/html/manual/ext_demangling.html: Regenerate.
* libsupc++/cxxabi.h (__cxa_demangle): Fix broken URL.

From-SVN: r252069

7 years agoDaily bump.
GCC Administrator [Wed, 13 Sep 2017 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r252048

7 years agobackport: re PR target/81833 (PowerPC: VSX: Miscompiles ffmpeg's scalarproduct_int16_...
Bill Schmidt [Tue, 12 Sep 2017 21:07:30 +0000 (21:07 +0000)] 
backport: re PR target/81833 (PowerPC: VSX: Miscompiles ffmpeg's scalarproduct_int16_vsx at -O1)

[gcc]

2017-09-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

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

PR target/81833
* config/rs6000/altivec.md (altivec_vsum2sws): Convert from a
define_insn to a define_expand.
(altivec_vsum2sws_direct): New define_insn.
(altivec_vsumsws): Convert from a define_insn to a define_expand.

[gcc/testsuite]

2017-09-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

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

PR target/81833
* gcc.target/powerpc/pr81833-1.c: New file.
* gcc.target/powerpc/pr81833-2.c: New file.

From-SVN: r252044

7 years agoDaily bump.
GCC Administrator [Tue, 12 Sep 2017 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251993

7 years agoxtensa: fix PR target/82181
Max Filippov [Mon, 11 Sep 2017 21:53:38 +0000 (21:53 +0000)] 
xtensa: fix PR target/82181

2017-09-11  Max Filippov  <jcmvbkbc@gmail.com>
gcc/
Backport from mainline
* config/xtensa/xtensa.c (xtensa_mem_offset): Check that both
words of DImode object are reachable by xtensa_uimm8x4 access.

From-SVN: r251990

7 years agoPR c++/81852 define feature-test macro for -fthreadsafe-statics
Jonathan Wakely [Mon, 11 Sep 2017 10:44:11 +0000 (11:44 +0100)] 
PR c++/81852 define feature-test macro for -fthreadsafe-statics

gcc/c-family:

PR c++/81852
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.

gcc/testsuite:

PR c++/81852
* g++.dg/cpp1y/feat-cxx11.C: Check __cpp_threadsafe_static_init.
* g++.dg/cpp1y/feat-cxx14.C: Likewise.
* g++.dg/cpp1y/feat-cxx98.C: Likewise.
* g++.dg/cpp1y/feat-neg.C: Likewise.

From-SVN: r251975

7 years agoDaily bump.
GCC Administrator [Mon, 11 Sep 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251953

7 years agoDaily bump.
GCC Administrator [Sun, 10 Sep 2017 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251942

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

From-SVN: r251914

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

From-SVN: r251858

7 years agox86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Replace 'struct ucontext' with ucontext_t.
Matthias Klose [Thu, 7 Sep 2017 07:22:07 +0000 (07:22 +0000)] 
x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Replace 'struct ucontext' with ucontext_t.

2017-09-07  Matthias Klose  <doko@ubuntu.com>

        * include/x86_64-signal.h (HANDLE_DIVIDE_OVERFLOW): Replace
        'struct ucontext' with ucontext_t.
        * include/i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Likewise.
        * include/s390-signal.h (HANDLE_DIVIDE_OVERFLOW): Likewise.

From-SVN: r251832

7 years agoasan_linux.cc: Include <signal.h>
Matthias Klose [Thu, 7 Sep 2017 07:18:57 +0000 (07:18 +0000)] 
asan_linux.cc: Include <signal.h>

2017-09-07  Matthias Klose  <doko@ubuntu.com>

        * asan/asan_linux.cc: Include <signal.h>

From-SVN: r251830

7 years agobackport: re PR sanitizer/81066 (sanitizer_stoptheworld_linux_libcdep.cc:276:22:...
Matthias Klose [Thu, 7 Sep 2017 07:17:17 +0000 (07:17 +0000)] 
backport: re PR sanitizer/81066 (sanitizer_stoptheworld_linux_libcdep.cc:276:22: error: aggregate ‘sigaltstack handler_stack’ has incomplete type and cannot be defined)

2017-09-07  Matthias Klose  <doko@ubuntu.com>

        Backported from mainline
        2017-07-14  Jakub Jelinek  <jakub@redhat.com>

        PR sanitizer/81066
        * sanitizer_common/sanitizer_linux.h: Cherry-pick upstream r307969.
        * sanitizer_common/sanitizer_linux.cc: Likewise.
        * sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc: Likewise.
        * tsan/tsan_platform_linux.cc: Likewise.

From-SVN: r251829

7 years agoDaily bump.
GCC Administrator [Thu, 7 Sep 2017 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251822

7 years agobackport: re PR tree-optimization/81987 (ICE in verify_ssa with -O3 -march=skylake...
Bill Schmidt [Wed, 6 Sep 2017 18:48:50 +0000 (18:48 +0000)] 
backport: re PR tree-optimization/81987 (ICE in verify_ssa with -O3 -march=skylake-avx512)

[gcc]

2017-09-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline:
2017-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/81987
* gimple-ssa-strength-reduction.c (insert_initializers): Don't
insert an initializer in a location not dominated by the stride
definition.

[gcc/testsuite]

2017-09-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline:
2017-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

PR tree-optimization/81987
* g++.dg/torture/pr81987.C: New file.

From-SVN: r251817

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

From-SVN: r251747

7 years agobackport: re PR tree-optimization/81503 (Wrong code at -O2)
Bill Schmidt [Tue, 5 Sep 2017 21:52:01 +0000 (21:52 +0000)] 
backport: re PR tree-optimization/81503 (Wrong code at -O2)

[gcc]

2017-09-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2017-08-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
    Jakub Jelinek  <jakub@redhat.com>
    Richard Biener  <rguenther@suse.de>

PR tree-optimization/81503
* gimple-ssa-strength-reduction.c (replace_mult_candidate): Ensure
folded constant fits in the target type; reorder tests for clarity.

[gcc/testsuite]

2017-09-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

Backport from mainline
2017-08-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
    Jakub Jelinek  <jakub@redhat.com>
    Richard Biener  <rguenther@suse.de>

PR tree-optimization/81503
* gcc.c-torture/execute/pr81503.c: New file.

From-SVN: r251745

7 years agoDaily bump.
GCC Administrator [Tue, 5 Sep 2017 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251686

7 years agoPR libstdc++/81751 don't call fflush(NULL)
Jonathan Wakely [Mon, 4 Sep 2017 17:09:05 +0000 (18:09 +0100)] 
PR libstdc++/81751 don't call fflush(NULL)

Backport from mainline
2017-08-09  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/79820
PR libstdc++/81751
* config/io/basic_file_stdio.cc (sys_open(FILE*, ios_base::openmode)):
Call fflush on the stream instead of calling sync() while _M_cfile is
null. Restore original value of errno.
* testsuite/ext/stdio_filebuf/char/79820.cc: New.
* testsuite/ext/stdio_filebuf/char/81751.cc: New.

From-SVN: r251680

7 years agoPR libstdc++/53984 handle exceptions in basic_istream::sentry
Jonathan Wakely [Mon, 4 Sep 2017 17:09:01 +0000 (18:09 +0100)] 
PR libstdc++/53984 handle exceptions in basic_istream::sentry

Backport from mainline
2017-07-25  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/53984
* include/bits/basic_ios.h (basic_ios::_M_setstate): Adjust comment.
* include/bits/istream.tcc (basic_istream::sentry): Handle exceptions
during construction.
* include/std/istream: Adjust comments for formatted input functions
and unformatted input functions.
* testsuite/27_io/basic_fstream/53984.cc: New.
* testsuite/27_io/basic_istream/sentry/char/53984.cc: New.

From-SVN: r251679

7 years agoPR libstdc++/81017 add noexcept to std::function move operations
Jonathan Wakely [Mon, 4 Sep 2017 17:08:56 +0000 (18:08 +0100)] 
PR libstdc++/81017 add noexcept to std::function move operations

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

PR libstdc++/81017
* include/std/functional (function::function(function&&))
(function::operator=(function&&)): Add noexcept.
* testsuite/20_util/function/assign/move.cc: Check for noexcept.
* testsuite/20_util/function/cons/move.cc: Likewise.

From-SVN: r251678

7 years agoAdd noexcept to shared_ptr owner comparisons (LWG 2873)
Jonathan Wakely [Mon, 4 Sep 2017 17:08:51 +0000 (18:08 +0100)] 
Add noexcept to shared_ptr owner comparisons (LWG 2873)

Backport from mainline
2017-06-05  Jonathan Wakely  <jwakely@redhat.com>

* include/bits/shared_ptr_base.h (__shared_ptr::owner_before)
(__weak_ptr::owner_before, _Sp_owner_less::operator()): Add noexcept
specifiers as per LWG 2873 and LWG 2942.
* testsuite/20_util/owner_less/noexcept.cc: New.
* testsuite/20_util/shared_ptr/observers/owner_before.cc: Test
noexcept guarantees.
* testsuite/20_util/weak_ptr/observers/owner_before.cc: Likewise.

From-SVN: r251677

7 years agoPR c++/82039 suppress -Wzero-as-null-pointer-constant warning
Jonathan Wakely [Mon, 4 Sep 2017 16:41:38 +0000 (17:41 +0100)] 
PR c++/82039 suppress -Wzero-as-null-pointer-constant warning

Backport from mainline
2017-08-31  Jonathan Wakely  <jwakely@redhat.com>

PR c++/82039
* include/ext/new_allocator.h (__gnu_cxx::new_allocator::allocate):
Adjust null pointer constant to avoid warning.

From-SVN: r251672

7 years agoPR libstdc++/81891 fix double-free in hashtable constructor
Jonathan Wakely [Mon, 4 Sep 2017 16:41:34 +0000 (17:41 +0100)] 
PR libstdc++/81891 fix double-free in hashtable constructor

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

PR libstdc++/81891
* include/bits/hashtable.h (_Hashtable(_InputIterator, _InputIterator,
size_type, const _H1&, const _H2&, const _Hash&, const _Equal&,
const _ExtractKey&, const allocator_type&)): Let destructor do clean
up if an exception is thrown.
* testsuite/23_containers/unordered_map/cons/81891.cc: New.

From-SVN: r251671

7 years agoPR libstdc++/81599 fix typo in Doxygen comments
Jonathan Wakely [Mon, 4 Sep 2017 16:41:29 +0000 (17:41 +0100)] 
PR libstdc++/81599 fix typo in Doxygen comments

Backport from mainline
2017-07-31  Marek Polacek  <polacek@redhat.com>

PR libstdc++/81599
* include/bits/stl_stack.h: Fix typo.

From-SVN: r251670

7 years agoPR libstdc++/81338 correctly manage string capacity
Jonathan Wakely [Mon, 4 Sep 2017 16:41:25 +0000 (17:41 +0100)] 
PR libstdc++/81338 correctly manage string capacity

Backport from mainline
2017-07-10  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/81338
* include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI] (basic_string):
Declare basic_stringbuf to be a friend.
* include/bits/sstream.tcc (basic_stringbuf::overflow)
[_GLIBCXX_USE_CXX11_ABI]: Use unused capacity before reallocating.
* include/std/sstream (basic_stringbuf::__xfer_bufptrs): Update string
length to buffer length.
* testsuite/27_io/basic_stringstream/assign/81338.cc: New.

From-SVN: r251669

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

From-SVN: r251630

7 years agoDaily bump.
GCC Administrator [Sun, 3 Sep 2017 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251621

7 years agobackport: re PR fortran/81770 (Bogus warning: Pointer in pointer assignment might...
Janus Weil [Sat, 2 Sep 2017 20:13:49 +0000 (22:13 +0200)] 
backport: re PR fortran/81770 (Bogus warning: Pointer in pointer assignment might outlive the pointer target)

2017-09-02  Janus Weil  <janus@gcc.gnu.org>

Backport from trunk
PR fortran/81770
* expr.c (gfc_check_pointer_assign): Improve the check whether pointer
may outlive pointer target.

2017-09-02  Janus Weil  <janus@gcc.gnu.org>

Backport from trunk
PR fortran/81770
* gfortran.dg/warn_target_lifetime_3.f90: Fix a typo.
* gfortran.dg/warn_target_lifetime_4.f90: New testcase.

From-SVN: r251620

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

From-SVN: r251614

7 years agoMake std::scoped_allocator_adaptor's OUTERMOST recursive
Jonathan Wakely [Fri, 1 Sep 2017 12:15:44 +0000 (13:15 +0100)] 
Make std::scoped_allocator_adaptor's OUTERMOST recursive

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

* doc/xml/manual/status_cxx2011.xml: Update status.
* doc/html/manual/status.html: Regenerate.
* include/std/scoped_allocator (__outer_allocator_t, __outermost_type):
New helpers for recursive OUTERMOST.
(__outermost): Use __outermost_type::_S_outermost.
(__do_outermost, scoped_allocator_adaptor::__outermost_type): Remove.
(scoped_allocator_adaptor::__outermost_alloc_traits): Use new
__outermost_type helper.
(scoped_allocator_adaptor::_Constructible): New alias template.
(scoped_allocator_adaptor::scoped_allocator_adaptor<_Outer2>):
Constrain template constructors.
* testsuite/20_util/scoped_allocator/3.cc: New test.
* testsuite/20_util/scoped_allocator/outermost.cc: New test.

From-SVN: r251590

7 years agoDaily bump.
GCC Administrator [Fri, 1 Sep 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251577

7 years agoDaily bump.
GCC Administrator [Thu, 31 Aug 2017 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251550

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

From-SVN: r251441

7 years agoDaily bump.
GCC Administrator [Tue, 29 Aug 2017 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251392

7 years agoDaily bump.
GCC Administrator [Mon, 28 Aug 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251370

7 years agoDaily bump.
GCC Administrator [Sun, 27 Aug 2017 00:16:28 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251364

7 years agoDaily bump.
GCC Administrator [Sat, 26 Aug 2017 00:16:28 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251359

7 years agoDaily bump.
GCC Administrator [Fri, 25 Aug 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251343

7 years agoDaily bump.
GCC Administrator [Thu, 24 Aug 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251322

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

From-SVN: r251297

7 years agobackport: re PR target/80210 (ICE in in extract_insn, at recog.c:2311 on ppc64 for...
Peter Bergner [Tue, 22 Aug 2017 20:08:51 +0000 (15:08 -0500)] 
backport: re PR target/80210 (ICE in in extract_insn, at recog.c:2311 on ppc64 for with __builtin_pow)

gcc/
Backport from mainline
2017-08-17  Peter Bergner  <bergner@vnet.ibm.com>

PR target/80210
* config/rs6000/rs6000.c (rs6000_activate_target_options): New function.
(rs6000_set_current_function): Rewrite function to use it.

gcc/testsuite/
Backport from mainline
2017-08-17  Peter Bergner  <bergner@vnet.ibm.com>

PR target/80210
* gcc.target/powerpc/pr80210.c: New test.

From-SVN: r251291

7 years agobackport: re PR lto/81487 ([mingw32] ld.exe: error: asprintf failed)
Georg-Johann Lay [Tue, 22 Aug 2017 10:32:36 +0000 (10:32 +0000)] 
backport: re PR lto/81487 ([mingw32] ld.exe: error: asprintf failed)

lto-plugin/
Backport from 2017-07-26 gcc-7-branch r250562.
PR lto/81487
* lto-plugin.c (claim_file_handler): Use xasprintf instead of
asprintf.
[hi!=0]: Swap hi and lo arguments supplied to xasprintf.
gcc/
Backport from 2017-07-26 gcc-7-branch r250562.
PR 81487
* tree-ssa-structalias.c (alias_get_name): Use xasprintf instead
of asprintf.

From-SVN: r251272

7 years agobackport: re PR rtl-optimization/75964 (insn combiner removes comparison after ABS)
Georg-Johann Lay [Tue, 22 Aug 2017 10:07:51 +0000 (10:07 +0000)] 
backport: re PR rtl-optimization/75964 (insn combiner removes comparison after ABS)

gcc/
Backport from 2017-05-06 trunk r247719.
PR rtl-optimization/75964
* simplify-rtx.c (simplify_const_relational_operation): Remove
invalid handling of comparisons of integer ABS.
gcc/testsuite/
Backport from 2017-05-06 trunk r247719.
PR rtl-optimization/75964
* gcc.dg/torture/pr75964.c: New test.

From-SVN: r251271

7 years agobackport: re PR target/81305 ([avr] avrtiny uses LDS for SREG in ISR routines which...
Georg-Johann Lay [Tue, 22 Aug 2017 10:01:38 +0000 (10:01 +0000)] 
backport: re PR target/81305 ([avr] avrtiny uses LDS for SREG in ISR routines which is out of range of LDS.)

gcc/
Backport from 2017-07-05 trunk r249995.
PR target/81305
* config/avr/avr.c (avr_out_movhi_mr_r_xmega) [CONSTANT_ADDRESS_P]:
Don't depend on "optimize > 0".
(out_movhi_r_mr, out_movqi_mr_r): Same.
(out_movhi_mr_r, out_movqi_r_mr): Same.
(avr_address_cost) [CONSTANT_ADDRESS_P]: Don't depend cost for
io_address_operand on "optimize > 0".
gcc/testsuite/
Backport from 2017-07-05 trunk r249995, r249996.
PR target/81305
* gcc.target/avr/isr-test.h: New file.
* gcc.target/avr/torture/isr-01-simple.c: New test.
* gcc.target/avr/torture/isr-02-call.c: New test.
* gcc.target/avr/torture/isr-03-fixed.c: New test.

From-SVN: r251270

7 years agobackport: re PR target/79883 (avr i18n: untranslated "interrupt" or "signal")
Georg-Johann Lay [Tue, 22 Aug 2017 09:48:48 +0000 (09:48 +0000)] 
backport: re PR target/79883 (avr i18n: untranslated "interrupt" or "signal")

gcc/
Backport from 2016-06-15 trunk r237486.
Backport from 2017-07-12 trunk r250156.
PR target/79883
PR target/67353
* config/avr/avr.c (avr_set_current_function): Warn misspelled ISR
only if -Wmisspelled-isr is on.  In diagnostic messages: Quote
keywords and (parts of) identifiers.
[WITH_AVRLIBC]: Warn functions named "ISR", "SIGNAL" or "INTERUPT".
* doc/invoke.texi (AVR Options) <-Wmisspelled-isr>: Document.

From-SVN: r251269

7 years agobackport: re PR target/80462 ([avr] Incorrect "warning: uninitialized variable 'xxx...
Georg-Johann Lay [Tue, 22 Aug 2017 09:29:30 +0000 (09:29 +0000)] 
backport: re PR target/80462 ([avr] Incorrect "warning: uninitialized variable 'xxx' put into program memory area" for identical strings)

gcc/
Backport from 2017-04-19 trunk r246997.
PR target/80462
* config/avr/avr.c (tree.h): Include it.
(hash-table.h): Include it.
(hash-set.h): Include it.
(symtab.h): Include it.
(inchash.h): Include it.
(function.h): Include it.
(hash-map.h): Include it.
(plugin-api.h): Include it.
(ipa-ref.h): Include it.
(cgraph.h): Include it.
(avr_encode_section_info): Don't warn for uninitialized progmem
variable if it's just an alias.

Backport from 2017-07-12 trunk r250151.
PR target/81407
* config/avr/avr.c (avr_encode_section_info)
[progmem && !TREE_READONLY]: Error if progmem object needs
constructing.

From-SVN: r251267

7 years agobackport: re PR target/81910 ([avr] ICE with "address" attribute on type)
Georg-Johann Lay [Tue, 22 Aug 2017 08:40:15 +0000 (08:40 +0000)] 
backport: re PR target/81910 ([avr] ICE with "address" attribute on type)

gcc/
Backport from 2017-08-22 trunk r251256.
PR target/81910
* config/avr/avr.c (avr_handle_addr_attribute): Early return if
not VAR_P. Filter attribute warnings with OPT_Wattributes.
(avr_attribute_table) <io, io_low, address>: Initialize
.decl_required with true.

From-SVN: r251261

7 years agoDaily bump.
GCC Administrator [Tue, 22 Aug 2017 00:16:15 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251250

7 years agoDaily bump.
GCC Administrator [Mon, 21 Aug 2017 00:16:32 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251212

7 years agoDaily bump.
GCC Administrator [Sun, 20 Aug 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r251202