]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
5 years agore PR fortran/91641 (ICE in gfc_conv_is_contiguous_expr, at fortran/trans-intrinsic...
Steven G. Kargl [Tue, 1 Oct 2019 18:16:36 +0000 (18:16 +0000)] 
re PR fortran/91641 (ICE in gfc_conv_is_contiguous_expr, at fortran/trans-intrinsic.c:2857)

2019-10-01  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91641
* check.c (gfc_check_is_contiguous): null() cannot be an actual
argument to is_contiguous().

2019-10-01  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91641
* gfortran.dg/pr91641.f90: New test.

From-SVN: r276419

5 years agobackport: re PR c++/88562 (Incorrect pointer incrementing on SH4)
Oleg Endo [Tue, 1 Oct 2019 14:58:10 +0000 (14:58 +0000)] 
backport: re PR c++/88562 (Incorrect pointer incrementing on SH4)

gcc/
2019-10-01  Oleg Endo  <olegendo@gcc.gnu.org>

Backport from mainline

2019-10-01  Oleg Endo  <olegendo@gcc.gnu.org>

PR target/88562
* config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
sh_check_add_incdec_notes to preserve REG_INC notes when replacing
a memory access insn.

From-SVN: r276412

5 years ago[AArch64] Don't split 64-bit constant stores to volatile location
Kyrylo Tkachov [Tue, 1 Oct 2019 10:33:40 +0000 (10:33 +0000)] 
[AArch64] Don't split 64-bit constant stores to volatile location

2019-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

Backport from mainline
2019-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

* config/aarch64/aarch64.md (mov<mode>): Don't call
aarch64_split_dimode_const_store on volatile MEM.

* gcc.target/aarch64/nosplit-di-const-volatile_1.c: New test.

From-SVN: r276398

5 years agodriver: Also prune joined switches with negation
Kyrylo Tkachov [Tue, 1 Oct 2019 10:28:40 +0000 (10:28 +0000)] 
driver: Also prune joined switches with negation

2019-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

Backport from mainline
2019-09-26  Matt Turner  <mattst88@gmail.com>

PR driver/69471
* config/aarch64/aarch64.opt (march=): Add Negative(march=).
(mtune=): Add Negative(mtune=).
(mcpu=): Add Negative(mcpu=).
* config/arm/arm.opt: Likewise.

From-SVN: r276397

5 years agoDaily bump.
GCC Administrator [Tue, 1 Oct 2019 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r276385

5 years ago* es.po: Update.
Joseph Myers [Mon, 30 Sep 2019 21:54:07 +0000 (22:54 +0100)] 
* es.po: Update.

From-SVN: r276381

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

From-SVN: r276275

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

From-SVN: r276263

5 years agoPR c++/91923 - failure-to-SFINAE with class type NTTP in C++17.
Marek Polacek [Sat, 28 Sep 2019 11:50:11 +0000 (11:50 +0000)] 
PR c++/91923 - failure-to-SFINAE with class type NTTP in C++17.

* pt.c (invalid_nontype_parm_type_p): Only emit errors when
tf_error.

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

From-SVN: r276250

5 years agobackport: re PR target/86805 (sh port needs updating for CVE-2017-5753)
Oleg Endo [Sat, 28 Sep 2019 08:55:03 +0000 (08:55 +0000)] 
backport: re PR target/86805 (sh port needs updating for CVE-2017-5753)

gcc/
2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>

Backport from mainline
2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>

PR target/86805
* config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.

From-SVN: r276245

5 years agobackport: re PR target/80672 (gcc/config/sh/sh.c:716: prefer compare to find.)
Oleg Endo [Sat, 28 Sep 2019 08:37:23 +0000 (08:37 +0000)] 
backport: re PR target/80672 (gcc/config/sh/sh.c:716: prefer compare to find.)

gcc/
2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>

Backport from mainline
2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>

PR target/80672
* config/sh/sh.c (parse_validate_atomic_model_option): Use
std::string::compare instead of std::string::find.

From-SVN: r276241

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

From-SVN: r276226

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

From-SVN: r276171

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

From-SVN: r276138

5 years ago[arm] Fix use of CRC32 intrinsics with Armv8-a and hard-float
Kyrylo Tkachov [Wed, 25 Sep 2019 13:48:29 +0000 (13:48 +0000)] 
[arm] Fix use of CRC32 intrinsics with Armv8-a and hard-float

Backport from mainline
2019-08-22  Kyrylo Tkachov <kyrylo.tkachov@arm.com>

* config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
intrinsics if __ARM_FP.
Use __ARM_FEATURE_CRC32 ifdef guard.

* gcc.target/arm/acle/crc_hf_1.c: New test.

From-SVN: r276126

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

From-SVN: r276110

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

From-SVN: r276088

5 years agotrans.c (Attribute_to_gnu): Test Can_Use_Internal_Rep on the underlying type of the...
Eric Botcazou [Mon, 23 Sep 2019 08:08:45 +0000 (08:08 +0000)] 
trans.c (Attribute_to_gnu): Test Can_Use_Internal_Rep on the underlying type of the node.

* gcc-interface/trans.c (Attribute_to_gnu): Test Can_Use_Internal_Rep
on the underlying type of the node.
(Call_to_gnu): Likewise with the type of the prefix.

From-SVN: r276042

5 years agoxtensa: backport fix for PR target/90922
Max Filippov [Mon, 23 Sep 2019 07:47:14 +0000 (07:47 +0000)] 
xtensa: backport fix for PR target/90922

Stack pointer adjustment code in prologue missed a case of no
callee-saved registers and a stack frame size bigger than 128 bytes.
Handle that case.

This fixes the following gcc tests with call0 ABI:
  gcc.c-torture/execute/stdarg-2.c
  gcc.dg/torture/pr55882.c
  gcc.dg/torture/pr57569.c

gcc/
2019-09-23  Max Filippov  <jcmvbkbc@gmail.com>

Backport from mainline
2019-06-18  Max Filippov  <jcmvbkbc@gmail.com>

* config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
pointer adjustment for the case of no callee-saved registers and
stack frame bigger than 128 bytes.

From-SVN: r276037

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

From-SVN: r276034

5 years ago[Darwin, opts processing] Fix missing RejectNegative etc.
Iain Sandoe [Sun, 22 Sep 2019 19:36:09 +0000 (19:36 +0000)] 
[Darwin, opts processing] Fix missing RejectNegative etc.

This adds RejectNegative in a number of places it was needed,
reorders the opts into two groups (one general and one driver-only).
We also add a minimal description to each opt, and note some that
are now obsolete. The only functional change is to permit
-mtarget-linker= as an alias of -mtarget-linker.

This fixes the Darwin part of PR89327

2019-09-22  Iain Sandoe  <iain@sandoe.co.uk>

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

* config/darwin.opt (prebind, noprebind, seglinkedit,
noseglinkedit): Add RejectNegative.

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

* config/darwin.opt: Add RejectNegative where needed, reorder
and add minimal functional descriptions.

From-SVN: r276031

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

From-SVN: r276025

5 years agobackport: re PR fortran/91588 (ICE in check_inquiry, at fortran/expr.c:2673)
Paul Thomas [Sat, 21 Sep 2019 08:35:17 +0000 (08:35 +0000)] 
backport: re PR fortran/91588 (ICE in check_inquiry, at fortran/expr.c:2673)

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

Backport from mainline
PR fortran/91588
* expr.c (check_inquiry): Remove extended component refs by
using symbol pointers. If a function argument is an associate
variable with a constant target, copy the target expression in
place of the argument expression. Check that the charlen is not
NULL before using the string length.

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

Backport from mainline
PR fortran/91588
* gfortran.dg/associate_49.f90 : New test.

From-SVN: r276016

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

From-SVN: r276014

5 years agopa.c (pa_trampoline_init): Remove spurious extended character.
John David Anglin [Fri, 20 Sep 2019 21:53:40 +0000 (21:53 +0000)] 
pa.c (pa_trampoline_init): Remove spurious extended character.

* config/pa/pa.c (pa_trampoline_init): Remove spurious extended
character.

From-SVN: r276008

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