]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
6 years agoS/390: Document z14/arch12 -march option.
Andreas Krebbel [Mon, 26 Nov 2018 15:08:49 +0000 (15:08 +0000)] 
S/390: Document z14/arch12 -march option.

gcc/ChangeLog:

2018-11-26  Andreas Krebbel  <krebbel@linux.ibm.com>

Backport from mainline
2018-11-26  Andreas Krebbel  <krebbel@linux.ibm.com>

* doc/invoke.texi: Document z14/arch12 -march option.

From-SVN: r266464

6 years agore PR tree-optimization/87645 (gcc hangs up on vr_values::vrp_visit_assignment_or_call)
Richard Biener [Mon, 26 Nov 2018 14:16:01 +0000 (14:16 +0000)] 
re PR tree-optimization/87645 (gcc hangs up on vr_values::vrp_visit_assignment_or_call)

2018-10-19  Richard Biener  <rguenther@suse.de>

PR middle-end/87645
Backport from mainline
2018-07-12  Richard Biener  <rguenther@suse.de>

* gimple-match-head.c (gimple_resimplify1): Apply recursion
limit.
(gimple_resimplify2): Likewise.
(gimple_resimplify3): Likewise.
(gimple_resimplify4): Likewise.

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

From-SVN: r266461

6 years agobackport: [multiple changes]
Richard Biener [Mon, 26 Nov 2018 13:31:21 +0000 (13:31 +0000)] 
backport: [multiple changes]

2018-11-26  Richard Biener  <rguenther@suse.de>

Backport from mainline
2018-10-15  Richard Biener  <rguenther@suse.de>

PR middle-end/87610
* tree-ssa-structalias.c (struct vls_data): Add escaped_p member.
(visit_loadstore): When a used restrict tag escaped verify that
the points-to solution of "other" pointers do not include
escaped.
(compute_dependence_clique): If a used restrict tag escaped
communicated that down to visit_loadstore.

* gcc.dg/torture/restrict-6.c: New testcase.

2018-10-25  Richard Biener  <rguenther@suse.de>

PR tree-optimization/87665
PR tree-optimization/87745
* tree-vectorizer.h (get_earlier_stmt): Remove.
(get_later_stmt): Pick up UID from the original non-pattern stmt.

* gfortran.dg/20181025-1.f: New testcase.

2018-10-24  Richard Biener  <rguenther@suse.de>

PR tree-optimization/87665
* tree-vect-data-refs.c (vect_preserves_scalar_order_p): Adjust
to reflect reality.

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

From-SVN: r266460

6 years agobackport: [multiple changes]
Richard Biener [Mon, 26 Nov 2018 11:59:05 +0000 (11:59 +0000)] 
backport: [multiple changes]

2018-11-26  Richard Biener  <rguenther@suse.de>

Backport from mainline
2018-06-14  Richard Biener  <rguenther@suse.de>

PR middle-end/86139
* tree-vect-generic.c (build_word_mode_vector_type): Remove
duplicate and harmful type_hash_canon.

2018-06-15  Richard Biener  <rguenther@suse.de>

PR middle-end/86076
* tree-cfg.c (move_stmt_op): unshare invariant addresses
before adjusting their block.

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

From-SVN: r266458

6 years agotest-long-names.c: Fix build with -Wformat-security.
Matthias Klose [Mon, 26 Nov 2018 11:57:16 +0000 (11:57 +0000)] 
test-long-names.c: Fix build with -Wformat-security.

2018-11-26  Matthias Klose  <doko@ubuntu.com>

        * jit.dg/test-long-names.c: Fix build with -Wformat-security.

From-SVN: r266457

6 years agoDaily bump.
GCC Administrator [Mon, 26 Nov 2018 00:16:29 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r266442

6 years agobackport: re PR fortran/88073 (Internal compiler error compiling WHERE construct...
Thomas Koenig [Sun, 25 Nov 2018 15:23:18 +0000 (15:23 +0000)] 
backport: re PR fortran/88073 (Internal compiler error  compiling WHERE construct with -O or -O2)

2018-11-25  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/88073
* frontend-passes.c (combine_array_constructor): Do not do
anything if in a WHERE statement.

2018-11-25  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/88073
* gfortran.dg/where_7.f90: New test.

From-SVN: r266437

6 years agoDaily bump.
GCC Administrator [Sun, 25 Nov 2018 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r266432

6 years agore PR fortran/88143 (ICE in resolve_variable at gcc/fortran/resolve.c:5413 since...
Paul Thomas [Sat, 24 Nov 2018 18:54:52 +0000 (18:54 +0000)] 
re PR fortran/88143 (ICE in resolve_variable at gcc/fortran/resolve.c:5413 since r253077)

2018-11-24  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/88143
* resolve.c (resolve_variable): Check for associate names with
NULL target.

2018-11-24  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/88143
* gfortran.dg/associate_46.f90: New test.

From-SVN: r266431

6 years agoDaily bump.
GCC Administrator [Sat, 24 Nov 2018 00:16:15 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r266423

6 years agoDaily bump.
GCC Administrator [Fri, 23 Nov 2018 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r266398

6 years ago* testsuite/ChangeLog: Fix whitespace.
Uros Bizjak [Thu, 22 Nov 2018 22:47:46 +0000 (23:47 +0100)] 
* testsuite/ChangeLog: Fix whitespace.

From-SVN: r266394

6 years agobackport: re PR target/88051 (internal compiler error: in add_clobbers, at config...
Uros Bizjak [Thu, 22 Nov 2018 22:46:54 +0000 (23:46 +0100)] 
backport: re PR target/88051 (internal compiler error: in add_clobbers, at config/i386/sync.md:1762)

Backport from mainline
2018-11-16  Uros Bizjak  <ubizjak@gmail.com>

PR target/88051
* config/i386/sse.md (UNSPEC_MOVDI_TO_SSE): New UNSPEC.
(movdi_to_sse): Rewrite using UNSPEC_MOVDI_TO_SSE unspec.

From-SVN: r266393

6 years agobackport: re PR rtl-optimization/85925 (compilation of masking with 257 goes wrong...
Eric Botcazou [Thu, 22 Nov 2018 16:29:50 +0000 (16:29 +0000)] 
backport: re PR rtl-optimization/85925 (compilation of masking with 257 goes wrong in combine at -02)

Backport from mainline
2018-11-21  Jakub Jelinek  <jakub@redhat.com>

PR rtl-optimization/85925
* gcc.c-torture/execute/20181120-1.c: Require effective target
int32plus.
(u): New variable.
(main): Compare d against u.f1 rather than 0x101.  Use 0x4030201
instead of 0x10101.

From-SVN: r266384

6 years agoBackport "[vms] Add missing vmsdbgout_early_finish"
Tom de Vries [Thu, 22 Nov 2018 13:12:41 +0000 (13:12 +0000)] 
Backport "[vms] Add missing vmsdbgout_early_finish"

2018-11-22  Tom de Vries  <tdevries@suse.de>

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

PR target/82961
* vmsdbgout.c (vmsdbgout_early_finish): New function.
(vmsdbg_debug_hooks): Set early_finish field to vmsdbgout_early_finish.

From-SVN: r266375

6 years agoDaily bump.
GCC Administrator [Thu, 22 Nov 2018 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r266362

6 years agobackport: [multiple changes]
Mihail Ionescu [Wed, 21 Nov 2018 16:50:37 +0000 (16:50 +0000)] 
backport: [multiple changes]

2018-11-21  Mihail Ionescu  <mihail.ionescu@arm.com>

gcc/
PR target/87867
Backport from mainiline
2018-09-26  Eric Botcazou  <ebotcazou@adacore.com>

* config/arm/arm.c (arm_reorg): Skip Thumb reorg pass for thunks.
(arm32_output_mi_thunk): Deal with long calls.

gcc/testsuite/
PR target/87867
Backport from mainiline
2018-09-17  Eric Botcazou  <ebotcazou@adacore.com>

* g++.dg/other/thunk2a.C: New test.
* g++.dg/other/thunk2b.C: Likewise.

From-SVN: r266348

6 years agoDaily bump.
GCC Administrator [Wed, 21 Nov 2018 00:16:16 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r266330

6 years agobackport: [multiple changes]
Richard Biener [Tue, 20 Nov 2018 14:47:49 +0000 (14:47 +0000)] 
backport: [multiple changes]

2018-11-20  Richard Biener  <rguenther@suse.de>

Backport from mainline
2018-03-12  Richard Biener  <rguenther@suse.de>

PR tree-optimization/84777
* tree-ssa-loop-ch.c (should_duplicate_loop_header_p): For
force-vectorize loops ignore whether we are optimizing for size.

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

PR rtl-optimization/84003
* dse.c (record_store): Only record redundant stores when
the earlier store aliases at least all accesses the later one does.

* g++.dg/torture/pr77745.C: Mark foo noinline to trigger
latent bug in DSE if NOINLINE is appropriately defined.
* g++.dg/torture/pr77745-2.C: New testcase including pr77745.C
and defining NOINLINE.

From-SVN: r266318

6 years agobackport: re PR target/87853 (_mm_cmpgt_epi8 broken with -funsigned-char)
Xuepeng Guo [Tue, 20 Nov 2018 14:35:43 +0000 (14:35 +0000)] 
backport: re PR target/87853 (_mm_cmpgt_epi8 broken with -funsigned-char)

        Backport from mainline
        2018-11-05  Xuepeng Guo  <xuepeng.guo@intel.com>

        PR target/87853
        * config/i386/emmintrin.h (__v16qs): New to cope with option
        -funsigned-char.
        (_mm_cmpeq_epi8): Replace __v16qi with __v16qs.
        (_mm_cmplt_epi8): Likewise.
        (_mm_cmpgt_epi8): Likewise.

From-SVN: r266317

6 years agore PR rtl-optimization/85925 (compilation of masking with 257 goes wrong in combine...
Eric Botcazou [Tue, 20 Nov 2018 09:04:12 +0000 (09:04 +0000)] 
re PR rtl-optimization/85925 (compilation of masking with 257 goes wrong in combine at -02)

2018-11-20  Eric Botcazou  <ebotcazou@adacore.com>

PR rtl-optimization/85925
* rtl.h (word_register_operation_p): New predicate.
* combine.c (record_dead_and_set_regs_1): Only apply specific handling
for WORD_REGISTER_OPERATIONS targets to word_register_operation_p RTX.
* rtlanal.c (nonzero_bits1): Likewise.  Adjust couple of comments.
(num_sign_bit_copies1): Likewise.

From-SVN: r266304

6 years agoDaily bump.
GCC Administrator [Tue, 20 Nov 2018 00:16:28 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r266291

6 years agoDaily bump.
GCC Administrator [Mon, 19 Nov 2018 00:16:23 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r266257

6 years agobackport: re PR target/87928 (ICE in ix86_compute_frame_layout, at config/i386/i386...
Uros Bizjak [Sun, 18 Nov 2018 21:36:30 +0000 (22:36 +0100)] 
backport: re PR target/87928 (ICE in ix86_compute_frame_layout, at config/i386/i386.c:11161 since r228607)

Backport from mainline
2018-11-11  Uros Bizjak  <ubizjak@gmail.com>

PR target/87928
* config/i386/i386.h (STACK_BOUNDARY): Use TARGET_64BIT_MS_ABI
instead of (TARGET_64BIT && ix86_abi == MS_ABI).
* config/i386/darwin.h (STACK_BOUNDARY): Ditto.
* config/i386/cygming.h (STACK_BOUNDARY): Remove.

testsuite/ChangeLog:

Backport from mainline
2018-11-11  Uros Bizjak  <ubizjak@gmail.com>

PR target/87928
* gcc.target/i386/pr87928.c: New test.

From-SVN: r266254

6 years agoDaily bump.
GCC Administrator [Sun, 18 Nov 2018 00:16:17 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r266243

6 years agoDaily bump.
GCC Administrator [Sat, 17 Nov 2018 00:16:18 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r266227

6 years agoDaily bump.
GCC Administrator [Fri, 16 Nov 2018 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r266196

6 years ago[debug/88006] -fdebug-types-section gives undefined ref
Nathan Sidwell [Thu, 15 Nov 2018 14:31:35 +0000 (14:31 +0000)] 
[debug/88006] -fdebug-types-section gives undefined ref

https://gcc.gnu.org/ml/gcc-patches/2018-11/msg01280.html
PR debug/88006
PR debug/87462
* dwarf2out.c (dwarf2out_finish): Apply resolve_addr to comdat
type list.

* g++.dg/debug/dwarf2/pr87462.C: New.
* g++.dg/debug/dwarf2/pr88006.C: New.

From-SVN: r266185

6 years agomisc.c (gnat_init_gcc_eh): Do not override the switch -fnon-call-exceptions passed...
Eric Botcazou [Thu, 15 Nov 2018 12:06:55 +0000 (12:06 +0000)] 
misc.c (gnat_init_gcc_eh): Do not override the switch -fnon-call-exceptions passed on the command line in...

* gcc-interface/misc.c (gnat_init_gcc_eh): Do not override the switch
-fnon-call-exceptions passed on the command line in -gnatp mode.

From-SVN: r266178

6 years agoDaily bump.
GCC Administrator [Thu, 15 Nov 2018 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r266165

6 years agoDaily bump.
GCC Administrator [Wed, 14 Nov 2018 00:16:20 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r266094

6 years agomisc.c (gnat_init_gcc_eh): Set -fnon-call-exceptions for the runtime on platforms...
Eric Botcazou [Tue, 13 Nov 2018 09:03:34 +0000 (09:03 +0000)] 
misc.c (gnat_init_gcc_eh): Set -fnon-call-exceptions for the runtime on platforms where...

* gcc-interface/misc.c (gnat_init_gcc_eh): Set -fnon-call-exceptions
for the runtime on platforms where System.Machine_Overflow is true.

From-SVN: r266059

6 years agoDaily bump.
GCC Administrator [Tue, 13 Nov 2018 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r266040

6 years agoDaily bump.
GCC Administrator [Mon, 12 Nov 2018 00:16:15 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r266021

6 years agobackport: re PR c++/58372 (internal compiler error: ix86_compute_frame_layout)
Uros Bizjak [Sun, 11 Nov 2018 17:44:43 +0000 (18:44 +0100)] 
backport: re PR c++/58372 (internal compiler error: ix86_compute_frame_layout)

Backport from mainline
2018-11-04  Uros Bizjak  <ubizjak@gmail.com>

PR middle-end/58372
* cfgexpand.c (pass_expand::execute): Move the call to
finish_eh_generation in front of the call to expand_stack_alignment.

testsuite/ChangeLog:

Backport from mainline
2018-11-04  Uros Bizjak  <ubizjak@gmail.com>

PR middle-end/58372
* g++.dg/pr58372.C: New test.

From-SVN: r266015

6 years agoDaily bump.
GCC Administrator [Sun, 11 Nov 2018 00:16:16 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r266005

6 years agoDaily bump.
GCC Administrator [Sat, 10 Nov 2018 00:16:37 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265999

6 years agosyscall: change RLIM_INFINITY from 0xffffffffffffffff to -1
Ian Lance Taylor [Fri, 9 Nov 2018 15:29:15 +0000 (15:29 +0000)] 
syscall: change RLIM_INFINITY from 0xffffffffffffffff to -1

    For compatibility with the gc toolchain's syscall package.

    Fixes golang/go#28665

    Reviewed-on: https://go-review.googlesource.com/c/148697

From-SVN: r265972

6 years agoDaily bump.
GCC Administrator [Fri, 9 Nov 2018 00:16:27 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265943

6 years agofe.h (Suppress_Checks): Declare.
Eric Botcazou [Thu, 8 Nov 2018 15:58:16 +0000 (15:58 +0000)] 
fe.h (Suppress_Checks): Declare.

* fe.h (Suppress_Checks): Declare.
* gcc-interface/misc.c (gnat_init_gcc_eh): Set -fnon-call-exceptions
only if checks are not suppressed and -faggressive-loop-optimizations
only if they are.
* gcc-interface/trans.c (struct loop_info_d): Remove has_checks and
warned_aggressive_loop_optimizations fields.
(gigi): Do not clear warn_aggressive_loop_optimizations here.
(Raise_Error_to_gnu): Do not set has_checks.
(gnat_to_gnu) <N_Indexed_Component>: Remove support for aggressive
loop optimizations.

From-SVN: r265923

6 years agoDaily bump.
GCC Administrator [Thu, 8 Nov 2018 00:16:31 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265900

6 years agogcc: xtensa: don't force PIC for uclinux target
Max Filippov [Wed, 7 Nov 2018 20:52:29 +0000 (20:52 +0000)] 
gcc: xtensa: don't force PIC for uclinux target

xtensa-uclinux uses bFLT executable file format that cannot relocate
fields representing offsets from data to code. C++ objects built as PIC
use offsets to encode FDE structures. As a result C++ exception handling
doesn't work correctly on xtensa-uclinux. Don't use PIC by default on
xtensa-uclinux.

gcc/
2018-11-07  Max Filippov  <jcmvbkbc@gmail.com>

Backport from mainline
2018-11-05  Max Filippov  <jcmvbkbc@gmail.com>

* config/xtensa/uclinux.h (XTENSA_ALWAYS_PIC): Change to 0.

From-SVN: r265889

6 years agoDaily bump.
GCC Administrator [Wed, 7 Nov 2018 00:16:37 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265854

6 years agoDaily bump.
GCC Administrator [Tue, 6 Nov 2018 00:16:23 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265824

6 years agocompiler: handle abstract type in builtin numeric const value
Ian Lance Taylor [Mon, 5 Nov 2018 20:59:38 +0000 (20:59 +0000)] 
compiler: handle abstract type in builtin numeric const value

    Builtin_call_expression::do_numeric_constant_value can be called by
    Array_type::verify_length before the determine types pass, so accept
    an abstract type.

    Test case is https://golang.org/cl/147537.

    Fixes golang/go#28601

    Reviewed-on: https://go-review.googlesource.com/c/147442

From-SVN: r265818

6 years agoDaily bump.
GCC Administrator [Mon, 5 Nov 2018 00:16:31 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265781

6 years agoDaily bump.
GCC Administrator [Sun, 4 Nov 2018 00:16:33 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265771

6 years agobackport: re PR fortran/87597 (wrong result with matmul inlining)
Tobias Burnus [Sat, 3 Nov 2018 14:49:33 +0000 (15:49 +0100)] 
backport: re PR fortran/87597 (wrong result with matmul inlining)

2019-11-03  Tobias Burnus  <burnus@net-b.de>
Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/87597
* expr.c (gfc_simplify_expr): Avoid simplifying
the 'array' argument to lbound/ubound/lcobound/
ucobound.

2018-11-03  Tobias Burnus  <burnus@net-b.de>
Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/87597
* gfortran.dg/inline_matmul_24.f90: New.

Co-Authored-By: Thomas Koenig <tkoenig@gcc.gnu.org>
From-SVN: r265769

6 years agoDaily bump.
GCC Administrator [Sat, 3 Nov 2018 00:16:41 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265764

6 years agoDaily bump.
GCC Administrator [Fri, 2 Nov 2018 00:16:57 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265736

6 years agoDaily bump.
GCC Administrator [Thu, 1 Nov 2018 00:16:44 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265705

6 years agoPR libstdc++/87822 fix layout change for nested std::pair
Jonathan Wakely [Wed, 31 Oct 2018 13:16:10 +0000 (13:16 +0000)] 
PR libstdc++/87822 fix layout change for nested std::pair

The introduction of the empty __pair_base base class for PR 86751
changed the layout of std::pair<std::pair<...>, ...>. The outer pair and
its first member both have a base class of the same type, which cannot
exist at the same address. This causes the first member to be at a
non-zero offset.

The solution is to make the base class depend on the template
parameters, so that each pair type has a different base class type,
which allows the base classes of the outer pair and its first member to
have the same address.

PR libstdc++/87822
* include/bits/stl_pair.h (__pair_base): Change to class template.
(pair): Make base class type depend on template parameters.
* testsuite/20_util/pair/87822.cc: New test.

From-SVN: r265683

6 years agoDaily bump.
GCC Administrator [Wed, 31 Oct 2018 00:16:59 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265650

6 years agoDaily bump.
GCC Administrator [Tue, 30 Oct 2018 00:16:23 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265612

6 years agoDaily bump.
GCC Administrator [Mon, 29 Oct 2018 00:16:29 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265579

6 years agoDaily bump.
GCC Administrator [Sun, 28 Oct 2018 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265562

6 years agoDaily bump.
GCC Administrator [Sat, 27 Oct 2018 00:16:32 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265552

6 years agobackport: re PR tree-optimization/87473 (ICE in create_add_on_incoming_edge, at gimpl...
Bill Schmidt [Fri, 26 Oct 2018 19:38:45 +0000 (19:38 +0000)] 
backport: re PR tree-optimization/87473 (ICE in create_add_on_incoming_edge, at gimple-ssa-strength-reduction.c:2344)

[gcc]

2018-10-26  Bill Schmidt  <wschmidt@linux.ibm.com>

Backport from mainline
2018-10-19  Bill Schmidt  <wschmidt@linux.ibm.com>

PR tree-optimization/87473
* gimple-ssa-strength-reduction.c (record_phi_increments): For
phi arguments identical to the base expression of the phi
candidate, record a phi-adjust increment of zero minus the index
expression of the hidden basis.
(phi_incr_cost): For phi arguments identical to the base
expression of the phi candidate, the difference to compare against
the increment is zero minus the index expression of the hidden
basis, and there is no potential savings from replacing the (phi)
statement.
(ncd_with_phi): For phi arguments identical to the base expression
of the phi candidate, the difference to compare against the
increment is zero minus the index expression of the hidden basis.
(all_phi_incrs_profitable): For phi arguments identical to the
base expression of the phi candidate, the increment to be checked
for profitability is zero minus the index expression of the hidden
basis.

[gcc/testsuite]

2018-10-26  Bill Schmidt  <wschmidt@linux.ibm.com>

Backport from mainline
2018-10-19  Bill Schmidt  <wschmidt@linux.ibm.com>

PR tree-optimization/87473
* gcc.c-torture/compile/pr87473.c: New file.

From-SVN: r265547

6 years agoDaily bump.
GCC Administrator [Fri, 26 Oct 2018 00:16:38 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265512

6 years agoPR libstdc++/87749 fix (and optimize) string move construction
Jonathan Wakely [Thu, 25 Oct 2018 16:32:47 +0000 (17:32 +0100)] 
PR libstdc++/87749 fix (and optimize) string move construction

The move constructor for the SSO string uses assign(const basic_string&)
when either:

(1) the source string is "local" and so the contents of the small string
buffer need to be copied, or

(2) the allocator does not propagate and is_always_equal is false.

Case (1) is suboptimal, because the assign member is not noexcept and
the compiler isn't smart enough to see it won't actually throw in this
case. This causes extra code in the move assignment operator so that any
exception will be turned into a call to std::terminate. This can be
fixed by copying small strings inline instead of calling assign.

Case (2) is a bug, because the specific instances of the allocators
could be equal even if is_always_equal is false. This can result in an
unnecessary deep copy (and potentially-throwing allocation) when the
storage should be moved. This can be fixed by simply checking if the
allocators are equal.

PR libstdc++/87749
* include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
(basic_string::operator=(basic_string&&)): For short strings copy the
buffer inline. Only fall back to using assign(const basic_string&) to
do a deep copy when reallocation is needed.
* testsuite/21_strings/basic_string/modifiers/assign/char/87749.cc:
New test.
* testsuite/21_strings/basic_string/modifiers/assign/char/
move_assign_optim.cc: New test.
* testsuite/21_strings/basic_string/modifiers/assign/wchar_t/87749.cc:
New test.
* testsuite/21_strings/basic_string/modifiers/assign/wchar_t/
move_assign_optim.cc: New test.

From-SVN: r265497

6 years agoDaily bump.
GCC Administrator [Thu, 25 Oct 2018 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265476

6 years agoDaily bump.
GCC Administrator [Wed, 24 Oct 2018 00:16:46 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265446

6 years agoPR libstdc++/87704 fix unique_ptr(nullptr_t) constructors
Jonathan Wakely [Tue, 23 Oct 2018 15:55:05 +0000 (16:55 +0100)] 
PR libstdc++/87704 fix unique_ptr(nullptr_t) constructors

Using a delegating constructor to implement these constructors means
that they instantiate the destructor, which requires the element_type to
be complete. In C++11 and C++14 they were specified to be delegating,
but that was changed as part of LWG 2801 so in C++17 they don't require
a complete type (as was intended all along).

PR libstdc++/87704
* include/bits/unique_ptr.h (unique_ptr::unique_ptr(nullptr_t)): Do
not delegate to default constructor.
(unique_ptr<T[], D>::unique_ptr(nullptr_t)): Likewise.
* testsuite/20_util/unique_ptr/cons/incomplete.cc: New test.

From-SVN: r265429

6 years agobackport "[c++] Fix DECL_BY_REFERENCE of clone parms"
Tom de Vries [Tue, 23 Oct 2018 15:06:17 +0000 (15:06 +0000)] 
backport "[c++] Fix DECL_BY_REFERENCE of clone parms"

Consider test.C compiled at -O0 -g:
...
class string {
public:
  string (const char *p) { this->p = p ; }
  string (const string &s) { this->p = s.p; }

private:
  const char *p;
};

class foo {
public:
  foo (string dir_hint) {}
};

int
main (void)
{
  std::string s = "This is just a string";
  foo bar(s);
  return 0;
}
...

When parsing foo::foo, the dir_hint parameter gets a DECL_ARG_TYPE of
'struct string & restrict'.  Then during finish_struct, we call
clone_constructors_and_destructors and create clones for foo::foo, and
set the DECL_ARG_TYPE in the same way.

Later on, during finish_function, cp_genericize is called for the original
foo::foo, which sets the type of parm dir_hint to DECL_ARG_TYPE, and sets
DECL_BY_REFERENCE of dir_hint to 1.

After that, during maybe_clone_body update_cloned_parm is called with:
...
(gdb) call debug_generic_expr (parm.typed.type)
struct string & restrict
(gdb) call debug_generic_expr (cloned_parm.typed.type)
struct string
...
The type of the cloned_parm is then set to the type of parm, but
DECL_BY_REFERENCE is not set.

When doing cp_genericize for the clone later on,
TREE_ADDRESSABLE (TREE_TYPE ()) is no longer true for the updated type for
the parm, so DECL_BY_REFERENCE is not set there either.

The missing DECL_BY_REFERENCE on cloned_parm causes incorrect debug info to be
generated.

This patch fixes the problem by copying DECL_BY_REFERENCE in update_cloned_parm.

Bootstrapped and reg-tested on x86_64.

2018-10-23  Tom de Vries  <tdevries@suse.de>

backport from trunk:
2018-07-31  Tom de Vries  <tdevries@suse.de>

PR debug/86687
* optimize.c (update_cloned_parm): Copy DECL_BY_REFERENCE.

* g++.dg/guality/pr86687.C: New test.

From-SVN: r265427

6 years agoDaily bump.
GCC Administrator [Tue, 23 Oct 2018 00:16:54 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265406

6 years agoutils.c (unchecked_convert): Use local variables for the biased and reverse SSO attri...
Eric Botcazou [Mon, 22 Oct 2018 11:09:11 +0000 (11:09 +0000)] 
utils.c (unchecked_convert): Use local variables for the biased and reverse SSO attributes of both types.

* gcc-interface/utils.c (unchecked_convert): Use local variables for
the biased and reverse SSO attributes of both types.
Further extend the processing of integral types in the presence of
reverse SSO to all scalar types.

From-SVN: r265383

6 years agotrans.c (Pragma_to_gnu): Use a simple memory constraint in all cases.
Eric Botcazou [Mon, 22 Oct 2018 10:45:25 +0000 (10:45 +0000)] 
trans.c (Pragma_to_gnu): Use a simple memory constraint in all cases.

* gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Inspection_Point>: Use
a simple memory constraint in all cases.

From-SVN: r265380

6 years agoPR libstdc++/79433 no #error for including TS headers with wrong -std
Jonathan Wakely [Mon, 22 Oct 2018 08:47:52 +0000 (09:47 +0100)] 
PR libstdc++/79433 no #error for including TS headers with wrong -std

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

PR libstdc++/79433
* include/Makefile.am: Remove <bits/c++14_warning.h>.
* include/Makefile.in: Regenerate.
* include/bits/c++14_warning.h: Remove.
* include/experimental/algorithm: Do not include <c++14_warning.h>.
* include/experimental/any: Likewise.
* include/experimental/array: Likewise.
* include/experimental/bits/erase_if.h: Likewise.
* include/experimental/bits/lfts_config.h: Likewise.
* include/experimental/bits/shared_ptr.h: Likewise.
* include/experimental/bits/string_view.tcc: Likewise.
* include/experimental/chrono: Likewise.
* include/experimental/deque: Likewise.
* include/experimental/filesystem: Do not include <c++0x_warning.h>.
* include/experimental/forward_list: Do not include <c++14_warning.h>.
* include/experimental/functional: Likewise.
* include/experimental/iterator: Likewise.
* include/experimental/list: Likewise.
* include/experimental/map: Likewise.
* include/experimental/memory: Likewise.
* include/experimental/numeric: Likewise.
* include/experimental/optional: Likewise.
* include/experimental/propagate_const: Likewise.
* include/experimental/ratio: Likewise.
* include/experimental/regex: Likewise.
* include/experimental/set: Likewise.
* include/experimental/string: Likewise.
* include/experimental/string_view: Likewise.
* include/experimental/system_error: Likewise.
* include/experimental/tuple: Likewise.
* include/experimental/type_traits: Likewise.
* include/experimental/unordered_map: Likewise.
* include/experimental/unordered_set: Likewise.
* include/experimental/vector: Likewise.
* testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error
line number.
* testsuite/experimental/array/neg.cc: Likewise.
* testsuite/experimental/propagate_const/assignment/move_neg.cc:
Likewise.
* testsuite/experimental/propagate_const/cons/move_neg.cc: Likewise.
* testsuite/experimental/propagate_const/requirements2.cc: Likewise.
* testsuite/experimental/propagate_const/requirements3.cc: Likewise.
* testsuite/experimental/propagate_const/requirements4.cc: Likewise.
* testsuite/experimental/propagate_const/requirements5.cc: Likewise.

From-SVN: r265374

6 years agoDaily bump.
GCC Administrator [Mon, 22 Oct 2018 00:16:53 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265364

6 years agoDaily bump.
GCC Administrator [Sun, 21 Oct 2018 00:16:25 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265347

6 years agoDaily bump.
GCC Administrator [Sat, 20 Oct 2018 00:16:43 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265337

6 years agoS/390: Fix problem with vec_init expander
Andreas Krebbel [Fri, 19 Oct 2018 08:55:27 +0000 (08:55 +0000)] 
S/390: Fix problem with vec_init expander

gcc/ChangeLog:

2018-10-19  Andreas Krebbel  <krebbel@linux.ibm.com>

Backport from mainline
2018-10-15  Andreas Krebbel  <krebbel@linux.ibm.com>

* config/s390/s390.c (s390_expand_vec_init): Force vector element
into reg if it isn't a general operand.

gcc/testsuite/ChangeLog:

2018-10-19  Andreas Krebbel  <krebbel@linux.ibm.com>

Backport from mainline
2018-10-15  Andreas Krebbel  <krebbel@linux.ibm.com>

* g++.dg/vec-init-1.C: New test.

From-SVN: r265309

6 years agoDaily bump.
GCC Administrator [Fri, 19 Oct 2018 00:16:55 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265301

6 years agoPR libstdc++/87641 correctly initialize accumulator in valarray::sum()
Jonathan Wakely [Thu, 18 Oct 2018 19:38:56 +0000 (20:38 +0100)] 
PR libstdc++/87641 correctly initialize accumulator in valarray::sum()

Use the value of the first element as the initial value of the
__valarray_sum accumulator. Value-initialization might not create the
additive identity for the value type.

PR libstdc++/87641
* include/bits/valarray_array.h (__valarray_sum): Use first element
to initialize accumulator instead of value-initializing it.
* testsuite/26_numerics/valarray/87641.cc: New test.

From-SVN: r265285

6 years agoDaily bump.
GCC Administrator [Thu, 18 Oct 2018 00:16:31 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265253

6 years agore PR middle-end/87623 (bytes swapped in register when comparing cause fail when...
Eric Botcazou [Wed, 17 Oct 2018 17:53:02 +0000 (17:53 +0000)] 
re PR middle-end/87623 (bytes swapped in register when comparing cause fail when compiled with  -O1 or higher)

PR middle-end/87623
* fold-const.c (fold_truth_andor_1): If the right side is not constant,
bail out if both sides do not have the same storage order.

From-SVN: r265244

6 years agoDaily bump.
GCC Administrator [Wed, 17 Oct 2018 00:16:34 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265226

6 years ago[AArch64] Fix PR87511
Wilco Dijkstra [Tue, 16 Oct 2018 13:40:57 +0000 (13:40 +0000)] 
[AArch64] Fix PR87511

As mentioned in PR87511, the shift used in aarch64_mask_and_shift_for_ubfiz_p
should be evaluated as a HOST_WIDE_INT rather than int.

Backported from mainline

    gcc/
PR target/87511
* config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
Use HOST_WIDE_INT_1U for shift.

    testsuite/
PR target/87511
* gcc.target/aarch64/pr87511.c: Add new test.

From-SVN: r265195

6 years agoDaily bump.
GCC Administrator [Tue, 16 Oct 2018 00:16:47 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265181

6 years agoAdjust test to pass with latest glibc
Jonathan Wakely [Mon, 15 Oct 2018 14:01:47 +0000 (15:01 +0100)] 
Adjust test to pass with latest glibc

Glibc changed the it_IT locales to use thousands separators,
invalidating this test. Use nl_NL instead, as Dutch only uses grouping
for money not numbers.

* testsuite/22_locale/numpunct/members/char/3.cc: Adjust test to
account for change to glibc it_IT localedata (glibc bz#10797).

From-SVN: r265167

6 years agoDaily bump.
GCC Administrator [Mon, 15 Oct 2018 00:16:43 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265153

6 years agoDaily bump.
GCC Administrator [Sun, 14 Oct 2018 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265144

6 years agobackport: close.c: Include <string.h>.
Gerald Pfeifer [Sat, 13 Oct 2018 11:25:11 +0000 (11:25 +0000)] 
backport: close.c: Include <string.h>.

Backport from trunk
* io/close.c [!HAVE_UNLINK_OPEN_FILE]: Include <string.h>.

From-SVN: r265141

6 years agoDaily bump.
GCC Administrator [Sat, 13 Oct 2018 00:16:27 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r265137

6 years agobackport: re PR target/87550 (Intrinsics for rdpmc (__rdpmc, __builtin_ia32_rdpmc...
Jakub Jelinek [Fri, 12 Oct 2018 14:55:17 +0000 (16:55 +0200)] 
backport: re PR target/87550 (Intrinsics for rdpmc (__rdpmc, __builtin_ia32_rdpmc) are interpreted as pure functions)

Backported from mainline
2018-10-10  Jakub Jelinek  <jakub@redhat.com>

PR target/87550
* config/i386/i386-builtin.def (IX86_BUILTIN_RDPMC): Move from args set
to special_args set.

* gcc.target/i386/pr87550.c: New test.

From-SVN: r265112

6 years agobackport: re PR middle-end/87248 (Bad code for masked operations involving signed...
Jakub Jelinek [Fri, 12 Oct 2018 14:54:34 +0000 (16:54 +0200)] 
backport: re PR middle-end/87248 (Bad code for masked operations involving signed ints)

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

PR middle-end/87248
* fold-const.c (fold_ternary_loc) <case COND_EXPR>: Verify also that
BIT_AND_EXPR's second operand is a power of two.  Formatting fix.

* c-c++-common/torture/pr87248.c: New test.

From-SVN: r265111

6 years agobackport: re PR rtl-optimization/87065 (combine causes ICE in trunc_int_for_mode)
Jakub Jelinek [Fri, 12 Oct 2018 14:53:54 +0000 (16:53 +0200)] 
backport: re PR rtl-optimization/87065 (combine causes ICE in trunc_int_for_mode)

Backported from mainline
2018-08-27  Jakub Jelinek  <jakub@redhat.com>

PR rtl-optimization/87065
* combine.c (simplify_if_then_else): Formatting fix.
(if_then_else_cond): Guard MULT optimization with SCALAR_INT_MODE_P
check.
(known_cond): Don't return const_true_rtx for vector modes.  Use
CONST0_RTX instead of const0_rtx.  Formatting fixes.

* gcc.target/i386/pr87065.c: New test.

From-SVN: r265110

6 years agobackport: re PR middle-end/86627 (Signed 128-bit division by 2 no longer expanded...
Jakub Jelinek [Fri, 12 Oct 2018 14:53:11 +0000 (16:53 +0200)] 
backport: re PR middle-end/86627 (Signed 128-bit division by 2 no longer expanded to RTL)

Backported from mainline
2018-07-24  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/86627
* expmed.c (expand_divmod): Punt if d == HOST_WIDE_INT_MIN
and size > HOST_BITS_PER_WIDE_INT.  For size > HOST_BITS_PER_WIDE_INT
and abs_d == d, do the power of two handling if profitable.

* gcc.target/i386/pr86627.c: New test.

From-SVN: r265109

6 years agobackport: re PR middle-end/86542 (wrong-code for collapsed taskloop which needs omp_c...
Jakub Jelinek [Fri, 12 Oct 2018 14:52:18 +0000 (16:52 +0200)] 
backport: re PR middle-end/86542 (wrong-code for collapsed taskloop which needs omp_cpyfn)

Backported from mainline
2018-07-17  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/86542
* omp-low.c (create_task_copyfn): Copy over also fields corresponding
to _looptemp_ clauses, other than the first two.

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

From-SVN: r265108

6 years agobackport: re PR middle-end/86539 (OpenMP wrong-code with taskloop and references)
Jakub Jelinek [Fri, 12 Oct 2018 14:49:32 +0000 (16:49 +0200)] 
backport: re PR middle-end/86539 (OpenMP wrong-code with taskloop and references)

Backported from mainline
2018-07-17  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/86539
* gimplify.c (gimplify_omp_for): Ensure taskloop firstprivatized init
and cond temporaries don't have reference type if iterator has
pointer type.  For init use &for_pre_body instead of pre_p if
for_pre_body is non-empty.

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

From-SVN: r265107

6 years agobackport: re PR fortran/86421 (OpenMP declare simd linear ref in module causes gfortr...
Jakub Jelinek [Fri, 12 Oct 2018 14:47:57 +0000 (16:47 +0200)] 
backport: re PR fortran/86421 (OpenMP declare simd linear ref in module causes gfortran to bail out)

Backported from mainline
2018-07-10  Jakub Jelinek  <jakub@redhat.com>

PR fortran/86421
* module.c (omp_declare_simd_clauses): Add LINEAR with _REF, _VAL and
_UVAL suffixes.
(mio_omp_declare_simd): Save and restore ref, val and uval modifiers
on linear clauses.  Initialize n->where to gfc_current_locus.

* gfortran.dg/vect/pr86421.f90: New test.

From-SVN: r265106

6 years agobackport: re PR middle-end/86660 (libgomp.c++/for-15.C ICEs with nvptx offloading)
Jakub Jelinek [Fri, 12 Oct 2018 14:46:18 +0000 (16:46 +0200)] 
backport: re PR middle-end/86660 (libgomp.c++/for-15.C ICEs with nvptx offloading)

Backported from mainline
2018-07-26  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/86660
* omp-low.c (scan_sharing_clauses): Don't ignore map clauses for
declare target to variables if they have always,{to,from,tofrom} map
kinds.

* testsuite/libgomp.c/pr86660.c: New test.

From-SVN: r265105

6 years agobackport: re PR c++/3698 (improper handling of an extern declared inline function)
Jakub Jelinek [Fri, 12 Oct 2018 14:43:18 +0000 (16:43 +0200)] 
backport: re PR c++/3698 (improper handling of an extern declared inline function)

Backported from mainline
2018-07-16  Jakub Jelinek  <jakub@redhat.com>

PR c++/3698
PR c++/86208
* cp-gimplify.c (cp_genericize_r): When using extern_decl_map, or
in TREE_USED flag from stmt to h->to.

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

From-SVN: r265103

6 years agobackport: [multiple changes]
Richard Biener [Fri, 12 Oct 2018 13:41:56 +0000 (13:41 +0000)] 
backport: [multiple changes]

2018-10-12  Richard Biener  <rguenther@suse.de>

Backport from mainline
2018-08-23  Richard Biener  <rguenther@suse.de>

PR middle-end/87024
* tree-inline.c (copy_bb): Drop unused __builtin_va_arg_pack_len
calls.

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

2018-08-17  Richard Biener  <rguenther@suse.de>

PR middle-end/86505
* tree-inline.c (copy_bb): When inlining __builtin_va_arg_pack_len ()
across a va-arg-pack using call adjust its return value accordingly.

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

From-SVN: r265100

6 years agoPR libstdc++/86751 default assignment operators for std::pair
Jonathan Wakely [Fri, 12 Oct 2018 12:51:46 +0000 (13:51 +0100)] 
PR libstdc++/86751 default assignment operators for std::pair

The solution for PR 77537 causes ambiguities due to the extra copy
assignment operator taking a __nonesuch_no_braces parameter. By making
the base class non-assignable we don't need the extra deleted overload
in std::pair. The copy assignment operator will be implicitly deleted
(and the move assignment operator not declared) as needed. Without the
additional user-provided operator in std::pair the ambiguity is avoided.

Backport from mainline
2018-07-31  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/86751
* include/bits/stl_pair.h (__pair_base): New class with deleted copy
assignment operator.
(pair): Derive from __pair_base.
(pair::operator=): Remove deleted overload.
* python/libstdcxx/v6/printers.py (StdPairPrinter): New pretty printer
so that new base class isn't shown in GDB.
* testsuite/20_util/pair/86751.cc: New test.
* testsuite/20_util/pair/ref_assign.cc: New test.

From-SVN: r265096

6 years agoPR libstdc++/78595 implement insertion into maps in terms of emplace
Jonathan Wakely [Fri, 12 Oct 2018 12:51:40 +0000 (13:51 +0100)] 
PR libstdc++/78595 implement insertion into maps in terms of emplace

C++14 simplified the specification of the generic insert function
templates to be equivalent to calling emplace (or emplace_hint).
Defining them in terms of emplace takes care of the problems described
in PR 78595, ensuring a single conversion to value_type is done at the
right time.

Backport from mainline
2018-09-03  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/78595
* include/bits/stl_map.h (map::insert(_Pair&&))
(map::insert(const_iterator, _Pair&&)): Do emplace instead of insert.
* include/bits/stl_multimap.h (multimap::insert(_Pair&&))
(multimap::insert(const_iterator, _Pair&&)): Likewise.
* include/bits/unordered_map.h (unordered_map::insert(_Pair&&))
(unordered_map::insert(const_iterator, _Pair&&))
(unordered_multimap::insert(_Pair&&))
(unordered_multimap::insert(const_iterator, _Pair&&)): Likewise.
* include/std/type_traits (__enable_if_t): Define for C++11.
* testsuite/23_containers/map/modifiers/insert/78595.cc: New test.
* testsuite/23_containers/multimap/modifiers/insert/78595.cc: New test.
* testsuite/23_containers/unordered_map/modifiers/78595.cc: New test.
* testsuite/23_containers/unordered_multimap/modifiers/78595.cc: New
test.

From-SVN: r265095

6 years agoFix __gnu_cxx::_Pointer_adapter for long long arithmetic
Jonathan Wakely [Fri, 12 Oct 2018 12:51:34 +0000 (13:51 +0100)] 
Fix __gnu_cxx::_Pointer_adapter for long long arithmetic

Backport from mainline
2018-08-30  Jonathan Wakely  <jwakely@redhat.com>

* include/ext/pointer.h (_Pointer_adapter): Define operators for
pointer arithmetic using long long offsets.
* testsuite/ext/ext_pointer/1.cc: Test pointer arithmetic using
long long values.

From-SVN: r265094

6 years agoFix experimental::pmr typedefs and add tests
Jonathan Wakely [Fri, 12 Oct 2018 12:51:29 +0000 (13:51 +0100)] 
Fix experimental::pmr typedefs and add tests

The typedefs in <experimental/regex> and <experimental/string> don't
need to be in the __cxx11 namespace, because they are only aliases and
so will have the same mangled name as the underlying types.

Backport from mainline
2018-08-23  Jonathan Wakely  <jwakely@redhat.com>

* testsuite/21_strings/basic_string/init-list.cc:
Require cxx11-abi.
* testsuite/experimental/polymorphic_allocator/pmr_typedefs_match.cc:
Likewise.
* testsuite/experimental/polymorphic_allocator/pmr_typedefs_string.cc:
Likewise.

Backport from mainline
2018-08-22  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/87061
* include/experimental/regex [!_GLIBCXX_USE_CXX11_ABI]
(experimental::pmr::match_results, experimental::pmr::cmatch)
(experimental::pmr::smatch, experimental::pmr::wcmatch)
(experimental::pmr::wsmatch): Do not declare for gcc4-compatible ABI,
because COW strings don't support C++11 allocator model.
* include/experimental/string [!_GLIBCXX_USE_CXX11_ABI]
(experimental::pmr::basic_string, experimental::pmr::string)
(experimental::pmr::u16string, experimental::pmr::u32string)
(experimental::pmr::wstring): Likewise.

Backport from mainline
2018-08-15  Jonathan Wakely  <jwakely@redhat.com>

* include/experimental/regex: Remove begin/end macros for namespace.
* include/experimental/string: Likewise.
* testsuite/experimental/polymorphic_allocator/pmr_typedefs_deque.cc:
New test.
* testsuite/experimental/polymorphic_allocator/
pmr_typedefs_forward_list.cc: New test.
* testsuite/experimental/polymorphic_allocator/pmr_typedefs_list.cc:
New test.
* testsuite/experimental/polymorphic_allocator/pmr_typedefs_map.cc:
New test.
* testsuite/experimental/polymorphic_allocator/pmr_typedefs_match.cc:
New test.
* testsuite/experimental/polymorphic_allocator/
pmr_typedefs_multimap.cc: New test.
* testsuite/experimental/polymorphic_allocator/
pmr_typedefs_multiset.cc: New test.
* testsuite/experimental/polymorphic_allocator/pmr_typedefs_set.cc:
New test.
* testsuite/experimental/polymorphic_allocator/pmr_typedefs_string.cc:
New test.
* testsuite/experimental/polymorphic_allocator/
pmr_typedefs_unordered_map.cc: New test.
* testsuite/experimental/polymorphic_allocator/
pmr_typedefs_unordered_multimap.cc: New test.
* testsuite/experimental/polymorphic_allocator/
pmr_typedefs_unordered_multiset.cc: New test.
* testsuite/experimental/polymorphic_allocator/
pmr_typedefs_unordered_set.cc: New test.
* testsuite/experimental/polymorphic_allocator/pmr_typedefs_vector.cc:
New test.

From-SVN: r265093

6 years agoPR libstdc++/70966 make pmr::new_delete_resource() immortal
Jonathan Wakely [Fri, 12 Oct 2018 12:51:20 +0000 (13:51 +0100)] 
PR libstdc++/70966 make pmr::new_delete_resource() immortal

Construct the program-wide resource objects using placement new. This
means they have dynamic storage duration and won't be destroyed during
termination.

Backport from mainline
2018-07-24  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/70966
* include/experimental/memory_resource (__get_default_resource): Use
placement new to create an object with dynamic storage duration.

Backport from mainline
2018-06-20  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/70966
* include/experimental/memory_resource (__resource_adaptor_imp): Add
static assertions to enforce requirements on pointer types.
(__resource_adaptor_imp::get_allocator()): Add noexcept.
(new_delete_resource, null_memory_resource): Return address of an
object with dynamic storage duration.
(__null_memory_resource): Remove.
* testsuite/experimental/memory_resource/70966.cc: New.

From-SVN: r265092

6 years agoPR libstdc++/77854 document size_type for containers
Jonathan Wakely [Fri, 12 Oct 2018 11:36:18 +0000 (12:36 +0100)] 
PR libstdc++/77854 document size_type for containers

PR libstdc++/77854
* doc/xml/manual/status_cxx1998.xml: Document size_type and
difference_type for containers.
* doc/html/*: Regenerate.

From-SVN: r265082