]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
5 years agobackport: re PR inline-asm/92615 (ICE in extract_insn)
Jakub Jelinek [Fri, 20 Dec 2019 16:57:21 +0000 (17:57 +0100)] 
backport: re PR inline-asm/92615 (ICE in extract_insn)

Backported from mainline
2019-11-23  Jakub Jelinek  <jakub@redhat.com>

PR target/92615
* config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
register_operand, force x into register before storing it into dest.
Formatting fix.

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

From-SVN: r279651

5 years agobackport: re PR c/90677 (gcc-9.1.0 fails to build __gcc_diag__ souce: error: 'cgraph_...
Jakub Jelinek [Fri, 20 Dec 2019 16:56:30 +0000 (17:56 +0100)] 
backport: re PR c/90677 (gcc-9.1.0 fails to build __gcc_diag__ souce: error: 'cgraph_node' is not defined as a type)

Backported from mainline
2019-11-22  Jakub Jelinek  <jakub@redhat.com>

PR c/90677
* c-common.h (identifier_global_tag): Declare.
* c-format.c (get_pointer_to_named_type): Renamed to ...
(get_named_type): ... this.  Use identifier_global_tag instead of
identifier_global_value, handle the return value being a TYPE_P.
(init_dynamic_diag_info): Adjust get_pointer_to_named_type callers
to call get_named_type instead.  Formatting fixes.

* c-decl.c (identifier_global_tag): Define.

* cp-objcp-common.c (identifier_global_tag): Define.

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

From-SVN: r279650

5 years agobackport: re PR c++/90842 (ICE in poplevel, at cp/decl.c:585)
Jakub Jelinek [Fri, 20 Dec 2019 16:55:06 +0000 (17:55 +0100)] 
backport: re PR c++/90842 (ICE in poplevel, at cp/decl.c:585)

Backported from mainline
2019-11-21  Jakub Jelinek  <jakub@redhat.com>
    Jason Merrill  <jason@redhat.com>

PR c++/90842
* parser.c (cp_parser_decl_specifier_seq): For concept or typedef
break early if CP_PARSER_FLAGS_ONLY_MUTABLE_OR_CONSTEXPR.
For type specifiers, set CP_PARSER_FLAGS_NO_TYPE_DEFINITIONS
if CP_PARSER_FLAGS_ONLY_MUTABLE_OR_CONSTEXPR is set.

* g++.dg/cpp1y/lambda-generic-90842.C: New test.

From-SVN: r279649

5 years agoBackport: rename tests to reference the correct PR
Roman Zhuykov [Fri, 20 Dec 2019 15:50:44 +0000 (15:50 +0000)] 
Backport: rename tests to reference the correct PR

2019-12-20  Roman Zhuykov  <zhroma@ispras.ru>

* gcc.dg/pr92951-1.c: Rename to ...
* gcc.dg/pr92591-1.c: ... this.
* gcc.dg/pr92951-2.c: Rename to ...
* gcc.dg/pr92591-2.c: ... this.

From-SVN: r279646

5 years agomodulo-sched: backport PR92591 fix from mainline
Roman Zhuykov [Fri, 20 Dec 2019 15:05:12 +0000 (15:05 +0000)] 
modulo-sched: backport PR92591 fix from mainline

2019-12-20  Roman Zhuykov  <zhroma@ispras.ru>

modulo-sched: fix branch rescheduling issue (PR92591)

PR rtl-optimization/92591
* modulo-sched.c (ps_add_node_check_conflicts): Improve checking
for history > 0 case.
* params.def (sms-dfa-history): Limit to 16.

gcc/testsuite:

PR rtl-optimization/92591
* gcc.dg/pr92951-1.c: New test.
* gcc.dg/pr92951-2.c: New test.

From-SVN: r279642

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

From-SVN: r279618

5 years agobackport: re PR target/92545 (avr: support ATmega devices from the 0-series)
Georg-Johann Lay [Thu, 19 Dec 2019 08:59:28 +0000 (08:59 +0000)] 
backport: re PR target/92545 (avr: support ATmega devices from the 0-series)

Backport support for some AVR devices from avrxmega3 family
from SVN trunk r279309, r278387, r278389, r278478.
PR target/92545
* config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
* config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
* config/avr/avr-mcus.def (AVR_MCU): Add respective field.
* config/avr/gen-avr-mmcu-specs.c (print_mcu)
<*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
for spec definitions.
* config/avr/gen-avr-mmcu-texi.c: Rewrite.
* doc/avr-mmcu.texi: Regenerate.

From-SVN: r279564

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

From-SVN: r279559

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

From-SVN: r279482

5 years agoFix PR92950: Wrong code emitted for movv1qi
Andreas Krebbel [Tue, 17 Dec 2019 08:37:26 +0000 (08:37 +0000)] 
Fix PR92950: Wrong code emitted for movv1qi

The backend emits 16 bit memory loads for single element character
vector.  As a result the character will not be right justified in the
GPR.

gcc/ChangeLog:

2019-12-17  Andreas Krebbel  <krebbel@linux.ibm.com>

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

PR target/92950
* config/s390/vector.md ("mov<mode>" for V_8): Replace lh, lhy,
and lhrl with llc.

gcc/testsuite/ChangeLog:

2019-12-17  Andreas Krebbel  <krebbel@linux.ibm.com>

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

PR target/92950
* gcc.target/s390/vector/pr92950.c: New test.

From-SVN: r279453

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

From-SVN: r279449

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

From-SVN: r279407

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

From-SVN: r279401

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

From-SVN: r279390

5 years agoPR c++/57082 - new X{} and private destructor.
Jason Merrill [Fri, 13 Dec 2019 05:10:11 +0000 (00:10 -0500)] 
PR c++/57082 - new X{} and private destructor.

build_new_1 already passes tf_no_cleanup to build_value_init, but in this
testcase we end up calling build_value_init by way of
build_special_member_call, so we need to pass it to that function as well.

* init.c (build_new_1): Also pass tf_no_cleanup to
build_special_member_call.

From-SVN: r279335

5 years agoPR c++/92859 - ADL and bit-field.
Jason Merrill [Fri, 13 Dec 2019 05:10:06 +0000 (00:10 -0500)] 
PR c++/92859 - ADL and bit-field.

We also need unlowered_expr_type when considering associated types for ADL.

* name-lookup.c: Use unlowered_expr_type.

From-SVN: r279334

5 years agoPR c++/92446 - deduction of class NTTP.
Jason Merrill [Fri, 13 Dec 2019 05:10:02 +0000 (00:10 -0500)] 
PR c++/92446 - deduction of class NTTP.

Another place we need to look through the VIEW_CONVERT_EXPR we add to make a
use of a class NTTP have const type.

* pt.c (deducible_expression): Look through VIEW_CONVERT_EXPR.

From-SVN: r279333

5 years agoPR c++/92150 - partial specialization with class NTTP.
Jason Merrill [Fri, 13 Dec 2019 05:09:57 +0000 (00:09 -0500)] 
PR c++/92150 - partial specialization with class NTTP.

Here unify was getting confused by the VIEW_CONVERT_EXPR we add in
finish_id_expression_1 to make class NTTP const when they're used in an
expression.

Tested x86_64-pc-linux-gnu, applying to trunk.

* pt.c (unify): Handle VIEW_CONVERT_EXPR.

From-SVN: r279332

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

From-SVN: r279329

5 years agobackport: re PR fortran/92898 (ICE in gfc_check_is_contiguous, at fortran/check.c...
Harald Anlauf [Thu, 12 Dec 2019 20:46:03 +0000 (20:46 +0000)] 
backport: re PR fortran/92898 (ICE in gfc_check_is_contiguous, at fortran/check.c:7157)

2019-12-12  Harald Anlauf  <anlauf@gmx.de>

Backport from mainline
PR fortran/92898
* check.c (gfc_check_is_contiguous): Simplify check to handle
arbitrary NULL() argument.

PR fortran/92898
* gfortran.dg/pr92898.f90: New test.

From-SVN: r279315

5 years ago[ARC] Enable using DCMPF for hard float comparisons (backports)
Claudiu Zissulescu [Thu, 12 Dec 2019 09:31:56 +0000 (10:31 +0100)] 
[ARC] Enable using DCMPF for hard float comparisons (backports)

From-SVN: r279275

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

From-SVN: r279269

5 years agore PR fortran/92897 ([Coarray] ICE in gfc_set_array_spec, at fortran/array.c:864)
Steven G. Kargl [Wed, 11 Dec 2019 20:18:17 +0000 (20:18 +0000)] 
re PR fortran/92897 ([Coarray] ICE in gfc_set_array_spec, at fortran/array.c:864)

2019-12-11 Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/92897
* array.c (gfc_set_array_spec):  Remove invalid assert() triggered
by invalid Fortran code.

2019-12-11 Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/92897
* gfortran.dg/pr92897.f90: New test.

From-SVN: r279249

5 years ago[OpenACC, libgomp] Initialize 'dynamic_refcount' whenever we initialize 'refcount'
Thomas Schwinge [Wed, 11 Dec 2019 16:51:31 +0000 (17:51 +0100)] 
[OpenACC, libgomp] Initialize 'dynamic_refcount' whenever we initialize 'refcount'

Cases missed in r261813 "Update OpenACC data clause semantics to the 2.5
behavior".

libgomp/
* target.c (gomp_load_image_to_device, omp_target_associate_ptr):
Initialize 'dynamic_refcount' whenever we initialize 'refcount'.

Backport trunk r279230.

Co-Authored-By: Julian Brown <julian@codesourcery.com>
From-SVN: r279238

5 years agolibstdc++: Fix whitepace in changelog
Jonathan Wakely [Wed, 11 Dec 2019 13:46:02 +0000 (13:46 +0000)] 
libstdc++: Fix whitepace in changelog

From-SVN: r279224

5 years agoPR libstdc++/91786 fix compilation error with Clang
Jonathan Wakely [Wed, 11 Dec 2019 13:45:56 +0000 (13:45 +0000)] 
PR libstdc++/91786 fix compilation error with Clang

Backport from mainline
2019-11-25  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/91786
* include/bits/fs_path.h (filesystem_error): Move definition before
the use in u8path.

From-SVN: r279223

5 years agolibgomp – spelling fixes, incl. omp_lib.h.in
Tobias Burnus [Wed, 11 Dec 2019 13:36:02 +0000 (13:36 +0000)] 
libgomp – spelling fixes, incl. omp_lib.h.in

        Backported from mainline
        2019-12-11  Tobias Burnus  <tobias@codesourcery.com>

        * omp_lib.h.in: Fix spelling of function declaration
        omp_get_cancell(l)ation.

From-SVN: r279221

5 years agoRestore enable_if lost during original import of pstl
Thomas Rodgers [Wed, 11 Dec 2019 03:38:53 +0000 (03:38 +0000)] 
Restore enable_if lost during original import of pstl

* include/pstl/glue_numeric_defs.h: Restore enable_if lost during original
import of pstl.
* include/pstl/glue_numeric_impl.h: Likewise.

From-SVN: r279213

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

From-SVN: r279209

5 years ago[PATCH] Fix PR91790 by considering different first_stmt_info for realign
Kewen Lin [Tue, 10 Dec 2019 12:54:21 +0000 (12:54 +0000)] 
[PATCH] Fix PR91790 by considering different first_stmt_info for realign

As PR91790 exposed, when we have one slp node whose first_stmt_info_for_drptr
is different from first_stmt_info, it's possible that the first_stmt DR isn't
initialized yet before stmt SLP_TREE_SCALAR_STMTS[0] of slp node. So we
shouldn't use first_stmt_info for vect_setup_realignment, instead we can use
the one based on first_stmt_info_for_drptr DR with additional adjustment by
bumping the distance from first_stmt DR.

2019-12-10  Kewen Lin  <linkw@gcc.gnu.org>

  Backport from mainline
  2019-11-27  Kewen Lin  <linkw@gcc.gnu.org>

  PR tree-optimization/91790
  * gcc/tree-vect-stmts.c (vectorizable_load): Use the adjusted DR for
  vect_setup_realignment when first_stmt_info is different from
  first_stmt_info_for_drptr.

From-SVN: r279166

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

From-SVN: r279149

5 years agotree.c (build_array_type_1): Add SET_CANONICAL parameter and compute TYPE_CANONICAL...
Eric Botcazou [Mon, 9 Dec 2019 16:43:52 +0000 (16:43 +0000)] 
tree.c (build_array_type_1): Add SET_CANONICAL parameter and compute TYPE_CANONICAL from the element type...

* tree.c (build_array_type_1): Add SET_CANONICAL parameter and compute
TYPE_CANONICAL from the element type only if it is true.  Remove a few
obsolete lines and adjust recursive call.
(fld_process_array_type): Adjust call to build_array_type_1.
(build_array_type): Likewise.
(build_nonshared_array_type): Likewise.

From-SVN: r279134

5 years agolibstdc++: fix buffer overflow in path::operator+= (PR92853)
Jonathan Wakely [Mon, 9 Dec 2019 11:16:29 +0000 (11:16 +0000)] 
libstdc++: fix buffer overflow in path::operator+= (PR92853)

When concatenating a path ending in a root-directory onto another path,
we added an empty filename to the end of the path twice, but only
reserved space for one. That meant the second write went past the end of
the allocated buffer.

PR libstdc++/92853
* src/c++17/fs_path.cc (filesystem::path::operator+=(const path&)):
Do not process a trailing directory separator twice.
* testsuite/27_io/filesystem/path/concat/92853.cc: New test.
* testsuite/27_io/filesystem/path/concat/path.cc: Test more cases.
* testsuite/27_io/filesystem/path/concat/strings.cc: Test more cases.

From-SVN: r279115

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

From-SVN: r279103

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

From-SVN: r279083

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

From-SVN: r279071

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

From-SVN: r279027

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

From-SVN: r278979

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

From-SVN: r278953

5 years agoFix bugs relating to flexibly-sized objects in nios2 backend.
Sandra Loosemore [Tue, 3 Dec 2019 02:44:41 +0000 (21:44 -0500)] 
Fix bugs relating to flexibly-sized objects in nios2 backend.

2019-12-02  Sandra Loosemore  <sandra@codesourcery.com>

Fix bugs relating to flexibly-sized objects in nios2 backend.

PR target/92499

gcc/c/
* c-decl.c (flexible_array_type_p): Move to common code.

gcc/
* config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
objects of flexible types to be small if they have internal linkage
or are declared extern.
* config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
(ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this.  Use targetm.in_small_data_p
instead of the size of the object initializer.
* tree.c (flexible_array_type_p): Move from C front end, and
generalize to handle fields in non-C structures.
* tree.h (flexible_array_type_p): Declare.

gcc/testsuite/
* gcc.target/nios2/pr92499-1.c: New.
* gcc.target/nios2/pr92499-2.c: New.
* gcc.target/nios2/pr92499-3.c: New.

From-SVN: r278919

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

From-SVN: r278914

5 years ago[rs6000]Fix PR92098 by backporting vec_cmp and vcond_mask supports to gcc-9-branch
Li Jia He [Mon, 2 Dec 2019 06:23:56 +0000 (06:23 +0000)] 
[rs6000]Fix PR92098 by backporting vec_cmp and vcond_mask supports to gcc-9-branch

As PR92132 added vec_cmp_* and vcond_mask_* supports on trunk.  This is a
partial backport of vec_{cmp,cmpu}<mode><mode> interface and related expand
to gcc-9-branch to fix PR92098.

gcc/ChangeLog

2019-12-02  Li Jia He  <helijia@linux.ibm.com>

Partial backport from mainline
PR target/92098
2019-11-08  Kewen Lin  <linkw@gcc.gnu.org>

PR target/92132
* config/rs6000/predicates.md
(signed_or_equality_comparison_operator): New predicate.
(unsigned_or_equality_comparison_operator): Likewise.
* config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
(one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
* config/rs6000/vector.md
(vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
(vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
(vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.

gcc/testsuite/ChangeLog

2019-12-02  Li Jia He  <helijia@linux.ibm.com>

Partial backport from trunk
PR target/92098
2019-11-08  Kewen Lin  <linkw@gcc.gnu.org>

PR target/92132
* gcc.target/powerpc/pr92132-fp-1.c: New test.
* gcc.target/powerpc/pr92132-fp-2.c: New test.

From-SVN: r278892

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

From-SVN: r278888

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

From-SVN: r278882

5 years agobackport: re PR fortran/91783 (ICE in gfc_dep_resolver, at fortran/dependency.c:2111)
Thomas Koenig [Sat, 30 Nov 2019 15:08:32 +0000 (15:08 +0000)] 
backport: re PR fortran/91783 (ICE in gfc_dep_resolver, at fortran/dependency.c:2111)

Backport from trunk as an insurance policy.

2019-11-30  Thomas Koenig  <tkoenig@gcc.gnu.org>

    PR fortran/91783
    * gfortran.dg/dependency_56.f90: New test. Backport from trunk on
    the off-chance that somebody backports something that will break
    this test case.

From-SVN: r278874

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

From-SVN: r278867

5 years agobackport: re PR fortran/92629 (internal compiler error: in convert_mpz_to_unsigned...
Harald Anlauf [Fri, 29 Nov 2019 20:56:11 +0000 (20:56 +0000)] 
backport: re PR fortran/92629 (internal compiler error: in convert_mpz_to_unsigned, at fortran/simplify.c:173)

2019-11-29  Harald Anlauf  <anlauf@gmx.de>

Backport from mainline
PR fortran/92629
* simplify.c (convert_mpz_to_unsigned): Skip assert for argument
range when -fno-range-check is specified.

PR fortran/92629
* gfortran.dg/pr92629.f90: New testcase.

From-SVN: r278862

5 years agoFix testcase - was missing -fopenacc
Tobias Burnus [Fri, 29 Nov 2019 12:27:34 +0000 (12:27 +0000)] 
Fix testcase - was missing -fopenacc

        Backport from mainline
        2019-11-29 Tobias Burnus  <tobias@codesourcery.com>

        PR ipa/84963
        * gfortran.dg/goacc/pr84963.f90: Use dg-additional-options not
        dg-options as otherwise -fopenacc is not used.

From-SVN: r278838

5 years agore PR ada/92489 (internal error on Invalid_Value Attribute attribute)
Eric Botcazou [Fri, 29 Nov 2019 09:07:53 +0000 (09:07 +0000)] 
re PR ada/92489 (internal error on Invalid_Value Attribute attribute)

PR ada/92489
Backport from mainline
2019-07-01  Ed Schonberg  <schonberg@adacore.com>

* exp_attr.adb (Expand_Attribute_Reference, case Invalid_Value):
Resolve result of call to Get_Simple_Init_Val, which may be a
conversion of a literal.

From-SVN: r278830

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

From-SVN: r278824

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

From-SVN: r278792

5 years agobackport: re PR tree-optimization/92222 (ice in useless_type_conversion_p, at gimple...
Richard Biener [Wed, 27 Nov 2019 12:09:36 +0000 (12:09 +0000)] 
backport: re PR tree-optimization/92222 (ice in useless_type_conversion_p, at gimple-expr.c:86)

2019-11-27  Richard Biener  <rguenther@suse.de>

Backport from mainline
2019-10-25  Richard Biener  <rguenther@suse.de>

PR tree-optimization/92222
* tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
(_slp_oprnd_info::second_pattern): Likewise.
(_slp_oprnd_info::any_pattern): New.
(vect_create_oprnd_info): Adjust.
(vect_get_and_check_slp_defs): Compute whether any stmt is
in a pattern.
(vect_build_slp_tree_2): Avoid building up a node from scalars
if any of the operand defs, not just the first, is in a pattern.

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

From-SVN: r278763

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

From-SVN: r278750

5 years agobackport: re PR libfortran/92100 (Formatted stream IO irreproducible read with binary...
Jerry DeLisle [Tue, 26 Nov 2019 22:56:24 +0000 (22:56 +0000)] 
backport: re PR libfortran/92100 (Formatted stream IO irreproducible read with binary data in file)

2019-11-26  Jerry DeLisle  <jvdelisle@gcc.ngu.org>

        Backport from mainline
        PR fortran/92100
        io/transfer.c (data_transfer_init_worker): Use fbuf_reset
        instead of fbuf_flush before the seek. Note that fbuf_reset
        calls fbuf_flush and adjusts fbuf pointers.

        gfortran.dg/streamio_18.f90: New test.

From-SVN: r278740

5 years agoDaily bump.
GCC Administrator [Tue, 26 Nov 2019 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r278715

5 years agoFix EOF handling for arrays.
Thomas Koenig [Mon, 25 Nov 2019 20:04:28 +0000 (20:04 +0000)] 
Fix EOF handling for arrays.

2019-11-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
Harald Anlauf <anlauf@gmx.de>

Backport from trunk
PR fortran/92569
* io/transfer.c (transfer_array_inner):  If position is
at AFTER_ENDFILE in current unit, return from data loop.

2019-11-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
Harald Anlauf <anlauf@gmx.de>

Backport from trunk
PR fortran/92569
* gfortran.dg/eof_6.f90: New test.

Co-Authored-By: Harald Anlauf <anlauf@gmx.de>
From-SVN: r278702

5 years agoFortran] PR 92050 - fix ICE with -fcheck=all
Tobias Burnus [Mon, 25 Nov 2019 14:33:32 +0000 (15:33 +0100)] 
Fortran] PR 92050 - fix ICE with -fcheck=all

        Backport from mainline
        2019-10-11  Tobias Burnus  <tobias@codesourcery.com>

        PR fortran/92050
        * trans-expr.c (gfc_conv_procedure_call): Handle code generated
        by -fcheck=all.

        PR fortran/92050
        * gfortran.dg/pr92050.f90: New.

From-SVN: r278689

5 years agore PR ada/92362 (double elaboration of expression in Address aspect)
Eric Botcazou [Mon, 25 Nov 2019 10:52:33 +0000 (10:52 +0000)] 
re PR ada/92362 (double elaboration of expression in Address aspect)

PR ada/92362
* gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
Use a temporary instead of clobbering the result with a freeze node.

From-SVN: r278676

5 years agore PR ada/92575 (couple of suspicious assignments in expect.c)
Eric Botcazou [Mon, 25 Nov 2019 10:30:41 +0000 (10:30 +0000)] 
re PR ada/92575 (couple of suspicious assignments in expect.c)

PR ada/92575
* expect.c (__gnat_expect_poll [VMS, HPUX]): Fix typo.

From-SVN: r278672

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

From-SVN: r278662

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

From-SVN: r278652

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

From-SVN: r278637

5 years agoPR libstdc++/92267 fix ABI change in deque iterators
Jonathan Wakely [Fri, 22 Nov 2019 12:36:18 +0000 (12:36 +0000)] 
PR libstdc++/92267 fix ABI change in deque iterators

Defaulting the copy constructor on its first declaration made it change
from user-provided (and non-trivial) to implicitly-defined (and
trivial). This caused an ABI incompatibility between GCC 8 and GCC 9,
where functions taking a deque iterator disagree on the argument passing
convention.

Backport from mainline
2019-10-29  Jonathan Wakely  <jwakely@redhat.com>

PR libstdc++/92267
* include/bits/stl_deque.h (_Deque_iterator(const _Deque_iterator&)):
Do not define as defaulted.
* testsuite/23_containers/deque/types/92267.cc: New test.

From-SVN: r278614

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

From-SVN: r278606

5 years agore PR tree-optimization/91355 (optimized code does not call destructor while unwindin...
Jakub Jelinek [Thu, 21 Nov 2019 13:53:57 +0000 (14:53 +0100)] 
re PR tree-optimization/91355 (optimized code does not call destructor while unwinding after exception)

PR tree-optimization/91355
* tree-ssa-sink.c (select_best_block): Use >= rather than >
for early_bb scaled count with best_bb count comparison.

* g++.dg/torture/pr91355.C: New test.

From-SVN: r278551

5 years agorevert: re PR tree-optimization/91790 (ICE: verify_ssa failed (error: definition...
Richard Biener [Thu, 21 Nov 2019 09:18:06 +0000 (09:18 +0000)] 
revert: re PR tree-optimization/91790 (ICE: verify_ssa failed (error: definition in block 2 follows the use))

2019-11-21  Richard Biener  <rguenther@suse.de>

Revert
2019-09-17  Richard Biener  <rguenther@suse.de>

PR tree-optimization/91790
* tree-vect-stmts.c (vectorizable_load): For BB vectorization
use the correct DR for setting up realignment.

From-SVN: r278545

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

From-SVN: r278536

5 years agoBackport fix for PR92090.
Peter Bergner [Wed, 20 Nov 2019 20:42:41 +0000 (20:42 +0000)] 
Backport fix for PR92090.

gcc/
Backport from mainline
2019-11-07  Peter Bergner <bergner@linux.ibm.com>

PR other/92090
* config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
modes for integer constants.

gcc/testsuite/
Backport from mainline
2019-11-13  David Edelsohn  <dje.gcc@gmail.com>

* gcc.target/powerpc/pr92090.c: Limit -mbig to powerpc64le-*-*.
* gcc.target/powerpc/pr92090-2.c: Likewise.

2019-11-07  Peter Bergner <bergner@linux.ibm.com>

PR other/92090
* gcc.target/powerpc/pr92090-2.c: New test.

2019-11-07  Peter Bergner <bergner@linux.ibm.com>

PR other/92090
* gcc.target/powerpc/pr92090.c: New test.

From-SVN: r278527

5 years agore PR middle-end/90796 (GCC: O2 vs O3 output differs on simple test)
Michael Matz [Wed, 20 Nov 2019 16:51:10 +0000 (16:51 +0000)] 
re PR middle-end/90796 (GCC: O2 vs O3 output differs on simple test)

Fix PR90796

       PR middle-end/90796
       * gimple-loop-jam.c (any_access_function_variant_p): New function.
       (adjust_unroll_factor): Use it to constrain safety, new parameter.
       (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.

testsuite/
       Backport from mainline
       PR middle-end/90796
       * gcc.dg/unroll-and-jam.c: Disable loop-invariant motion and adjust.

       PR middle-end/90796
       * gcc.dg/unroll-and-jam.c: Add three invalid and one valid case.

From-SVN: r278512

5 years agoDocument -Wc11-c2x-compat.
Joseph Myers [Wed, 20 Nov 2019 16:43:14 +0000 (16:43 +0000)] 
Document -Wc11-c2x-compat.

My patch that added initial C2X support and associated command-line
options missed documenting -Wc11-c2x-compat although the other options
were properly documented.  This patch adds the missing documentation.

Tested with "make info" and "make pdf".

* doc/invoke.texi (-Wc11-c2x-compat): Document.

From-SVN: r278511

5 years agore PR c++/90767 (jumbled error message with this and const)
Jakub Jelinek [Wed, 20 Nov 2019 09:55:56 +0000 (10:55 +0100)] 
re PR c++/90767 (jumbled error message with this and const)

PR c++/90767
* call.c (complain_about_no_candidates_for_method_call): If
conv->from is not a type, pass to complain_about_bad_argument
lvalue_type of conv->from.

* g++.dg/diagnostic/pr90767-1.C: New test.
* g++.dg/diagnostic/pr90767-2.C: New test.

From-SVN: r278492

5 years agore PR middle-end/90840 (ICE in simplify_subreg, at simplify-rtx.c:6441)
Jakub Jelinek [Wed, 20 Nov 2019 09:55:01 +0000 (10:55 +0100)] 
re PR middle-end/90840 (ICE in simplify_subreg, at simplify-rtx.c:6441)

PR middle-end/90840
* expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
and has a mode that doesn't have corresponding integral type.

* gcc.c-torture/compile/pr90840.c: New test.

From-SVN: r278491

5 years agore PR target/90867 (Multiplication or typecast of integer and double always zero...
Jakub Jelinek [Wed, 20 Nov 2019 09:54:02 +0000 (10:54 +0100)] 
re PR target/90867 (Multiplication or typecast of integer and double always zero when...)

PR target/90867
* config/i386/i386.c (ix86_valid_target_attribute_tree): Don't
clear opts->x_ix86_isa_flags{,2} here...
(ix86_valid_target_attribute_inner_p): ... but here when seeing
arch=.  Also clear opts->x_ix86_isa_flags{,2}_explicit.

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

From-SVN: r278490

5 years agore PR c/90898 (ICE in insert_clobber_before_stack_restore, at tree-ssa-ccp.c:2112)
Jakub Jelinek [Wed, 20 Nov 2019 09:53:15 +0000 (10:53 +0100)] 
re PR c/90898 (ICE in insert_clobber_before_stack_restore, at tree-ssa-ccp.c:2112)

PR c/90898
* tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
assertion.
(insert_clobbers_for_var): Fix a typo in function comment.

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

From-SVN: r278489

5 years agobackport: re PR c++/92504 (ICE on gcc-9 -fopenmp: internal compiler error: tree check...
Jakub Jelinek [Wed, 20 Nov 2019 09:52:27 +0000 (10:52 +0100)] 
backport: re PR c++/92504 (ICE on gcc-9 -fopenmp: internal compiler error: tree check: expected tree that contains 'decl common' structure, have 'baselink' in get_inner_reference, at expr.c:7238)

Backported from mainline
2019-11-19  Jakub Jelinek  <jakub@redhat.com>

PR c++/92504
* semantics.c (handle_omp_for_class_iterator): Don't call
cp_fully_fold on cond.

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

From-SVN: r278488

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

From-SVN: r278473

5 years agore PR middle-end/91450 (__builtin_mul_overflow(A,B,R) wrong code if product < 0,...
Jakub Jelinek [Tue, 19 Nov 2019 09:26:23 +0000 (10:26 +0100)] 
re PR middle-end/91450 (__builtin_mul_overflow(A,B,R) wrong code if product < 0, *R is unsigned, and !(A&B))

PR middle-end/91450
* internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
operand is negative and one non-negative, compare the non-negative
one against 0 rather than comparing s1 & s2 against 0.  Otherwise,
don't compare (s1 & s2) == 0, but compare separately both s1 == 0
and s2 == 0, unless one of them is known to be negative.  Remove
tem2 variable, use tem where tem2 has been used before.

* gcc.c-torture/execute/pr91450-1.c: New test.
* gcc.c-torture/execute/pr91450-2.c: New test.

From-SVN: r278438

5 years ago* doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
Eric Botcazou [Tue, 19 Nov 2019 09:12:36 +0000 (09:12 +0000)] 
* doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.

From-SVN: r278435

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

From-SVN: r278426

5 years agobackport: rs6000.md (rs6000_set_fpscr_drn): Use ULL on big hexadecimal literal.
Segher Boessenkool [Mon, 18 Nov 2019 19:29:03 +0000 (20:29 +0100)] 
backport: rs6000.md (rs6000_set_fpscr_drn): Use ULL on big hexadecimal literal.

Backport from trunk
2019-11-12  Segher Boessenkool  <segher@kernel.crashing.org>

* config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
hexadecimal literal.

From-SVN: r278420

5 years agoAArch64: Correct HWCAP for fp16fml
Tamar Christina [Mon, 18 Nov 2019 15:29:40 +0000 (15:29 +0000)] 
AArch64: Correct HWCAP for fp16fml

Backport from mainline
2019-09-24  Stamatis Markianos-Wright  <stam.markianos-wright@arm.com>

* config/aarch64/aarch64-option-extensions.def (fp16fml):
Update hwcap string for fp16fml.

From-SVN: r278412

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

From-SVN: r278381

5 years agolinux-atomic.c (__kernel_cmpxchg): Change argument 1 to volatile void *.
John David Anglin [Sun, 17 Nov 2019 23:15:29 +0000 (23:15 +0000)] 
linux-atomic.c (__kernel_cmpxchg): Change argument 1 to volatile void *.

* config/pa/linux-atomic.c (__kernel_cmpxchg): Change argument 1 to
volatile void *.  Remove trap check.
(__kernel_cmpxchg2): Likewise.
(FETCH_AND_OP_2): Adjust operand types.
(OP_AND_FETCH_2): Likewise.
(FETCH_AND_OP_WORD): Likewise.
(OP_AND_FETCH_WORD): Likewise.
(COMPARE_AND_SWAP_2): Likewise.
(__sync_val_compare_and_swap_4): Likewise.
(__sync_bool_compare_and_swap_4): Likewise.
(SYNC_LOCK_TEST_AND_SET_2): Likewise.
(__sync_lock_test_and_set_4): Likewise.
(SYNC_LOCK_RELEASE_1): Likewise.  Use __kernel_cmpxchg2 for release.
(__sync_lock_release_4): Adjust operand types.  Use __kernel_cmpxchg
for release.
(__sync_lock_release_8): Remove.

From-SVN: r278378

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

From-SVN: r278368

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

From-SVN: r278327

5 years agoFree dominance info at the beginning of pass_jump_after_combine
Ilya Leoshkevich [Fri, 15 Nov 2019 12:55:05 +0000 (12:55 +0000)] 
Free dominance info at the beginning of pass_jump_after_combine

try_forward_edges does not update dominance info, and merge_blocks
relies on it being up-to-date.  In PR92430 stale dominance info makes
merge_blocks produce a loop in the dominator tree, which in turn makes
delete_basic_block loop forever.

Fix by freeing dominance info at the beginning of cleanup_cfg.

Also, since the whole point of this pass is to perform jump threading
(other cleanups are not valuable at this point), skip it completely when
flag_thread_jumps is not set.

gcc/ChangeLog:

2019-11-15  Ilya Leoshkevich  <iii@linux.ibm.com>

Backport from mainline
PR rtl-optimization/92430
* cfgcleanup.c (pass_jump_after_combine::gate): New function.
(pass_jump_after_combine::execute): Free
dominance info at the beginning.

gcc/testsuite/ChangeLog:

2019-11-15  Ilya Leoshkevich  <iii@linux.ibm.com>

Backport from mainline
PR rtl-optimization/92430
* gcc.dg/pr92430.c: New test (from Arseny Solokha).

From-SVN: r278291

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

From-SVN: r278271

5 years ago[ARC] Backport from mainline r278056,r278057
Claudiu Zissulescu [Thu, 14 Nov 2019 09:58:19 +0000 (09:58 +0000)] 
[ARC] Backport from mainline r278056,r278057

From-SVN: r278215

5 years agoBackport r278210
Martin Liska [Thu, 14 Nov 2019 09:45:37 +0000 (10:45 +0100)] 
Backport r278210

2019-11-14  Martin Liska  <mliska@suse.cz>

Backport from mainline
2019-11-14  Martin Liska  <mliska@suse.cz>

PR target/92389
* config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
PTA_ICELAKE_CLIENT which is later interited by
PTA_ICELAKE_SERVER and PTA_TIGERLAKE.

From-SVN: r278214

5 years agoFix gfortran.dg/ISO_Fortran_binding_17.c using rel. #include
Tobias Burnus [Thu, 14 Nov 2019 08:02:42 +0000 (08:02 +0000)] 
Fix gfortran.dg/ISO_Fortran_binding_17.c using rel. #include

        PR fortran/92470
        PR fortran/92500
        * gfortran.dg/ISO_Fortran_binding_17.c: Include
        ISO_Fortran_binding.h with relative path.

From-SVN: r278201

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

From-SVN: r278188

5 years agoSanitize the constant argument for rotr<mode>3
Dragan Mladjenovic [Wed, 13 Nov 2019 19:20:15 +0000 (19:20 +0000)] 
Sanitize the constant argument for rotr<mode>3

This was dormant for quite some time, but it started happening for me
on gcc.c-torture/compile/pr65153.c sometime after r276645 for -mabi=32 linux runs.

The pattern accepts any SMALL_OPERAND constant value while it asserts during the final
that the value is in the mode size range. I this case it happens that combine_and_move_insns
during ira makes a pattern with negative "shift count" which fails at final stage.

This simple fix just truncates the constant operand to mode size the same as shift patterns.

gcc/ChangeLog:

2019-11-13  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>

Backport from mainline
* config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
instead of asserting its value.

From-SVN: r278154

5 years agoPR fortran/92470 Fixes for CFI_address
Tobias Burnus [Wed, 13 Nov 2019 15:06:47 +0000 (16:06 +0100)] 
PR fortran/92470 Fixes for CFI_address

        Backport from mainline

        libgfortran/
        2019-11-13  Tobias Burnus  <tobias@codesourcery.com>

        PR fortran/92470
        * runtime/ISO_Fortran_binding.c (CFI_establish): Set lower_bound to 0
        also for CFI_attribute_other.

        2019-11-12  Tobias Burnus  <tobias@codesourcery.com>

        PR fortran/92470
        * runtime/ISO_Fortran_binding.c (CFI_address): Handle non-zero
        lower_bound; update error message.
        (CFI_allocate): Fix comment typo.
        (CFI_establish): Fix identation, fix typos, don't check values of 'dv'
        argument.

        gcc/testsuite/
        2019-11-13  Tobias Burnus  <tobias@codesourcery.com>

        PR fortran/92470
        * gfortran.dg/ISO_Fortran_binding_1.c (establish_c): Add assert for
        lower_bound == 0.

        2019-11-12  Tobias Burnus  <tobias@codesourcery.com>

        PR fortran/92470
        * gfortran.dg/ISO_Fortran_binding_17.c: New.
        * gfortran.dg/ISO_Fortran_binding_17.f90: New.
        * gfortran.dg/ISO_Fortran_binding_1.c (elemental_mult_c, allocate_c,
        section_c, select_part_c): Update for CFI_{address} changes;
        add asserts.

From-SVN: r278143

5 years agoc-ada-spec.c (get_underlying_decl): Do not look through typedefs.
Eric Botcazou [Wed, 13 Nov 2019 11:59:20 +0000 (11:59 +0000)] 
c-ada-spec.c (get_underlying_decl): Do not look through typedefs.

* c-ada-spec.c (get_underlying_decl): Do not look through typedefs.
(dump_forward_type): Do not generate a declaration for function types.
(dump_nested_type) <ARRAY_TYPE>: Do not generate a nested declaration
of the component type if it is declared in another file.

From-SVN: r278130

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

From-SVN: r278110

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

From-SVN: r278073

5 years agobackport: re PR tree-optimization/90930 (Excessive memory consumption)
Richard Biener [Mon, 11 Nov 2019 16:07:54 +0000 (16:07 +0000)] 
backport: re PR tree-optimization/90930 (Excessive memory consumption)

2019-11-11  Richard Biener  <rguenther@suse.de>

Backport from mainline
2019-06-25  Richard Biener  <rguenther@suse.de>

PR tree-optimization/90930
* tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
into parallel form in the last pass instance.

* gcc.dg/tree-ssa/reassoc-24.c: Adjust.
* gcc.dg/tree-ssa/reassoc-25.c: Likewise.

From-SVN: r278059

5 years ago[PR87833] x86: Put -fPIC and -shared the last to create offload image
H.J. Lu [Mon, 11 Nov 2019 08:39:10 +0000 (00:39 -0800)] 
[PR87833] x86: Put -fPIC and -shared the last to create offload image

On x86, since -fPIC and -shared should be used to create offload image,
we put them the last to properly create offload image.

2019-11-11  H.J. Lu  <hjl.tools@gmail.com>

PR target/87833
* config/i386/intelmic-mkoffload.c (prepare_target_image): Put
-fPIC and -shared the last to create offload image.

Backport from trunk r278041.

From-SVN: r278042

5 years agoAssert 'offset2' instead of 'offset' in 'gcc/gimplify.c:gimplify_scan_omp_clauses'
Thomas Schwinge [Mon, 11 Nov 2019 08:19:23 +0000 (09:19 +0100)] 
Assert 'offset2' instead of 'offset' in 'gcc/gimplify.c:gimplify_scan_omp_clauses'

... to fix a long-time typo/copy'n'past-o.

gcc/
* gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
of 'offset'.

Backport from trunk r278038.

From-SVN: r278039

5 years ago[build] Properly track GCC language configure fragments
Thomas Schwinge [Mon, 11 Nov 2019 08:06:25 +0000 (09:06 +0100)] 
[build] Properly track GCC language configure fragments

The 'gcc/configure' script sources all 'gcc/*/config-lang.in' files, but fails
to emit such dependency information into the build machinery.  That means,
currently, when something gets changed in a 'gcc/*/config-lang.in' file, this
is not noticed, and doesn't propagate through the build machinery.

Handling of configure fragments is modelled in the same way as it already
exists for Makefile fragments.

gcc/
* Makefile.in (LANG_CONFIGUREFRAGS): Define.
(config.status): Use/depend on it.
* configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
* configure: Regenerate.

Backport from trunk r278035.

From-SVN: r278036