]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
5 years agore PR rtl-optimization/88751 (Performance regression reload vs lra)
Andreas Krebbel [Fri, 20 Sep 2019 12:18:26 +0000 (12:18 +0000)] 
re PR rtl-optimization/88751 (Performance regression reload vs lra)

Fix PR88751

This patch implements a small improvement for the heuristic in lra
which decides when it has to activate the simpler register allocation
algorithm.

gcc/ChangeLog:

2019-09-20  Andreas Krebbel  <krebbel@linux.ibm.com>

Backport from mainline
2019-06-06  Andreas Krebbel  <krebbel@linux.ibm.com>

PR rtl-optimization/88751
* ira.c (ira): Use the number of the actually referenced registers
when calculating the threshold.

From-SVN: r276000

5 years agoRISC-V: Fix more splitters accidentally calling gen_reg_rtx.
Kito Cheng [Fri, 20 Sep 2019 10:41:51 +0000 (10:41 +0000)] 
RISC-V: Fix more splitters accidentally calling gen_reg_rtx.

PR target/91683
* config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
(riscv_move_integer): Likewise.
* config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
riscv_move_integer arg.
(riscv_legitimize_move): Likewise.
(riscv_force_temporary): New parameter in_splitter.  Don't call
force_reg if true.
(riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
arg.
(riscv_add_offset): Likewise.
(riscv_split_symbol): New parameter in_splitter.  Pass to
riscv_force_temporary.
(riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
arg.
(riscv_move_integer): New parameter in_splitter.  New local
can_create_psuedo.  Don't call riscv_split_integer or force_reg when
in_splitter TRUE.
(riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
riscv_split_symbol, and riscv_force_temporary args.
* config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
riscv_move_integer arg.
(low<mode>+2): Pass TRUE for new riscv_split_symbol arg.

From-SVN: r275997

5 years agore PR target/91269 (unaligned floating-point register with -mcpu=niagara4 -fcall...
Eric Botcazou [Fri, 20 Sep 2019 09:45:26 +0000 (09:45 +0000)] 
re PR target/91269 (unaligned floating-point register with -mcpu=niagara4 -fcall-used-g6)

PR target/91269
* config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.

From-SVN: r275995

5 years agoDaily bump.
GCC Administrator [Fri, 20 Sep 2019 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275985

5 years agore PR fortran/91727 (ICE in conformable_arrays, at fortran/resolve.c:7490)
Steven G. Kargl [Thu, 19 Sep 2019 17:54:53 +0000 (17:54 +0000)] 
re PR fortran/91727 (ICE in conformable_arrays, at fortran/resolve.c:7490)

2019-09-19  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91727
* resolve.c (conformable_arrays):  If array-spec is NULL, then
allocate-object is a scalar.  a conformability check only occurs
for an array source-expr.

2019-09-19  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91727
* gfortran.dg/pr91727.f90: New test.

From-SVN: r275973

5 years agoRISC-V: Fix bad insn splits with paradoxical subregs.
Kito Cheng [Thu, 19 Sep 2019 06:38:23 +0000 (06:38 +0000)] 
RISC-V: Fix bad insn splits with paradoxical subregs.

Shifting by more than the size of a SUBREG_REG doesn't work, so we either
need to disable splits if an input is paradoxical, or else we need to
generate a clean temporary for intermediate results.

Jakub wrote the first version of this patch, so gets primary credit for it.

gcc/
PR target/91635
* config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
extend<SHORT:mode><SUPERQI:mode>2): Don't split if
paradoxical_subreg_p (operands[0]).
(*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
use as intermediate value.

gcc/testsuite/
PR target/91635
* gcc.c-torture/execute/pr91635.c: New test.
* gcc.target/riscv/shift-shift-4.c: New test.
* gcc.target/riscv/shift-shift-5.c: New test.

From-SVN: r275929

5 years agoDaily bump.
GCC Administrator [Thu, 19 Sep 2019 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275923

5 years agobackport: re PR fortran/91550 (ICE in do_subscript, at fortran/frontend-passes.c...
Thomas Koenig [Wed, 18 Sep 2019 17:32:08 +0000 (17:32 +0000)] 
backport: re PR fortran/91550 (ICE in do_subscript, at fortran/frontend-passes.c:2652)

2019-09-18  Thomas Koenig  <tkoenig@gcc.gnu.org>

    Backport from trunk
    PR fortran/91550
    * frontend-passes.c (do_subscript): If step equals
    zero, a previuos error has been reported; do nothing
    in this case.
    * resolve.c (gfc_resolve_iterator): Move error checking
    after type conversion.

2019-09-18  Thomas Koenig  <tkoenig@gcc.gnu.org>

    Backport from trunk
    PR fortran/91550
    * gfortran.dg/do_subscript_6.f90: New test.

From-SVN: r275891

5 years agoDaily bump.
GCC Administrator [Wed, 18 Sep 2019 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275832

5 years agoDaily bump.
GCC Administrator [Tue, 17 Sep 2019 00:16:34 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275762

5 years agoDaily bump.
GCC Administrator [Mon, 16 Sep 2019 00:16:23 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275740

5 years agobackport: re PR fortran/91557 (Bogus warning about unused dummy argument _formal_*)
Thomas Koenig [Sun, 15 Sep 2019 19:48:41 +0000 (19:48 +0000)] 
backport: re PR fortran/91557 (Bogus warning about unused dummy argument _formal_*)

2019-09-15  Thomas Koenig  <tkoenig@gcc.gnu.org>

    Backport from trunk
    PR fortran/91557
    * trans-decl.c (generate_local_decl): Do not warn if the symbol
    is artificial.
    * trans-types.c (get_formal_from_actual_arglist): Set artificial
    attribute on dummy arguments.

2019-09-15  Thomas Koenig  <tkoenig@gcc.gnu.org>

    Backport from trunk
    PR fortran/91557
    * gfortran.dg/warn_unused_dummy_argument_5.f90: New test.

From-SVN: r275733

5 years agoDaily bump.
GCC Administrator [Sun, 15 Sep 2019 00:16:19 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275722

5 years agore PR fortran/91553 (ICE in gfc_real2complex, at fortran/arith.c:2208)
Steven G. Kargl [Sat, 14 Sep 2019 17:05:17 +0000 (17:05 +0000)] 
re PR fortran/91553 (ICE in gfc_real2complex, at fortran/arith.c:2208)

2019-09-14  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91553
* simplify.c (gfc_convert_constant):  During conversion check if the
constant is enclosed in parenthesis, and simplify expression.

2019-09-14  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91553
* gfortran.dg/pr91553.f90: New test.

From-SVN: r275716

5 years agore PR fortran/91566 (ICE in gfc_constructor_copy, at fortran/constructor.c:103)
Steven G. Kargl [Sat, 14 Sep 2019 16:39:41 +0000 (16:39 +0000)] 
re PR fortran/91566 (ICE in gfc_constructor_copy, at fortran/constructor.c:103)

2019-09-14  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91566
* simplify.c (gfc_simplify_merge): Need to simplify expression
after insertation of parenthesis.

2019-09-14  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91566
* gfortran.dg/pr91566.f90: New test.

From-SVN: r275715

5 years agore PR fortran/91642 (ICE: Bad IO basetype (transfer_expr, at fortran/trans-io.c:2507))
Steven G. Kargl [Sat, 14 Sep 2019 16:21:33 +0000 (16:21 +0000)] 
re PR fortran/91642 (ICE: Bad IO basetype (transfer_expr, at fortran/trans-io.c:2507))

2019-09-14  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91642
* io.c (gfc_match_inquire): null() cannot be in an iolength inquire
list.

2019-09-14  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91642
* gfortran.dg/pr91642.f90: New test.

From-SVN: r275714

5 years agoDaily bump.
GCC Administrator [Sat, 14 Sep 2019 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275708

5 years agoDaily bump.
GCC Administrator [Fri, 13 Sep 2019 00:16:15 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275694

5 years agoPR libstdc++/91748 fix std::for_each_n for random access iterators
Jonathan Wakely [Thu, 12 Sep 2019 10:51:58 +0000 (11:51 +0100)] 
PR libstdc++/91748 fix std::for_each_n for random access iterators

PR libstdc++/91748
* include/bits/stl_algo.h (for_each_n): Fix random access iterator
case.
* testsuite/25_algorithms/for_each/for_each_n.cc: Test with random
access iterators.

From-SVN: r275684

5 years agoDaily bump.
GCC Administrator [Thu, 12 Sep 2019 00:16:15 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275679

5 years agoFix Xmethod for shared_ptr::use_count()
Jonathan Wakely [Wed, 11 Sep 2019 11:40:23 +0000 (12:40 +0100)] 
Fix Xmethod for shared_ptr::use_count()

This was reported in https://bugzilla.redhat.com/show_bug.cgi?id=1749578

* python/libstdcxx/v6/xmethods.py (SharedPtrUseCountWorker.__call__):
Fix syntax error.

From-SVN: r275645

5 years agore PR rtl-optimization/89795 (wrong code with -O2 -fno-dce -fno-forward-propagate...
Eric Botcazou [Wed, 11 Sep 2019 10:42:31 +0000 (10:42 +0000)] 
re PR rtl-optimization/89795 (wrong code with -O2 -fno-dce -fno-forward-propagate -fno-sched-pressure)

PR rtl-optimization/89795
* rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.

From-SVN: r275636

5 years agoDaily bump.
GCC Administrator [Wed, 11 Sep 2019 00:16:34 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275621

5 years agoPR c++/91705 - constexpr evaluation rejects ++/-- on floats.
Marek Polacek [Tue, 10 Sep 2019 22:39:46 +0000 (22:39 +0000)] 
PR c++/91705 - constexpr evaluation rejects ++/-- on floats.

* constexpr.c (cxx_eval_increment_expression): Call fold_simple on
the offset.

* g++.dg/cpp1y/constexpr-incr2.C: New test.

From-SVN: r275615

5 years agore PR go/91621 (libgo/mksysinfo.sh: please avoid test ==)
Ian Lance Taylor [Tue, 10 Sep 2019 20:32:42 +0000 (20:32 +0000)] 
re PR go/91621 (libgo/mksysinfo.sh: please avoid test ==)

PR go/91621
    mksysinfo: change test == to test =

    Fixes https://gcc.gnu.org/PR91621

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/194569

From-SVN: r275609

5 years agogo/internal/gccgoimporter: support embedded field in pointer loop
Ian Lance Taylor [Tue, 10 Sep 2019 20:26:11 +0000 (20:26 +0000)] 
go/internal/gccgoimporter: support embedded field in pointer loop

    Backport of https://golang.org/cl/194440.  Original description:

        If an embedded field refers to a type via a pointer, the parser needs
        to know the name of the embedded field. It is possible that the
        pointer type is not yet resolved. This CL fixes the parser to handle
        that case by setting the pointer element type to the unresolved named
        type while the pointer is being resolved.

    Updates golang/go#34182

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/194562

From-SVN: r275607

5 years agoDaily bump.
GCC Administrator [Tue, 10 Sep 2019 00:16:19 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275554

5 years agoUpdate docs for p858 - Constexpr iterator changes available since 9.1.
Edward Smith-Rowland [Mon, 9 Sep 2019 17:17:48 +0000 (17:17 +0000)] 
Update docs for p858 - Constexpr iterator changes available since 9.1.

2019-09-09  Edward Smith-Rowland  <3dw4rd@verizon.net>

Update docs for p858 - Constexpr iterator changes available since 9.1.
* doc/xml/manual/status_cxx2020.xml: Update p0858r0 status.

From-SVN: r275523

5 years agore PR target/87853 (_mm_cmpgt_epi8 broken with -funsigned-char)
Jakub Jelinek [Mon, 9 Sep 2019 10:52:00 +0000 (12:52 +0200)] 
re PR target/87853 (_mm_cmpgt_epi8 broken with -funsigned-char)

PR target/87853
* config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
instead of __v16qs.

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

From-SVN: r275510

5 years agore PR target/91704 ([X86] Codegen for _mm256_cmpgt_epi8 is affected by -funsigned...
Jakub Jelinek [Mon, 9 Sep 2019 10:51:04 +0000 (12:51 +0200)] 
re PR target/91704 ([X86] Codegen for _mm256_cmpgt_epi8 is affected by -funsigned-char)

PR target/91704
* config/i386/avxintrin.h (__v32qs): New typedef.
* config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
instead of __v32qi.

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

From-SVN: r275509

5 years agoDaily bump.
GCC Administrator [Mon, 9 Sep 2019 00:17:04 +0000 (00:17 +0000)] 
Daily bump.

From-SVN: r275500

5 years agoDaily bump.
GCC Administrator [Sun, 8 Sep 2019 00:16:30 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275492

5 years agore PR fortran/91589 (ICE in gfc_conv_component_ref, at fortran/trans-expr.c:2447)
Paul Thomas [Sat, 7 Sep 2019 14:41:25 +0000 (14:41 +0000)] 
re PR fortran/91589 (ICE in gfc_conv_component_ref, at fortran/trans-expr.c:2447)

2019-09-07  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/91589
* primary.c (gfc_match_varspec): Return MATCH_NO on an apparent
component ref, when the primary type is intrinsic.

2019-09-07  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/91589
* gfortran.dg/pr91589.f90 : New test.

From-SVN: r275487

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

From-SVN: r275481

5 years agoDaily bump.
GCC Administrator [Fri, 6 Sep 2019 00:16:33 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275448

5 years agobackport: re PR fortran/91496 (!GCC$ directives error if mistyped or unknown)
Harald Anlauf [Thu, 5 Sep 2019 21:02:44 +0000 (21:02 +0000)] 
backport: re PR fortran/91496 (!GCC$ directives error if mistyped or unknown)

2019-09-05  Harald Anlauf  <anlauf@gmx.de>

Backport from mainline
PR fortran/91496
* gfortran.h: Extend struct gfc_iterator for loop annotations.
* array.c (gfc_copy_iterator): Copy loop annotations by IVDEP,
VECTOR, and NOVECTOR pragmas.
* decl.c (gfc_match_gcc_ivdep, gfc_match_gcc_vector)
(gfc_match_gcc_novector): New matcher functions handling IVDEP,
VECTOR, and NOVECTOR pragmas.
* match.h: Declare prototypes of matcher functions handling IVDEP,
VECTOR, and NOVECTOR pragmas.
* parse.c (decode_gcc_attribute, parse_do_block)
(parse_executable): Decode IVDEP, VECTOR, and NOVECTOR pragmas;
emit warning for unrecognized pragmas instead of error.
* trans-stmt.c (gfc_trans_simple_do, gfc_trans_do): Add code to
emit annotations for IVDEP, VECTOR, and NOVECTOR pragmas.
* gfortran.texi: Document IVDEP, VECTOR, and NOVECTOR pragmas.

PR fortran/91496
* parse.c (parse_executable): Improve error messages for
improperly placed pragmas not preceeding a loop.

PR fortran/91496
* gfortran.dg/pr91496.f90: New testcase.

PR fortran/91496
* gfortran.dg/directive_unroll_5.f90: Adjust error message.

From-SVN: r275445

5 years agore PR fortran/91660 (Missing error on invalid type declaration)
Steven G. Kargl [Thu, 5 Sep 2019 18:37:13 +0000 (18:37 +0000)] 
re PR fortran/91660 (Missing error on invalid type declaration)

2019-09-05  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91660
* decl.c (gfc_match_decl_type_spec): Improve and restore error
message for malformed types-spec.

2019-09-05  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91660
* gfortran.dg/pdt_4.f03: Fix invalid code.
* gfortran.dg/pr91660_1.f90: New test.
* gfortran.dg/pr91660_2.f90: Ditto.

From-SVN: r275427

5 years agoDaily bump.
GCC Administrator [Thu, 5 Sep 2019 00:16:22 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275394

5 years ago[AArch64] Fix PR81800
Wilco Dijkstra [Wed, 4 Sep 2019 12:42:22 +0000 (12:42 +0000)] 
[AArch64] Fix PR81800

PR81800 is about the lrint inline giving spurious FE_INEXACT exceptions.
The previous change for PR81800 didn't fix this: when lrint is disabled
in the backend, the midend will simply use llrint.  This actually makes
things worse since llrint now also ignores FE_INVALID exceptions!
The fix is to disable lrint/llrint on double if the size of a long is
smaller (ie. ilp32).

    gcc/
PR target/81800
* gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
operand is larger than a long int.

    testsuite/
PR target/81800
* gcc.target/aarch64/no-inline-lrint_3.c: New test.

From-SVN: r275373

5 years agoDaily bump.
GCC Administrator [Wed, 4 Sep 2019 00:16:28 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275361

5 years agore PR tree-optimization/91597 (GCC miscompiles a branch depending on a pointer tag)
Jakub Jelinek [Tue, 3 Sep 2019 16:55:31 +0000 (18:55 +0200)] 
re PR tree-optimization/91597 (GCC miscompiles a branch depending on a pointer tag)

PR tree-optimization/91597
* tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
BIT_AND_EXPR optimization for pointers, even if both operand
ranges don't include NULL, the result can be NULL.

* gcc.c-torture/execute/pr91597.c: New test.

From-SVN: r275345

5 years agoDaily bump.
GCC Administrator [Tue, 3 Sep 2019 00:16:35 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275327

5 years agore PR fortran/91552 (ICE with valid array constructor)
Steven G. Kargl [Mon, 2 Sep 2019 17:16:05 +0000 (17:16 +0000)] 
re PR fortran/91552 (ICE with valid array constructor)

2019-09-02  Steven G. Kargl  <kargl@gc.gnu.org>

PR fortran/91552
* array.c (walk_array_constructor): New function.
(gfc_match_array_constructor): Use it.

2019-09-02  Steven G. Kargl  <kargl@gc.gnu.org>

PR fortran/91552
* gfortran.dg/pr91552.f90: New test.

From-SVN: r275323

5 years agoUpdate libstdc++ docs for library version bumps
Jonathan Wakely [Mon, 2 Sep 2019 11:10:03 +0000 (12:10 +0100)] 
Update libstdc++ docs for library version bumps

* doc/xml/manual/abi.xml: Document 9.x library versions.
* doc/html/*: Regenerate.

From-SVN: r275310

5 years agoBackport r275292
Martin Liska [Mon, 2 Sep 2019 08:58:39 +0000 (10:58 +0200)] 
Backport r275292

2019-09-02  Martin Liska  <mliska@suse.cz>

Backport from mainline
2019-09-02  Martin Liska  <mliska@suse.cz>

PR c++/91155
* c-common.c (fname_as_string): Use cxx_printable_name for
__PRETTY_FUNCTION__ same as was used before r265711.
2019-09-02  Martin Liska  <mliska@suse.cz>

Backport from mainline
2019-09-02  Martin Liska  <mliska@suse.cz>

PR c++/91155
* g++.dg/torture/pr91155.C: New test.

From-SVN: r275302

5 years agoBackport r275291
Martin Liska [Mon, 2 Sep 2019 08:58:17 +0000 (10:58 +0200)] 
Backport r275291

2019-09-02  Martin Liska  <mliska@suse.cz>

Backport from mainline
2019-09-02  Martin Liska  <mliska@suse.cz>

PR gcov-profile/91601
* gcov.c (path_contains_zero_cycle_arc): Rename to ...
(path_contains_zero_or_negative_cycle_arc): ... this and handle
also negative edges.
(circuit): Handle also negative edges as they can happen
in some situations.

From-SVN: r275301

5 years agoUpdate Solaris baselines for GCC 9.3
Rainer Orth [Mon, 2 Sep 2019 08:40:41 +0000 (08:40 +0000)] 
Update Solaris baselines for GCC 9.3

* config/abi/post/i386-solaris2.10/baseline_symbols.txt: Regenerate.
* config/abi/post/i386-solaris2.10/amd64/baseline_symbols.txt: Likewise.
* config/abi/post/i386-solaris2.11/baseline_symbols.txt: Likewise.
* config/abi/post/i386-solaris2.11/amd64/baseline_symbols.txt: Likewise.
* config/abi/post/sparc-solaris2.10/baseline_symbols.txt: Likewise.
* config/abi/post/sparc-solaris2.10/sparcv9/baseline_symbols.txt:
Likewise.
* config/abi/post/sparc-solaris2.11/baseline_symbols.txt: Likewise.
* config/abi/post/sparc-solaris2.11/sparcv9/baseline_symbols.txt:
Likewise.

From-SVN: r275300

5 years agoDaily bump.
GCC Administrator [Mon, 2 Sep 2019 00:16:33 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275289

5 years agoPR c++/91129 - wrong error with binary op in template argument.
Marek Polacek [Sun, 1 Sep 2019 22:59:10 +0000 (22:59 +0000)] 
PR c++/91129 - wrong error with binary op in template argument.

* typeck.c (warn_for_null_address): Use fold_for_warn instead of
fold_non_dependent_expr.
(cp_build_binary_op): Likewise.

* g++.dg/cpp1y/nontype1.C: New test.

From-SVN: r275286

5 years agore PR target/91472 (gmp testsuite segfaults with gcc-8 and gcc-9, works fine with...
Eric Botcazou [Sun, 1 Sep 2019 12:57:56 +0000 (12:57 +0000)] 
re PR target/91472 (gmp testsuite segfaults with gcc-8 and gcc-9, works fine with gcc-7)

PR target/91472
* config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
during LRA/reload in PIC mode if the PIC register hasn't been used yet.
(sparc_pic_register_p): Test reload_in_progress for consistency's sake.

From-SVN: r275272

5 years agoDaily bump.
GCC Administrator [Sun, 1 Sep 2019 00:16:43 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275263

5 years ago* es.po: Update.
Joseph Myers [Sat, 31 Aug 2019 21:49:46 +0000 (22:49 +0100)] 
* es.po: Update.

From-SVN: r275259

5 years ago[c-family] Backport fix for PCH / PR61250.
Iain Sandoe [Sat, 31 Aug 2019 19:12:10 +0000 (19:12 +0000)] 
[c-family] Backport fix for PCH / PR61250.

When we are parsing a source file, the very first token might
be a PRAGMA_GCC_PCH_PREPROCESS. This indicates that we are going
read in a PCH file (named as the value of the pragma). If we don't
see this pragma, then we know that it's OK to release any resources
that the host might have set aside for the PCH file.

There is a thinko in the current implementation, in that the decision
to release resources is happening unconditionally right after the first
token is extracted but before it's been checked or acted upon.

This leads to the pch bug on Darwin, because we actually do release
resources - which are subsequently (reasonably) assumed to be available
when reading a PCH file. We then get random crashes or hangs depending
on the interaction between unmmap and malloc.

The bug is present everywhere but doesn't show on (say) Linux, since
the release of PCH resources is a NOP there.

This effects all the c-family front ends, because they all use
c_lex_with_flags () to implement this.

The solution is to check for the PRAGMA_GCC_PCH_PREPROCESS and only call
c_common_no_more_pch () when that is not the first token.

A secondary effect of the collection is that the name of the PCH file
can be collected during the ggc_pch_read() reset of state. Therefore
we should issue any diagnostic that might name the file before the
collections are triggered.

gcc/

2019-08-31  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline
2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>

PR pch/61250
* ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
and issue any diagnostics needed before collecting the pre-PCH
state.

gcc/c-family/

2019-08-31  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline
2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>

PR pch/61250
* c-lex.c (c_lex_with_flags):  Don't call
c_common_no_more_pch () from here.

gcc/c/

2019-08-31  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>

PR pch/61250
* c-parser.c (c_parse_file): Call c_common_no_more_pch ()
after determining that the first token is not
PRAGMA_GCC_PCH_PREPROCESS.

gcc/cp/

2019-08-31  Iain Sandoe  <iain@sandoe.co.uk>

Backported from mainline
2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>

PR pch/61250
* parser.c (cp_parser_initial_pragma): Call c_common_no_more_pch ()
after determining that the first token is not
PRAGMA_GCC_PCH_PREPROCESS.

From-SVN: r275246

5 years agore PR fortran/91587 (ICE in gfc_resolve_filepos, at fortran/io.c:2913)
Steven G. Kargl [Sat, 31 Aug 2019 03:27:45 +0000 (03:27 +0000)] 
re PR fortran/91587 (ICE in gfc_resolve_filepos, at fortran/io.c:2913)

2019-08-30  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91587
* io.c (match_filepos): MATCH_ERROR should branch to a syntax error.

2019-08-30  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91587
* gfortran.dg/pr91587.f90: New test.

From-SVN: r275241

5 years agoDaily bump.
GCC Administrator [Sat, 31 Aug 2019 00:16:47 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275234

5 years agore PR fortran/91565 (ICE in gfc_simplify_reshape, at fortran/simplify.c:6707 etc.)
Steven G. Kargl [Fri, 30 Aug 2019 23:30:35 +0000 (23:30 +0000)] 
re PR fortran/91565 (ICE in gfc_simplify_reshape, at fortran/simplify.c:6707 etc.)

2019-08-30  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91565
* simplify.c (gfc_simplify_reshape): Add additional checks of the
ORDER dummy argument.

2019-08-30  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91565
* gfortran.dg/pr91565.f90: New test.

From-SVN: r275230

5 years agore PR fortran/91564 (ICE in gimplify_expr, at gimplify.c:14147)
Steven G. Kargl [Fri, 30 Aug 2019 23:19:30 +0000 (23:19 +0000)] 
re PR fortran/91564 (ICE in gimplify_expr, at gimplify.c:14147)

2019-08-30  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91564
* check.c (gfc_check_kill_sub): Additional checks on status dummy
argument.

2019-08-30  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91564
* gfortran.dg/pr91564.f90: New test.

From-SVN: r275229

5 years agore PR fortran/91551 (ICE in sort_actual, at fortran/intrinsic.c:4193)
Steven G. Kargl [Fri, 30 Aug 2019 23:02:37 +0000 (23:02 +0000)] 
re PR fortran/91551 (ICE in sort_actual, at fortran/intrinsic.c:4193)

2019-08-30  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91551
* intrinsic.c (sort_actual): ALLOCATED has one argument. Check for
no argument case.

2019-08-30  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91551
* gfortran.dg/allocated_3.f90

From-SVN: r275228

5 years agobackport: re PR target/91481 (POWER9 "DARN" RNG intrinsic produces repeated output...
Segher Boessenkool [Fri, 30 Aug 2019 13:53:11 +0000 (15:53 +0200)] 
backport: re PR target/91481 (POWER9 "DARN" RNG intrinsic produces repeated output (CVE-2019-15847))

Backport from trunk
2019-08-23  Segher Boessenkool  <segher@kernel.crashing.org>

gcc/testsuite/
PR target/91481
* gcc.target/powerpc/darn-3.c: New testcase.

From-SVN: r275176

5 years agobackport: re PR target/91481 (POWER9 "DARN" RNG intrinsic produces repeated output...
Segher Boessenkool [Fri, 30 Aug 2019 13:51:26 +0000 (15:51 +0200)] 
backport: re PR target/91481 (POWER9 "DARN" RNG intrinsic produces repeated output (CVE-2019-15847))

Backport from trunk
2019-08-22  Segher Boessenkool  <segher@kernel.crashing.org>

PR target/91481
* config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
and UNSPEC_DARN_RAW.
(unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
UNSPECV_DARN_RAW.
(darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
(darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
(darn): Use an unspec_volatile, and UNSPECV_DARN.

From-SVN: r275175

5 years agobackport: altivec.md (unspec): Delete UNSPEC_DARN...
Segher Boessenkool [Fri, 30 Aug 2019 13:48:48 +0000 (15:48 +0200)] 
backport: altivec.md (unspec): Delete UNSPEC_DARN...

Backport from trunk
2019-08-22  Segher Boessenkool  <segher@kernel.crashing.org>

* config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
* config/rs6000/rs6000.md (unspec): ... here.
* config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
*cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
cmpeqb, *cmpeqb_internal): Delete, move to...
* config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
*cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
cmpeqb, *cmpeqb_internal): ... here.

From-SVN: r275170

5 years agobackport: re PR tree-optimization/90278 (ICE: verify_gimple failed (error: statement...
Richard Biener [Fri, 30 Aug 2019 13:14:59 +0000 (13:14 +0000)] 
backport: re PR tree-optimization/90278 (ICE: verify_gimple failed (error: statement marked for throw, but doesn't))

2019-08-30  Richard Biener  <rguenther@suse.de>

Backport from mainline
2019-04-29  Richard Biener  <rguenther@suse.de>

PR tree-optimization/90278
* tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
EH on comparison simplification.

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

From-SVN: r275167

5 years agoDaily bump.
GCC Administrator [Fri, 30 Aug 2019 00:16:20 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275058

5 years agoPR libstdc++/91067 add more missing exports for directory iterators
Jonathan Wakely [Thu, 29 Aug 2019 13:22:13 +0000 (14:22 +0100)] 
PR libstdc++/91067 add more missing exports for directory iterators

PR libstdc++/91067
* acinclude.m4 (libtool_VERSION): Bump to 6:28:0.
* configure: Regenerate.
* config/abi/pre/gnu.ver (GLIBCXX_3.4.28): Add new version. Export
missing symbols.
* testsuite/27_io/filesystem/iterators/91067.cc: Test move
constructors.
* testsuite/util/testsuite_abi.cc: Add new symbol version.

From-SVN: r275033

5 years agobaseline_symbols.txt: Update.
Jakub Jelinek [Thu, 29 Aug 2019 10:27:38 +0000 (12:27 +0200)] 
baseline_symbols.txt: Update.

* config/abi/post/aarch64-linux-gnu/baseline_symbols.txt: Update.
* config/abi/post/s390x-linux-gnu/baseline_symbols.txt: Update.

From-SVN: r275029

5 years agore PR tree-optimization/91568 (internal compiler error: in vect_schedule_slp_instance...
Richard Biener [Thu, 29 Aug 2019 08:12:57 +0000 (08:12 +0000)] 
re PR tree-optimization/91568 (internal compiler error: in vect_schedule_slp_instance, at tree-vect-slp.c:3922)

2019-08-29  Richard Biener  <rguenther@suse.de>

PR tree-optimization/91568
* tree-vectorizer.h (_slp_tree::max_nunits): Add.
(vect_update_max_nunits): Add overload for poly_uint64.
* tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
(vect_build_slp_tree): Record max_nunits into the subtree
and merge it upwards.
(vect_print_slp_tree): Print max_nunits.

* gfortran.dg/pr91568.f: New testcase.

From-SVN: r275024

5 years agoDaily bump.
GCC Administrator [Thu, 29 Aug 2019 00:16:20 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r275020

5 years agoUpdate ABI baselines for x86 and powerpc GNU targets
Jonathan Wakely [Wed, 28 Aug 2019 22:16:33 +0000 (23:16 +0100)] 
Update ABI baselines for x86 and powerpc GNU targets

* config/abi/post/i386-linux-gnu/baseline_symbols.txt: Update.
* config/abi/post/i486-linux-gnu/baseline_symbols.txt: Update.
* config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
* config/abi/post/powerpc64-linux-gnu/32/baseline_symbols.txt: Update.
* config/abi/post/powerpc64-linux-gnu/baseline_symbols.txt: Update.
* config/abi/post/x86_64-linux-gnu/32/baseline_symbols.txt: Update.
* config/abi/post/x86_64-linux-gnu/baseline_symbols.txt: Update.

From-SVN: r275014

5 years ago* es.po: Update.
Joseph Myers [Wed, 28 Aug 2019 21:41:01 +0000 (22:41 +0100)] 
* es.po: Update.

From-SVN: r275013

5 years agobackport: re PR tree-optimization/90637 (ICE in vect_loop_versioning, at tree-vect...
Richard Biener [Wed, 28 Aug 2019 12:12:20 +0000 (12:12 +0000)] 
backport: re PR tree-optimization/90637 (ICE in vect_loop_versioning, at tree-vect-loop-manip.c:3055)

2019-08-28  Richard Biener  <rguenther@suse.de>

Backport from mainline
2019-05-27  Richard Biener  <rguenther@suse.de>

PR tree-optimization/90637
* tree-ssa-sink.c (statement_sink_location): Honor the
computed sink location for single-uses.

* gcc.dg/gomp/pr90637.c: New testcase.

From-SVN: r274989

5 years agoDaily bump.
GCC Administrator [Wed, 28 Aug 2019 00:16:18 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r274979

5 years agoDaily bump.
GCC Administrator [Tue, 27 Aug 2019 00:16:29 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r274943

5 years agobackport: Enable math functions linking with static library for LTO
Xiong Hu Luo [Mon, 26 Aug 2019 08:53:27 +0000 (08:53 +0000)] 
backport: Enable math functions linking with static library for LTO

Backport r274411 from trunk to gcc-9-branch

Backport r274411 of "Enable math functions linking with static library
for LTO" from mainline to gcc-9-branch.

Bootstrapped/Regression-tested on Linux POWER8 LE.

gcc/ChangeLog
2019-08-26  Xiong Hu Luo  <luoxhu@linux.ibm.com>

Backport r274411 from trunk to gcc-9-branch.
2019-08-14  Xiong Hu Luo  <luoxhu@linux.ibm.com>

PR lto/91287
* builtins.c (builtin_with_linkage_p): New function.
* builtins.h (builtin_with_linkage_p): New function.
* symtab.c (write_symbol): Remove redundant assert.
* lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
Remove FIXME and use builtin_with_linkage_p.

From-SVN: r274921

5 years agoDaily bump.
GCC Administrator [Mon, 26 Aug 2019 00:16:35 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r274918

5 years agore PR target/91533 (abs pattern generates MMX instructions but fails to call EMMS)
Uros Bizjak [Sun, 25 Aug 2019 18:21:04 +0000 (20:21 +0200)] 
re PR target/91533 (abs pattern generates MMX instructions but fails to call EMMS)

PR target/91533
Backport from mainline
2019-06-30  Uroš Bizjak  <ubizjak@gmail.com>

* config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
* config/i386/i386-builtin.def (__builtin_ia32_pabsb):
Use CODE_FOR_ssse3_absv8qi2.
(__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
(__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.

From-SVN: r274910

5 years agoDaily bump.
GCC Administrator [Sun, 25 Aug 2019 00:16:46 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r274906

5 years agoDaily bump.
GCC Administrator [Sat, 24 Aug 2019 00:16:33 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r274897

5 years agoPR c++/91521 - wrong error with operator->.
Marek Polacek [Fri, 23 Aug 2019 23:26:17 +0000 (23:26 +0000)] 
PR c++/91521 - wrong error with operator->.

* decl.c (grokdeclarator): Return error_mark_node for an invalid
trailing return type.

* g++.dg/parse/operator8.C: New test.

From-SVN: r274892

5 years agoFix libstdc++ lstat missing return type for Windows target.
Joseph Myers [Fri, 23 Aug 2019 21:05:50 +0000 (22:05 +0100)] 
Fix libstdc++ lstat missing return type for Windows target.

Building for i686-mingw32 target (with some local changes) produced an
error

error: ISO C++ forbids declaration of 'lstat' with no type [-fpermissive]

in libstdc++-v3/src/filesystem/ops-common.h.  This patch adds the
missing return type.  OK to commit (trunk and GCC 9 branch)?

Note 1: I haven't run the testsuite with this patch, but it fixes the
build failure I see (in sources with other local changes).

Note 2: I don't know why this hasn't produced build failures for other
people, but the missing return type looks wrong in any case even if
other local changes are for some reason needed for it to produce an
error.

* src/filesystem/ops-common.h [_GLIBCXX_FILESYSTEM_IS_WINDOWS]
(std::filesystem::__gnu_posix::lstat): Add return type.

From-SVN: r274886

5 years ago* zh_CN.po: Update.
Joseph Myers [Fri, 23 Aug 2019 19:48:22 +0000 (20:48 +0100)] 
* zh_CN.po: Update.

From-SVN: r274869

5 years agomips.md (mips_get_fcsr, [...]): Use SI machine mode for unspec_volatile operand.
Mihailo Stojanovic [Fri, 23 Aug 2019 19:09:07 +0000 (19:09 +0000)] 
mips.md (mips_get_fcsr, [...]): Use SI machine mode for unspec_volatile operand.

        * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
        machine mode for unspec_volatile operand.

        * gcc.target/mips/get-fcsr-3.c: New test.

From-SVN: r274864

5 years agoBackport r274504
Martin Liska [Fri, 23 Aug 2019 11:42:19 +0000 (13:42 +0200)] 
Backport r274504

2019-08-23  Martin Liska  <mliska@suse.cz>

PR ipa/91508
Backport from mainline
2019-08-15  Martin Liska  <mliska@suse.cz>

PR ipa/91438
* cgraph.c (cgraph_node::remove): When setting
n->origin = NULL for all nested functions, reset
also next_nested.

From-SVN: r274853

5 years agoBackport r274503
Martin Liska [Fri, 23 Aug 2019 11:41:32 +0000 (13:41 +0200)] 
Backport r274503

2019-08-23  Martin Liska  <mliska@suse.cz>

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

* cgraph.c (cgraph_node::verify_node): Verify origin, nested
and next_nested.

From-SVN: r274852

5 years agoBackport r274502
Martin Liska [Fri, 23 Aug 2019 11:41:16 +0000 (13:41 +0200)] 
Backport r274502

2019-08-23  Martin Liska  <mliska@suse.cz>

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

PR ipa/91404
* passes.c (order): Remove.
(uid_hash_t): Likewise).
(remove_cgraph_node_from_order): Remove from set
of pointers (cgraph_node *).
(insert_cgraph_node_to_order): New.
(duplicate_cgraph_node_to_order): New.
(do_per_function_toporder): Register all 3 cgraph hooks.
Skip removed_nodes now as we know about all of them.

From-SVN: r274851

5 years agoDaily bump.
GCC Administrator [Fri, 23 Aug 2019 00:16:50 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r274842

5 years agoDaily bump.
GCC Administrator [Thu, 22 Aug 2019 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r274815

5 years ago[Darwin, fixincludes] Backport fix for PR83531
Iain Sandoe [Wed, 21 Aug 2019 19:18:14 +0000 (19:18 +0000)] 
[Darwin, fixincludes] Backport fix for PR83531

There is no reasonable chance that the SDKs in question will be re-
issued, so the only viable solution is a fixincludes.

2019-08-21  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-08-18  C.G. Dogan <gcc+cgdogan.00@gmail.com>
    Iain Sandoe  <iain@sandoe.co.uk>

PR target/83531
* inclhack.def (darwin_api_availability): New; strip leading
underscores from API_XXXX defines.
* fixincl.x: Regenerate.
* tests/base/os/availability.h: New file.

From-SVN: r274807

5 years ago[Darwin, PPC] Fix fail of cpp/assert4.c
Iain Sandoe [Wed, 21 Aug 2019 18:45:45 +0000 (18:45 +0000)] 
[Darwin, PPC] Fix fail of cpp/assert4.c

This test needs the cpu and machine asserts to be implemented
which hadn't been done for PPC Darwin.

2019-08-21  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline
2019-08-18  Iain Sandoe  <iain@sandoe.co.uk>

* config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
for cpu and machine.  Factor 64/32b builtins.

From-SVN: r274806

5 years agoDaily bump.
GCC Administrator [Wed, 21 Aug 2019 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r274762

5 years agoFix markdown in Doxygen comments for std::reduce
Jonathan Wakely [Tue, 20 Aug 2019 21:40:37 +0000 (22:40 +0100)] 
Fix markdown in Doxygen comments for std::reduce

* include/std/numeric (reduce): Fix Doxygen markup.

From-SVN: r274759

5 years agoImplement new serial algorithms from Parallelism TS (P0024R2)
Jonathan Wakely [Tue, 20 Aug 2019 21:03:11 +0000 (22:03 +0100)] 
Implement new serial algorithms from Parallelism TS (P0024R2)

These new (non-parallel) algorithms were added to C++17 along with the
parallel algorithms, but were missing from libstdc++.

Backported for PR libstdc++/91495, replacing the use of
std::__size_to_integer which is not present on the branch.

Backport from mainline
2019-06-19  Jonathan Wakely  <jwakely@redhat.com>

* include/std/numeric (reduce(Iter, Iter, T, BinOp)): Fix value
category used in invocable check.
(reduce(Iter, Iter, T)): Pass initial value as rvalue.
* testsuite/26_numerics/reduce/2.cc: New test.

Backport from mainline
2019-06-18  Jonathan Wakely  <jwakely@redhat.com>

* include/bits/algorithmfwd.h: Change title of doc group.
* include/bits/stl_algo.h (for_each_n): Add new C++17 algorithm from
P0024R2.
* include/bits/stl_numeric.h: Define doc group and add algos to it.
* include/std/numeric (__is_random_access_iter): New internal trait.
(reduce, transform_reduce, exclusive_scan, inclusive_scan)
(transform_exclusive_scan, transform_inclusive_scan): Likewise.
* testsuite/25_algorithms/for_each/for_each_n.cc: New test.
* testsuite/26_numerics/exclusive_scan/1.cc: New test.
* testsuite/26_numerics/inclusive_scan/1.cc: New test.
* testsuite/26_numerics/reduce/1.cc: New test.
* testsuite/26_numerics/transform_exclusive_scan/1.cc: New test.
* testsuite/26_numerics/transform_inclusive_scan/1.cc: New test.
* testsuite/26_numerics/transform_reduce/1.cc: New test.
* testsuite/util/testsuite_iterators.h (test_container::size()): New
member function.

From-SVN: r274754

5 years agobaseline_symbols.txt: Update.
Uros Bizjak [Tue, 20 Aug 2019 20:13:16 +0000 (22:13 +0200)] 
baseline_symbols.txt: Update.

* config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Update.

From-SVN: r274753

5 years agore PR rtl-optimization/91347 (hppa: wrong code generated with tail call optimisation)
Eric Botcazou [Tue, 20 Aug 2019 09:13:29 +0000 (09:13 +0000)] 
re PR rtl-optimization/91347 (hppa: wrong code generated with tail call optimisation)

PR rtl-optimization/91347
* dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.

From-SVN: r274709

5 years agoDaily bump.
GCC Administrator [Tue, 20 Aug 2019 00:16:18 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r274688

5 years ago[aarch64] PR target/91386 Use copy_rtx to avoid modifying original insns in peep2...
Richard Earnshaw [Mon, 19 Aug 2019 16:11:30 +0000 (16:11 +0000)] 
[aarch64] PR target/91386 Use copy_rtx to avoid modifying original insns in peep2 pattern

PR target/91386 is a situation where a peephole2 pattern substitution
is discarded late because the selected instructions contain
frame-related notes that we cannot redistribute (because the pattern
has more than one insn in the output).  Unfortunately, the original
insns were being modified during the generation, so after the undo we
are left with corrupt RTL.

We avoid this by ensuring that the modifications are always made on a
copy, so that the original insns are never changed.

Backport from mainline
2019-09-09  Richard Earnshaw  <rearnsha@arm.com>

PR target/91386
        * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
        to preserve the contents of the original insns.

From-SVN: r274675

5 years agore PR fortran/91485 (Erroneous conflict between variable x and operator(.x.))
Steven G. Kargl [Mon, 19 Aug 2019 03:21:46 +0000 (03:21 +0000)] 
re PR fortran/91485 (Erroneous conflict between variable x and operator(.x.))

2019-08-18  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91485
module.c (gfc_match_use): User defined operator cannot conflict with
a rename symbol.

2019-08-18  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91485
* gfortran.dg/pr91485.f90: New test.

From-SVN: r274632

5 years agoDaily bump.
GCC Administrator [Mon, 19 Aug 2019 00:16:14 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r274628

5 years agoDarwin, libsanitizer - remove reference to __cxa_rethrow_primary_exception.
Iain Sandoe [Sun, 18 Aug 2019 19:11:29 +0000 (19:11 +0000)] 
Darwin, libsanitizer - remove reference to __cxa_rethrow_primary_exception.

For some Darwin versions the absence of the rethrow_primary_exception
symbol causes almost all sanitizer tests to fail.
The symbol is not present in libstdc++ and, therefore is is correct to
remove the reference to it for all platforms.  We do this by adding a
new guard "ASAN_HAS_CXA_RETHROW_PRIMARY_EXCEPTION".

For the backported version, to avoid bumping the library version, this
is only applied for Darwin (because of the way that symbol interposing
works on Darwin, this does not alter the exported symbols list).

libsanitizer/

2019-08-18  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline
2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>

PR libsanitizer/87880
* asan/asan_interceptors.h:
(ASAN_INTERCEPT___CXA_RETHROW_PRIMARY_EXCEPTION): New.
* asan/Makefile.am (DEFS): Add (for Darwin only)
ASAN_HAS_CXA_RETHROW_PRIMARY_EXCEPTION, defined to 0.
* asan/Makefile.in: Regenerated.

From-SVN: r274625

5 years agoDaily bump.
GCC Administrator [Sun, 18 Aug 2019 00:16:16 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r274617

5 years agore PR fortran/91471 (f951: internal compiler error: gfc_variable_attr(): Bad array...
Steven G. Kargl [Sat, 17 Aug 2019 18:16:51 +0000 (18:16 +0000)] 
re PR fortran/91471 (f951: internal compiler error: gfc_variable_attr(): Bad array reference)

2019-08-17  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91471
* primary.c (gfc_variable_attr): Remove a gfc_internal_error(),
which cannot be reached by conforming Fortran code, but seems to
be reachable from nonconforming Fortran code.  Treat the AR_UNKNOWN
case as a no-op.

2019-08-17  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91471
* gfortran.dg/pr91471.f90: New test.

From-SVN: r274612