]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
8 years ago2017-04-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
thopre01 [Thu, 6 Apr 2017 16:26:39 +0000 (16:26 +0000)] 
2017-04-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/
    PR target/80082
    * config/arm/arm-protos.h (FL_LPAE): Define macro.
    (FL_FOR_ARCH7VE): Add FL_LPAE.
    (arm_arch_lpae): Declare extern.
    * config/arm/arm.c (arm_arch_lpae): Declare.
    (arm_option_override): Define arm_arch_lpae.
    * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
    arm_arch_lpae.

    gcc/testsuite/
    PR target/80082
    * gcc.target/arm/atomic_loaddi_10.c: New testcase.
    * gcc.target/arm/atomic_loaddi_11.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246734 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Thu, 6 Apr 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246723 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Wed, 5 Apr 2017 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246697 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Tue, 4 Apr 2017 00:16:15 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246668 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[gcc]
meissner [Mon, 3 Apr 2017 22:57:32 +0000 (22:57 +0000)] 
[gcc]
2017-04-03  Michael Meissner  <meissner@linux.vnet.ibm.com>

Back port from the trunk
2017-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/79947
* config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
-mpowerpc-gfxopt.

[gcc/testsuite]
2017-04-03  Michael Meissner  <meissner@linux.vnet.ibm.com>

Back port from the trunk
2017-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/79947
* gcc.target/powerpc/pr79947.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246665 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPR libstdc++/79141
ville [Mon, 3 Apr 2017 21:20:23 +0000 (21:20 +0000)] 
PR libstdc++/79141

Backport from mainline
2017-04-03  Ville Voutilainen  <ville.voutilainen@gmail.com>

PR libstdc++/79141
* include/bits/stl_pair.h (__nonesuch_no_braces): New.
(operator=(typename conditional<
__and_<is_copy_assignable<_T1>,
is_copy_assignable<_T2>>::value,
const pair&, const __nonesuch&>::type)): Change __nonesuch
to __nonesuch_no_braces.
(operator=(typename conditional<
__not_<__and_<is_copy_assignable<_T1>,
is_copy_assignable<_T2>>>::value,
const pair&, const __nonesuch&>::type)): Likewise.
(operator=(typename conditional<
__and_<is_move_assignable<_T1>,
is_move_assignable<_T2>>::value,
pair&&, __nonesuch&&>::type)): Likewise.
* testsuite/20_util/pair/79141.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246663 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago Backport from mainline
bergner [Mon, 3 Apr 2017 17:40:53 +0000 (17:40 +0000)] 
Backport from mainline
2017-04-03  Peter Bergner  <bergner@vnet.ibm.com>

PR target/80246
* gcc.target/powerpc/dfp-builtin-1.c: Require hard_dfp, not
powerpc_vsx_ok.
(std, ld): Limit scan-assembler-times check to lp64.
(stwu, stw, lwz): Add scan-assembler-times check for ilp32.
* gcc.target/powerpc/dfp-builtin-2.c: Require hard_dfp, not
powerpc_vsx_ok.

PR target/80246
* gcc.target/powerpc/pr80246.c: Require hard_dfp.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246659 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Mon, 3 Apr 2017 00:16:18 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246641 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sun, 2 Apr 2017 00:16:14 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246634 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2017-04-01 Paul Thomas <pault@gcc.gnu.org>
pault [Sat, 1 Apr 2017 11:35:14 +0000 (11:35 +0000)] 
2017-04-01  Paul Thomas  <pault@gcc.gnu.org>

Backport from trunk
PR fortran/71838
* symbol.c (check_conflict): A dummy procedure in a submodule,
module procedure is not an error.
(gfc_add_flavor): Ditto.

2017-04-01  Paul Thomas  <pault@gcc.gnu.org>

Backport from trunk
PR fortran/71838
* gfortran.dg/submodule_26.f08 : New test.
* gfortran.dg/submodule_27.f08 : New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246632 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2017-04-01 Paul Thomas <pault@gcc.gnu.org>
pault [Sat, 1 Apr 2017 09:35:52 +0000 (09:35 +0000)] 
2017-04-01  Paul Thomas  <pault@gcc.gnu.org>

Backport from trunk
PR fortran/79676
* module.c (mio_symbol_attribute): Remove reset of the flag
'no_module_procedures'.
(check_for_module_procedures): New function. Move declaration
of 'no_module_procedures' to above it.
(gfc_dump_module): Traverse namespace calling new function.

2017-04-01  Paul Thomas  <pault@gcc.gnu.org>

Backport from trunk
PR fortran/79676
* gfortran.dg/submodule_28.f08 : New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246631 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sat, 1 Apr 2017 00:16:18 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246629 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPR80218: Call CDCE fails to update the block profile
rsandifo [Fri, 31 Mar 2017 11:51:32 +0000 (11:51 +0000)] 
PR80218: Call CDCE fails to update the block profile

tree-call-cdce.c was updating the edge probabilities and counts but
it wasn't updating the corresponding block information.  Among other
things, this tricked the register allocator into thinking that the
libm call was relatively hot and that it wasn't worth assigning
call-clobbered registers to values that were live across the call.
With correct frequency information, the RA instead keeps x in the
first argument register and spills it only around the call.

Although the problem has been around for a long time, it became more
acute (and would only trigger for the first function in the testcase)
after r230488.  Until that patch, the code was specific to calls that
had no lhs, but that we still had to keep for their effect on errno.
After the patch we also used the code for calls with an lhs, provided
that the hardware could calculate the lhs directly.

gcc/
PR tree-optimization/80218
* tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
Update block frequencies and counts.

gcc/testsuite/
PR tree-optimization/80218
* gcc.dg/pr80218.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246614 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Fri, 31 Mar 2017 00:16:19 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246603 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agogcc/
bergner [Thu, 30 Mar 2017 20:06:06 +0000 (20:06 +0000)] 
gcc/
Backport from mainline
2017-03-30  Peter Bergner  <bergner@vnet.ibm.com>

PR target/80246
* config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
(dfp_diex_<mode>): Update mode of operand 1.
* doc/extend.texi (dxex, dxexq): Document change to return type.
(diex, diexq): Document change to argument type.

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

PR target/80246
* gcc.target/powerpc/dfp-builtin-1.c: Remove unneeded dg-skip-if for
Darwin and SPE.
(dxex, dxexq): Update return type.
(diex, diexq): Update argument type.
* gcc.target/powerpc/pr80246.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246595 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Thu, 30 Mar 2017 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246580 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[gcc]
meissner [Wed, 29 Mar 2017 23:15:51 +0000 (23:15 +0000)] 
[gcc]
2017-03-29  Michael Meissner  <meissner@linux.vnet.ibm.com>

Back port from trunk
2017-03-21  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>

PR target/80123
* doc/md.texi (Constraints): Document wA constraint.
* config/rs6000/constraints.md (wA): New.
* config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
(rs6000_init_hard_regno_mode_ok): Init wA constraint.
* config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
* config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.

2017-03-16  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/71294
* config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
SPLAT operation on ISA 2.07 64-bit systems that have direct move,
but no MTVSRDD support, by doing MTVSRD and XXPERMDI.

[gcc/testsuite]
2017-03-29  Michael Meissner  <meissner@linux.vnet.ibm.com>

Back port from trunk
2017-03-16  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/71294
* g++.dg/pr71294.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246577 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2017-03-29 Richard Biener <rguenther@suse.de>
rguenth [Wed, 29 Mar 2017 09:28:46 +0000 (09:28 +0000)] 
2017-03-29  Richard Biener  <rguenther@suse.de>

Backport from mainline
2017-03-28  Richard Biener  <rguenther@suse.de>

PR tree-optimization/78644
* tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
of a simplification result we may not use it at all.

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

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

PR tree-optimization/80181
* tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246561 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Wed, 29 Mar 2017 00:16:15 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246559 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPR libstdc++/80137 use std::nextafter instead of looping
redi [Tue, 28 Mar 2017 17:18:42 +0000 (17:18 +0000)] 
PR libstdc++/80137 use std::nextafter instead of looping

PR libstdc++/80137
* include/bits/random.tcc (generate_canonical): Use std::nextafter
or numeric_limits::epsilon() to reduce out-of-range values.
* testsuite/26_numerics/random/uniform_real_distribution/operators/
64351.cc: Verify complexity requirement is met.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246549 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPR libstdc++/62045 fix O(N) insertion in pd_ds binary heap
redi [Tue, 28 Mar 2017 17:18:37 +0000 (17:18 +0000)] 
PR libstdc++/62045 fix O(N) insertion in pd_ds binary heap

Backport from mainline
2017-03-15  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>

PR libstdc++/62045
* include/ext/pb_ds/qdetail/binary_heap_/binary_heap_.hpp
(is_heap): Remove.
(push_heap): Remove the wrong checking using is_heap.
(make_heap): Remove the assertion using is_heap.
* include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp
(modify): Ditto.
(resize_for_insert_if_needed): Add PB_DS_ASSERT_VALID after
calling make_heap.

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

PR libstdc++/62045
* testsuite/ext/pb_ds/regression/priority_queue_binary_heap-62045.cc:
New test.
* testsuite/ext/pb_ds/regression/priority_queues.cc: Fix copy&paste
error in comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246548 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoEnsure <experimental/iterator> includes <iterator>
redi [Tue, 28 Mar 2017 17:18:31 +0000 (17:18 +0000)] 
Ensure <experimental/iterator> includes <iterator>

Backport from mainline
2017-02-23  Jonathan Wakely  <jwakely@redhat.com>

* include/experimental/iterator: Include <iterator>.
* testsuite/experimental/iterator/requirements.cc: Check for contents
of <iterator>.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246547 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport "Support for Ada on aarch64 with -mabi=ilp32" from trunk
schwab [Tue, 28 Mar 2017 14:22:29 +0000 (14:22 +0000)] 
Backport "Support for Ada on aarch64 with -mabi=ilp32" from trunk

PR ada/80117
* system-linux-aarch64-ilp32.ads: New file.
* gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS_COMMON): Rename
from LIBGNAT_TARGET_PAIRS.
(LIBGNAT_TARGET_PAIRS_32, LIBGNAT_TARGET_PAIRS_64): Define.
(LIBGNAT_TARGET_PAIRS): Use LIBGNAT_TARGET_PAIRS_COMMON, and
LIBGNAT_TARGET_PAIRS_64 or LIBGNAT_TARGET_PAIRS_32 for -mabi=lp64
or -mabi=ilp32, resp.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246536 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR sanitizer/80067
mpolacek [Tue, 28 Mar 2017 08:16:27 +0000 (08:16 +0000)] 
PR sanitizer/80067
* fold-const.c (fold_comparison): Use protected_set_expr_location
instead of SET_EXPR_LOCATION.

* c-c++-common/ubsan/shift-10.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246522 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Tue, 28 Mar 2017 00:16:14 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246515 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[gcc]
meissner [Mon, 27 Mar 2017 19:35:35 +0000 (19:35 +0000)] 
[gcc]
2017-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>

Back port from trunk
2017-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/78543
* config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
HImode and SImode with zero extend to DImode to one insn.
(bswap<mode>2_extenddi): Likewise.
(bswapsi2_extenddi): Likewise.
(bswaphi2_extendsi): Likewise.
(bswaphi2): Combine bswap HImode and SImode into one insn.
Separate memory insns from swapping register.
(bswapsi2): Likewise.
(bswap<mode>2): Likewise.
(bswaphi2_internal): Delete, no longer used.
(bswapsi2_internal): Likewise.
(bswap<mode>2_load): Split bswap HImode/SImode into separate load,
store, and gpr<-gpr swap insns.
(bswap<mode>2_store): Likewise.
(bswaphi2_reg): Register only splitter, combine with the splitter.
(bswaphi2 splitter): Likewise.
(bswapsi2_reg): Likewise.
(bswapsi2 splitter): Likewise.
(bswapdi2): If we have the LDBRX and STDBRX instructions, split
the insns into load, store, and register/register insns.
(bswapdi2_ldbrx): Likewise.
(bswapdi2_load): Likewise.
(bswapdi2_store): Likewise.
(bswapdi2_reg): Likewise.

[gcc/testsuite]
2017-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>

Back port from trunk
2017-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/78543
* gcc.target/powerpc/pr78543.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246509 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport "Require effective target global_constructor for two testcases"
vries [Mon, 27 Mar 2017 15:02:21 +0000 (15:02 +0000)] 
Backport "Require effective target global_constructor for two testcases"

2017-03-27  Tom de Vries  <tom@codesourcery.com>

backport from trunk:
2017-03-24  Tom de Vries  <tom@codesourcery.com>

PR testsuite/80092
* gcc.dg/tls/emutls-2.c:  Add dg-require-effective-target
global_constructor.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246503 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Mon, 27 Mar 2017 00:16:15 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246488 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2017-03-26 Paul Thomas <pault@gcc.gnu.org>
pault [Sun, 26 Mar 2017 20:01:07 +0000 (20:01 +0000)] 
2017-03-26  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/79434
* parse.c (check_component, parse_union): Whitespace.
(set_syms_host_assoc): For a derived type, check if the module
in which it was declared is one of the submodule ancestors. If
it is, make the components public. Otherwise, reset attribute
'host_assoc' and set 'use-assoc' so that encapsulation is
preserved.

2017-03-26  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/79434
* gfortran.dg/submodule_25.f08 : New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246486 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sun, 26 Mar 2017 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246481 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/80180
uros [Sat, 25 Mar 2017 18:10:37 +0000 (18:10 +0000)] 
PR target/80180
* config/i386/i386.c (ix86_expand_builtin)
<IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
flags reg setting and flags reg using instructions.
<IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto.  Use non-flags reg
clobbering instructions to zero extend op2.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246477 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sat, 25 Mar 2017 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246471 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport "Add missing dg-require-effective-target alloca in gcc testsuite"
vries [Fri, 24 Mar 2017 06:46:05 +0000 (06:46 +0000)] 
Backport "Add missing dg-require-effective-target alloca in gcc testsuite"

2017-03-24  Tom de Vries  <tom@codesourcery.com>

backport from trunk:
2017-03-24  Tom de Vries  <tom@codesourcery.com>

PR testsuite/80092
* gcc.dg/torture/pr71881.c: Add dg-require-effective-target alloca.
* gcc.dg/torture/pr78742.c: Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246437 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Fri, 24 Mar 2017 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246430 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Thu, 23 Mar 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246412 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport r246206
marxin [Wed, 22 Mar 2017 14:32:56 +0000 (14:32 +0000)] 
Backport r246206

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

Backport from mainline
2017-03-16  Segher Boessenkool  <segher@kernel.crashing.org>

* gcc.dg/tree-prof/pr66295.c: Skip unless on an x86 target.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246386 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport r246119
marxin [Wed, 22 Mar 2017 14:32:42 +0000 (14:32 +0000)] 
Backport r246119

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

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

PR lto/66295
* multiple_target.c (expand_target_clones): Drop local.local
flag for default implementation.
2017-03-22  Martin Liska  <mliska@suse.cz>

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

PR lto/66295
* gcc.dg/tree-prof/pr66295.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246385 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport r245647
marxin [Wed, 22 Mar 2017 14:32:24 +0000 (14:32 +0000)] 
Backport r245647

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

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

PR lto/79587
* data-streamer-in.c (streamer_read_gcov_count): Remove assert.
* data-streamer-out.c (streamer_write_gcov_count_stream):
Likewise.
* value-prof.c (stream_out_histogram_value): Make assert more
precise based on type of counter.
2017-03-22  Martin Liska  <mliska@suse.cz>

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

PR lto/79587
* gcc.dg/tree-prof/pr79587.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246384 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport r245155
marxin [Wed, 22 Mar 2017 14:31:55 +0000 (14:31 +0000)] 
Backport r245155

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

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

PR lto/66295
* multiple_target.c (create_dispatcher_calls): Redirect edge
from a caller of a dispatcher.
(expand_target_clones): Make the clones local.
(ipa_target_clone): Do both target clones and resolvers.
(ipa_dispatcher_calls): Remove the pass.
(pass_dispatcher_calls::gate): Likewise.
(make_pass_dispatcher_calls): Likewise.
* passes.def (pass_target_clone): Put as very first IPA early
pass.
2017-03-22  Martin Liska  <mliska@suse.cz>

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

PR lto/66295
* gcc.target/i386/mvc9.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246383 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport r246345
marxin [Wed, 22 Mar 2017 10:49:49 +0000 (10:49 +0000)] 
Backport r246345

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

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

PR target/79906
* config/rs6000/rs6000.c (rs6000_inner_target_options): Show
error message instead of an ICE.
2017-03-22  Martin Liska  <mliska@suse.cz>

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

PR target/79906
* g++.dg/ext/mv8.C: Add power* targets.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246364 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport r246321
marxin [Wed, 22 Mar 2017 10:49:24 +0000 (10:49 +0000)] 
Backport r246321

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

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

PR gcov-profile/80081
* Makefile.in: Add gcov-dump and fix installation of gcov-tool.
* doc/gcc.texi: Include gcov-dump stuff.
* doc/gcov-dump.texi: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246363 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport r246316
marxin [Wed, 22 Mar 2017 10:49:03 +0000 (10:49 +0000)] 
Backport r246316

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

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

* gcc.target/i386/pr65044.c: Add '.' in order to catch
apostrophes.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246362 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport r246276
marxin [Wed, 22 Mar 2017 10:47:52 +0000 (10:47 +0000)] 
Backport r246276

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

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

PR middle-end/79753
* tree-chkp.c (chkp_build_returned_bound): Do not build
returned bounds for a LHS that's not a BOUNDED_P type.
2017-03-22  Martin Liska  <mliska@suse.cz>

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

PR middle-end/79753
* gcc.target/i386/mpx/pr79753.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246361 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport r246275
marxin [Wed, 22 Mar 2017 10:47:26 +0000 (10:47 +0000)] 
Backport r246275

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

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

PR target/79769
PR target/79770
* tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
COMPLEX_CST and VECTOR_CST.
2017-03-22  Martin Liska  <mliska@suse.cz>

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

PR target/79769
PR target/79770
* g++.dg/pr79769.C: New test.
* gcc.target/i386/mpx/pr79770.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246360 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport r246129
marxin [Wed, 22 Mar 2017 10:47:06 +0000 (10:47 +0000)] 
Backport r246129

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

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

PR middle-end/79831
* doc/invoke.texi (-Wchkp): Document the option.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246359 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport r246120
marxin [Wed, 22 Mar 2017 10:46:44 +0000 (10:46 +0000)] 
Backport r246120

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

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

PR target/79892
* multiple_target.c (create_dispatcher_calls): Check that
a target can create a function dispatcher.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246358 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport r246098
marxin [Wed, 22 Mar 2017 10:46:27 +0000 (10:46 +0000)] 
Backport r246098

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

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

PR middle-end/78339
* ipa-pure-const.c (warn_function_noreturn): If the declarations
is a CHKP clone, use original declaration.
2017-03-22  Martin Liska  <mliska@suse.cz>

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

PR middle-end/78339
* gcc.target/i386/mpx/pr78339.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246357 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport r246027
marxin [Wed, 22 Mar 2017 10:45:42 +0000 (10:45 +0000)] 
Backport r246027

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

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

        PR target/65705
        PR target/69804
* toplev.c (process_options): Enable MPX with LSAN and UBSAN.
* tree-chkp.c (chkp_walk_pointer_assignments): Verify that
FIELD != NULL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246356 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport r245998
marxin [Wed, 22 Mar 2017 10:44:58 +0000 (10:44 +0000)] 
Backport r245998

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

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

PR tree-optimization/79631
* tree-chkp-opt.c (chkp_is_constant_addr): Call
tree_int_cst_sign_bit just for INTEGER constants.
2017-03-22  Martin Liska  <mliska@suse.cz>

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

PR tree-optimization/79631
* gcc.target/i386/mpx/pr79631.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246355 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport r245997
marxin [Wed, 22 Mar 2017 10:43:59 +0000 (10:43 +0000)] 
Backport r245997

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

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

PR target/65705
PR target/69804
* toplev.c (process_options): Disable -fcheck-pointer-bounds with
sanitizers.
2017-03-22  Martin Liska  <mliska@suse.cz>

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

PR target/65705
PR target/69804
* gcc.target/i386/pr71458.c: Update scanned pattern.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246354 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport r245993
marxin [Wed, 22 Mar 2017 10:43:31 +0000 (10:43 +0000)] 
Backport r245993

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

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

PR ipa/79761
* tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
(chkp_find_bounds_1): Remove gcc_unreachable.
2017-03-22  Martin Liska  <mliska@suse.cz>

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

PR ipa/79761
* g++.dg/pr79761.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246353 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport r245992
marxin [Wed, 22 Mar 2017 10:43:10 +0000 (10:43 +0000)] 
Backport r245992

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

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

* c-ada-spec.c (macro_length): Increment value instead of a pointer.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246352 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport r245870
marxin [Wed, 22 Mar 2017 10:42:58 +0000 (10:42 +0000)] 
Backport r245870

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

Backport from mainline
2017-03-03  Jan Hubicka  <jh@suse.cz>

PR lto/79760
* ipa-devirt.c (maybe_record_node): Properly handle
__cxa_pure_virtual visibility.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246351 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport r245869
marxin [Wed, 22 Mar 2017 10:42:33 +0000 (10:42 +0000)] 
Backport r245869

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

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

PR tree-optimization/79803
* tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
assert.
(pass_loop_prefetch::execute): Disabled optimization if an
assumption about L1 cache size is not met.
2017-03-22  Martin Liska  <mliska@suse.cz>

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

PR tree-optimization/79803
* gcc.dg/tree-ssa/pr79803.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246350 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport r245868
marxin [Wed, 22 Mar 2017 10:41:18 +0000 (10:41 +0000)] 
Backport r245868

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

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

PR rtl-optimization/79574
* gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
(hash_scan_set): Likewise.
(dump_hash_table): Likewise.
(hoist_code): Likewise.
2017-03-22  Martin Liska  <mliska@suse.cz>

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

PR rtl-optimization/79574
* gcc.dg/pr79574-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246349 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport r245531
marxin [Wed, 22 Mar 2017 10:39:31 +0000 (10:39 +0000)] 
Backport r245531

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

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

PR rtl-optimization/79574
* gcse.c (want_to_gcse_p): Prevent integer overflow.
2017-03-22  Martin Liska  <mliska@suse.cz>

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

PR rtl-optimization/79574
* gcc.dg/pr79574.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246348 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport r245532
marxin [Wed, 22 Mar 2017 10:38:15 +0000 (10:38 +0000)] 
Backport r245532

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

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

PR rtl-optimization/79577
* params.def (selsched-max-sched-times): Increase minimum to 1.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246347 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport r237353
marxin [Wed, 22 Mar 2017 10:33:49 +0000 (10:33 +0000)] 
Backport r237353

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

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

PR sanitizer/71458
* toplev.c (process_options): Do not enable -fcheck-pointer-bounds
w/ -fsanitize=bounds.
2017-03-22  Martin Liska  <mliska@suse.cz>

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

PR sanitizer/71458
* gcc.target/i386/pr71458.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246346 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Wed, 22 Mar 2017 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246341 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPR c++/79548 - missing -Wunused-variable on a typedef'd variable in a function template
msebor [Tue, 21 Mar 2017 23:39:12 +0000 (23:39 +0000)] 
PR c++/79548 - missing -Wunused-variable on a typedef'd variable in a function template

gcc/c-family/ChangeLog:

PR c++/79548
* c-common.c (set_underlying_type): Mark type used only when
original del is declared unused.

gcc/testsuite/ChangeLog:

PR c++/79548
* g++.dg/warn/Wunused-var-26.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246336 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/80091
nathan [Tue, 21 Mar 2017 17:40:40 +0000 (17:40 +0000)] 
PR c++/80091
* lambda.c (maybe_generic_this_capture): Capture when fn
is an identifier node.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246329 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/79951
pthaugen [Tue, 21 Mar 2017 16:32:46 +0000 (16:32 +0000)] 
PR target/79951
* config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
for VECTOR_UNIT_VSX_P (<MODE>mode) too.
* gcc.target/powerpc/pr79951.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246327 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[PATCH][GCC][AArch64] Fix incorrect INS in SIMD mov pattern
tnfchris [Tue, 21 Mar 2017 09:14:05 +0000 (09:14 +0000)] 
[PATCH][GCC][AArch64] Fix incorrect INS in SIMD mov pattern

2017-03-21  Tamar Christina  <tamar.christina@arm.com>

* config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
Change ins into fmov.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246307 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Tue, 21 Mar 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246299 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Mon, 20 Mar 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246270 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2017-03-19 Dominique d'Humieres <dominiq@lps.ens.fr>
dominiq [Sun, 19 Mar 2017 09:54:41 +0000 (09:54 +0000)] 
2017-03-19  Dominique d'Humieres  <dominiq@lps.ens.fr>

PR target/71017
* config/i386/cpuid.h: Fix another undefined behavior.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246267 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sun, 19 Mar 2017 00:16:17 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246263 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sat, 18 Mar 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246251 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport <codecvt> fixes from trunk
redi [Fri, 17 Mar 2017 19:28:29 +0000 (19:28 +0000)] 
Backport <codecvt> fixes from trunk

Fix alignment bugs in std::codecvt_utf16

* src/c++11/codecvt.cc (range): Add non-type template parameter and
define oerloaded operators for reading and writing code units.
(range<Elem, false>): Define partial specialization for accessing
wide characters in potentially unaligned byte ranges.
(ucs2_span(const char16_t*, const char16_t*, ...))
(ucs4_span(const char16_t*, const char16_t*, ...)): Change parameters
to range<const char16_t, false> in order to avoid unaligned reads.
(__codecvt_utf16_base<char16_t>::do_out)
(__codecvt_utf16_base<char32_t>::do_out)
(__codecvt_utf16_base<wchar_t>::do_out): Use range specialization for
unaligned data to avoid unaligned writes.
(__codecvt_utf16_base<char16_t>::do_in)
(__codecvt_utf16_base<char32_t>::do_in)
(__codecvt_utf16_base<wchar_t>::do_in): Likewise for writes. Return
error if there are unprocessable trailing bytes.
(__codecvt_utf16_base<char16_t>::do_length)
(__codecvt_utf16_base<char32_t>::do_length)
(__codecvt_utf16_base<wchar_t>::do_length): Pass arguments of type
range<const char16_t, false> to span functions.
* testsuite/22_locale/codecvt/codecvt_utf16/misaligned.cc: New test.

PR libstdc++/79980 fix target type of cast

PR libstdc++/79980
* src/c++11/codecvt.cc (to_integer(codecvt_mode)): Fix target type.

PR libstdc++/80041 fix codecvt_utf16<wchar_t> to use UTF-16 not UTF-8

PR libstdc++/80041
* src/c++11/codecvt.cc (__codecvt_utf16_base<wchar_t>::do_out)
(__codecvt_utf16_base<wchar_t>::do_in): Convert char arguments to
char16_t to work with UTF-16 instead of UTF-8.
* testsuite/22_locale/codecvt/codecvt_utf16/80041.cc: New test.

Fix encoding() and max_length() values for codecvt facets

* src/c++11/codecvt.cc (codecvt<char16_t, char, mbstate_t>)
(codecvt<char32_t, char, mbstate_t>, __codecvt_utf8_base<char16_t>)
(__codecvt_utf8_base<char32_t>, __codecvt_utf8_base<wchar_t>)
(__codecvt_utf16_base<char16_t>, __codecvt_utf16_base<char32_t>)
(__codecvt_utf16_base<wchar_t>, __codecvt_utf8_utf16_base<char16_t>)
(__codecvt_utf8_utf16_base<char32_t>)
(__codecvt_utf8_utf16_base<wchar_t>): Fix do_encoding() and
do_max_length() return values.
* testsuite/22_locale/codecvt/codecvt_utf16/members.cc: New test.
* testsuite/22_locale/codecvt/codecvt_utf8/members.cc: New test.
* testsuite/22_locale/codecvt/codecvt_utf8_utf16/members.cc: New test.

PR libstdc++/79980 fix BOM detection, maxcode checks, UCS2 handling

PR libstdc++/79980
* include/bits/locale_conv.h (__do_str_codecvt): Set __count on
error path.
* src/c++11/codecvt.cc (operator&=, operator|=, operator~): Overloads
for manipulating codecvt_mode values.
(read_utf16_bom): Compare input to BOM constants instead of integral
constants that depend on endianness.  Take mode parameter by
reference and adjust it, to distinguish between no BOM present and
UTF-16BE BOM present.
(ucs4_in, ucs2_span, ucs4_span): Adjust calls to read_utf16_bom.
(surrogates): New enumeration type.
(utf16_in, utf16_out): Add surrogates parameter to choose between
UTF-16 and UCS2 behaviour.
(utf16_span, ucs2_span): Use std::min not std::max.
(ucs2_out): Use std::min not std::max.  Disallow surrogate pairs.
(ucs2_in): Likewise. Adjust calls to read_utf16_bom.
* testsuite/22_locale/codecvt/codecvt_utf16/79980.cc: New test.
* testsuite/22_locale/codecvt/codecvt_utf8/79980.cc: New test.

PR libstdc++/79511 fix endianness of UTF-16 data

PR libstdc++/79511
* src/c++11/codecvt.cc (write_utf16_code_point): Don't write 0xffff
as a surrogate pair.
(__codecvt_utf8_utf16_base<char32_t>::do_in): Use native endianness
for internal representation.
(__codecvt_utf8_utf16_base<wchar_t>::do_in): Likewise.
* testsuite/22_locale/codecvt/codecvt_utf8_utf16/79511.cc: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246246 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoBackport "Print bug url for gcov-dump --help"
vries [Fri, 17 Mar 2017 12:31:49 +0000 (12:31 +0000)] 
Backport "Print bug url for gcov-dump --help"

2017-03-17  Tom de Vries  <tom@codesourcery.com>

* gcov-dump.c (print_usage): Print bug_report_url.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246220 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Fri, 17 Mar 2017 00:16:15 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246215 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2017-03-16 Richard Biener <rguenther@suse.de>
rguenth [Thu, 16 Mar 2017 08:07:29 +0000 (08:07 +0000)] 
2017-03-16  Richard Biener  <rguenther@suse.de>

Backport from mainline
2017-02-28  Richard Biener  <rguenther@suse.de>

PR tree-optimization/79732
* tree-inline.c (expand_call_inline): Handle anonymous
SSA lhs properly when inlining a function without return
value.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246188 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Thu, 16 Mar 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246184 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2017-03-15 Matthias Klose <doko@ubuntu.com>
doko [Wed, 15 Mar 2017 20:52:43 +0000 (20:52 +0000)] 
2017-03-15  Matthias Klose  <doko@ubuntu.com>

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

        * Makefile.in: Install gcov-dump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246175 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR target/80019
uros [Wed, 15 Mar 2017 15:27:28 +0000 (15:27 +0000)] 
PR target/80019
* config/i386/i386.c (ix86_vector_duplicate_value): Create
subreg of inner mode for values already in registers.

testsuite/ChangeLog:

PR target/80019
* gcc.target/i386/pr80019.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246166 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/72775
mpolacek [Wed, 15 Mar 2017 10:22:19 +0000 (10:22 +0000)] 
PR c++/72775
* init.c (perform_member_init): Diagnose member initializer for
flexible array member.

* g++.dg/ext/flexary12.C: Adjust dg-error.
* g++.dg/ext/flexary20.C: New.
* g++.dg/ext/flexary21.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246155 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Wed, 15 Mar 2017 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246148 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoFix libstdc++ reserved names test to pass on AIX
redi [Tue, 14 Mar 2017 20:48:31 +0000 (20:48 +0000)] 
Fix libstdc++ reserved names test to pass on AIX

* testsuite/17_intro/names.cc: Undefine macros that clash with
identifiers in AIX system headers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246142 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago* g++.dg/warn/Wpadded-1.C: Fix for 32-bit target.
mpolacek [Tue, 14 Mar 2017 16:11:23 +0000 (16:11 +0000)] 
* g++.dg/warn/Wpadded-1.C: Fix for 32-bit target.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246135 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/79264
mpolacek [Tue, 14 Mar 2017 16:03:10 +0000 (16:03 +0000)] 
PR c++/79264
* lambda.c (maybe_generic_this_capture): Deal with template-id-exprs.
* semantics.c (finish_member_declaration): Assert class is being
defined.

* g++.dg/cpp1y/pr61636-1.C: Augment.

PR c++/61636
* cp-tree.h (maybe_generic_this_capture): Declare.
* lambda.c (resolvable_dummy_lambda): New, broken out of ...
(maybe_resolve_dummy): ... here.  Call it.
(maybe_generic_this_capture): New.
* parser.c (cp_parser_postfix_expression): Speculatively capture
this in generic lambda in unresolved member function call.
* pt.c (tsubst_copy_and_build): Force hard error from failed
member function lookup in generic lambda.

* g++.dg/cpp1y/pr61636-1.C: New.
* g++.dg/cpp1y/pr61636-2.C: New.
* g++.dg/cpp1y/pr61636-3.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246134 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/79687
mpolacek [Tue, 14 Mar 2017 15:58:39 +0000 (15:58 +0000)] 
PR c++/79687
* init.c (constant_value_1): Break if the variable has a dynamic
initializer.

* g++.dg/expr/ptrmem8.C: New test.
* g++.dg/expr/ptrmem9.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246133 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/79900 - ICE in strip_typedefs
mpolacek [Tue, 14 Mar 2017 15:55:53 +0000 (15:55 +0000)] 
PR c++/79900 - ICE in strip_typedefs
* tree.c (strip_typedefs): Skip the attribute handling if T is
a variant type which hasn't been updated yet.

* g++.dg/warn/Wpadded-1.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246132 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/79962
mpolacek [Tue, 14 Mar 2017 15:53:23 +0000 (15:53 +0000)] 
PR c++/79962
PR c++/79984
* c-common.c (handle_nonnull_attribute): Save the result of default
conversion to the attribute list.

* c-c++-common/nonnull-3.c: New test.
* g++.dg/warn/Wnonnull3.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246131 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoThis showed up in power9 code for __divkf3 software float support and
acsawdey [Tue, 14 Mar 2017 14:43:03 +0000 (14:43 +0000)] 
This showed up in power9 code for __divkf3 software float support and
caused a divd to be emitted where we needed a divdu.

Index: gcc/config/rs6000/rs6000.md
===================================================================
--- gcc/config/rs6000/rs6000.md (revision 246123)
+++ gcc/config/rs6000/rs6000.md (working copy)
@@ -3063,8 +3063,8 @@
    && ! reg_mentioned_p (operands[3], operands[1])
    && ! reg_mentioned_p (operands[3], operands[2])"
   [(set (match_dup 0)
-       (div:GPR (match_dup 1)
-                (match_dup 2)))
+       (udiv:GPR (match_dup 1)
+                 (match_dup 2)))
    (set (match_dup 3)
        (mult:GPR (match_dup 0)
                  (match_dup 2)))

2017-03-14  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>

Backport from mainline
2017-02-28  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>

PR target/79752
        * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
        udiv rather than div since input pattern is unsigned.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246127 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago2017-03-14 Richard Biener <rguenther@suse.de>
rguenth [Tue, 14 Mar 2017 12:57:08 +0000 (12:57 +0000)] 
2017-03-14  Richard Biener  <rguenther@suse.de>

Backport from mainline
2016-05-02  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/80004
PR target/49244
* gimple.c (gimple_builtin_call_types_compatible_p): Allow
char/short arguments promoted to int because of promote_prototypes.

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

PR tree-optimization/79977
* graphite-scop-detection.c (scop_detection::merge_sese):
Handle the case of extra exits to blocks dominating the entry.

* gcc.dg/graphite/pr79977.c: New testcase.

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

PR middle-end/79971
* gimple-expr.c (useless_type_conversion_p): Preserve
TYPE_SATURATING for fixed-point types.

* gcc.dg/fixed-point/pr79971.c: New testcase.

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

PR fortran/79894
* trans.c (gfc_add_modify_loc): Weaken assert.

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

PR c/79756
* c-common.c (c_common_mark_addressable_vec): Look through
C_MAYBE_CONST_EXPR.

* gcc.dg/vector-1.c: New testcase.

2017-02-22  Richard Biener  <rguenther@suse.de>

PR tree-optimization/79666
* tree-vrp.c (extract_range_from_binary_expr_1): Make sure
to not symbolically negate if that may introduce undefined
overflow.

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

2017-02-17  Richard Biener  <rguenther@suse.de>

PR middle-end/79576
* params.def (max-ssa-name-query-depth): Limit to 10.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246122 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Tue, 14 Mar 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246114 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoPR libstdc++/80034
ville [Mon, 13 Mar 2017 19:43:27 +0000 (19:43 +0000)] 
PR libstdc++/80034
* include/bits/list.tcc (merge(list&&)): Use const for the size_t
in the function and in the catch-block, qualify uses of std::distance.
(merge(list&&, _StrictWeakOrdering)): Likewise.
* testsuite/23_containers/list/operations/80034.cc: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246108 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Mon, 13 Mar 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246081 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sun, 12 Mar 2017 00:16:18 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246074 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Sat, 11 Mar 2017 00:16:14 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246061 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago[libstdc++-v3] Fix detection of obsolete isnan
rsandifo [Fri, 10 Mar 2017 12:24:45 +0000 (12:24 +0000)] 
[libstdc++-v3] Fix detection of obsolete isnan

libstdc++-v3 configure checks whether old glibc inline definitions
of isnan would conflict with the libstdc++-v3 definitions and
works around them if so.  But if g++ 6.x build A is used to build
another g++ 6.x B, the configure step for B will pick up the math.h
installed alongside A instead of the glibc version.  configure will
then assume that the workaround isn't necessary, leaving B with a
broken cmath.

isinf already worked around this.  This patch extends the same fix
to isnan.  (Thanks to George for the fix.)

libstdc++-v3/
2017-03-10  George Lander  <george.lander@arm.com>

* acinclude.m4 (glibcxx_cv_obsolete_isnan): Define
_GLIBCXX_INCLUDE_NEXT_C_HEADERS before including math.h.
* configure: Regenerate.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246026 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Fri, 10 Mar 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@246018 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Thu, 9 Mar 2017 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@245984 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR ada/79903
ebotcazou [Wed, 8 Mar 2017 09:20:35 +0000 (09:20 +0000)] 
PR ada/79903
* socket.c (__gnat_gethostbyaddr): Add missing test for __rtems__.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@245973 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR ada/79945
ebotcazou [Wed, 8 Mar 2017 09:09:11 +0000 (09:09 +0000)] 
PR ada/79945
* system-linux-ppc.ads (Default_Bit_Order): Use Standard's setting.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@245971 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Wed, 8 Mar 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@245965 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago PR c++/79796 - ICE with NSDMI and this pointer
mpolacek [Tue, 7 Mar 2017 17:42:30 +0000 (17:42 +0000)] 
PR c++/79796 - ICE with NSDMI and this pointer
* call.c (build_over_call): Handle NSDMI with a 'this' by calling
replace_placeholders.

* g++.dg/cpp0x/nsdmi13.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@245957 138bc75d-0d04-0410-961f-82ee72b054a4

8 years ago Backport from mainline
uros [Tue, 7 Mar 2017 17:31:22 +0000 (17:31 +0000)] 
Backport from mainline
2017-03-07  Segher Boessenkool  <segher@kernel.crashing.org>

* config/i386/i386.c (ix86_local_alignment): Align most aggregates
of 16 bytes and more to 16 bytes, not those of 16 bits and more.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@245956 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoDaily bump.
gccadmin [Tue, 7 Mar 2017 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@245942 138bc75d-0d04-0410-961f-82ee72b054a4

8 years agoFix typo.
danglin [Mon, 6 Mar 2017 23:11:26 +0000 (23:11 +0000)] 
Fix typo.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@245936 138bc75d-0d04-0410-961f-82ee72b054a4