]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
6 years agoDaily bump.
GCC Administrator [Mon, 4 Feb 2019 00:16:19 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268505

6 years agobackport: re PR fortran/88393 ([OOP] Segfault with type-bound assignment)
Paul Thomas [Sun, 3 Feb 2019 18:23:25 +0000 (18:23 +0000)] 
backport: re PR fortran/88393 ([OOP] Segfault with type-bound assignment)

2019-02-03  Paul Thomas  <pault@gcc.gnu.org>

Backport from trunk
PR fortran/88393
* trans-expr.c (gfc_conv_procedure_call): For derived entities,
passed in parentheses to class formals, invert the order of
copying allocatable components to taking the _data of the
class expression.

2019-02-03  Paul Thomas  <pault@gcc.gnu.org>

Backport from trunk
PR fortran/88393
* gfortran.dg/alloc_comp_assign_16.f03 : New test.

From-SVN: r268501

6 years agore PR fortran/88678 (Many gfortran.dg/ieee/ieee_X.f90 test cases fail starting with...
Uros Bizjak [Sun, 3 Feb 2019 16:21:06 +0000 (17:21 +0100)] 
re PR fortran/88678 (Many gfortran.dg/ieee/ieee_X.f90 test cases fail starting with r267465)

2019-02-03  Uroš Bizjak  <ubizjak@gmail.com>

PR libfortran/88678
Revert:
2016-11-16  Szabolcs Nagy  <szabolcs.nagy@arm.com>

PR libfortran/78314
* config/fpu-glibc.h (support_fpu_trap): Use feenableexcept.

2019-02-03  Uroš Bizjak  <ubizjak@gmail.com>

PR libfortran/88678
* config/fpu-glibc.h (set_fpu_trap_exceptions): Clear stalled
exception flags before changing trap mode.  Optimize to call
feenableexcept and fedisableexcept only once.

From-SVN: r268493

6 years agoDaily bump.
GCC Administrator [Sun, 3 Feb 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268481

6 years agore PR fortran/88298 (Bogus conversion warning for CSHIFT with -fno-range-check -m64)
Thomas Koenig [Sat, 2 Feb 2019 17:07:40 +0000 (17:07 +0000)] 
re PR fortran/88298 (Bogus conversion warning for CSHIFT with -fno-range-check -m64)

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

PR fortran/88298
Backport from trunk
* arith.c (gfc_int2int): Do not warn if src->do_not_warn is set.
* gfortran.h (gfc_expr): Add flag do_not_warn.
* intrinsic.c (gfc_convert_type_warn): Set expr->do_not_warn if
no warning is desired.

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

PR fortran/88298
Backport from trunk
* gfortran.dg/warn_conversion_10.f90: New test.

From-SVN: r268479

6 years agore PR fortran/57048 (Handling of C_PTR and C_FUNPTR leads to reject valid)
Thomas Koenig [Sat, 2 Feb 2019 16:57:39 +0000 (16:57 +0000)] 
re PR fortran/57048 (Handling of C_PTR and C_FUNPTR leads to reject valid)

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

PR fortran/57048
Backport from trunk
* interface.c (gfc_compare_types): If a derived type and an
integer both have a derived type, and they are identical,
this is a C binding type and compares equal.

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

PR fortran/57048
Backport from trunk
* gfortran.dg/c_funptr_1.f90: New file.
* gfortran.dg/c_funptr_1_mod.f90: New file.

From-SVN: r268478

6 years agoDaily bump.
GCC Administrator [Sat, 2 Feb 2019 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268467

6 years agoDaily bump.
GCC Administrator [Fri, 1 Feb 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268435

6 years agobackport: re PR middle-end/89008 (O2 and O1 results differ for simple test)
Bill Schmidt [Thu, 31 Jan 2019 21:55:45 +0000 (21:55 +0000)] 
backport: re PR middle-end/89008 (O2 and O1 results differ for simple test)

2018-01-31  Bill Schmidt  <wschmidt@linux.ibm.com>

Backport from mainline
2018-01-31  Bill Schmidt  <wschmidt@linux.ibm.com>

PR tree-optimization/89008
* gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
process anything of the form X * 0.

From-SVN: r268431

6 years agobackport: [multiple changes]
Richard Biener [Thu, 31 Jan 2019 12:05:19 +0000 (12:05 +0000)] 
backport: [multiple changes]

2019-01-31  Richard Biener  <rguenther@suse.de>

Backport from mainline
2019-01-31  Richard Biener  <rguenther@suse.de>

PR rtl-optimization/89115
* lra.c (lra_rtx_hash): Properly hash CONST_INT values.

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

PR rtl-optimization/89115
* opts.c (default_options_optimization): Reduce
PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
to the default.

From-SVN: r268418

6 years agoDaily bump.
GCC Administrator [Thu, 31 Jan 2019 00:16:17 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268408

6 years agopr68318_1.f90: Fix a dg directive.
Manfred Schwarb [Wed, 30 Jan 2019 15:07:38 +0000 (16:07 +0100)] 
pr68318_1.f90: Fix a dg directive.

2019-01-30  Manfred Schwarb  <manfred99@gmx.ch>

* gfortran.dg/pr68318_1.f90: Fix a dg directive.

From-SVN: r268393

6 years agobackport: [multiple changes]
Kewen Lin [Wed, 30 Jan 2019 08:18:05 +0000 (08:18 +0000)] 
backport: [multiple changes]

2019-01-30  Kewen Lin  <linkw@gcc.gnu.org>
    Backport from mainline.
    gcc/

        2019-01-17  Kewen Lin  <linkw@gcc.gnu.org>
        * doc/extend.texi: Add four new prototypes for vec_ld and seven new
        prototypes for vec_st.
        * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
        for scalar address type variants of altivec_vec_ld/altivec_vec_st,
        mainly on signed/unsigned long long and double.

    gcc/testsuite/

        2019-01-20  Kewen Lin  <linkw@gcc.gnu.org>
        * gcc.target/powerpc/altivec_vld_vst_addr.c: Remove, split into
        altivec_vld_vst_addr-1.c and altivec_vld_vst_addr-2.c.
        * gcc.target/powerpc/altivec_vld_vst_addr-1.c: New test.
        * gcc.target/powerpc/altivec_vld_vst_addr-2.c: Ditto.

        2019-01-17  Kewen Lin  <linkw@gcc.gnu.org>
        * gcc.target/powerpc/altivec_vld_vst_addr.c: New test.

From-SVN: r268383

6 years agoDaily bump.
GCC Administrator [Wed, 30 Jan 2019 00:16:20 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268373

6 years agoDaily bump.
GCC Administrator [Tue, 29 Jan 2019 00:16:20 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268351

6 years agoDaily bump.
GCC Administrator [Mon, 28 Jan 2019 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268328

6 years agore PR fortran/70696 ([Coarray] ICE on EVENT POST of host-associated EVENT_TYPE coarray)
Uros Bizjak [Sun, 27 Jan 2019 20:53:30 +0000 (21:53 +0100)] 
re PR fortran/70696 ([Coarray] ICE on EVENT POST of host-associated EVENT_TYPE coarray)

PR fortran/70696
* gfortran.dg/coarray/event_3.f0: Add save attribue to x.

From-SVN: r268327

6 years agoBackport PRs 56386, 58906, 77385, 80260, 82077
Paul Thomas [Sun, 27 Jan 2019 18:53:47 +0000 (18:53 +0000)] 
Backport PRs 56386, 58906, 77385, 80260, 82077

2019-01-27  Paul Thomas  <pault@gcc.gnu.org>

Backport from trunk
PR fortran/56386
PR fortran/58906
PR fortran/77385
PR fortran/80260
PR fortran/82077
* resolve.c (resolve_variable): Fix up expressions with array
associate names, where the parser did not detect that this is
array and there was no array part_ref in the expression.
* trans-expr.c (gfc_find_and_cut_at_last_class_ref): base_expr
should be a copy of e and not the initialization expr.

2019-01-27  Paul Thomas  <pault@gcc.gnu.org>

Backport from trunk
PR fortran/56386
PR fortran/58906
PR fortran/77385
* gfortran.dg/associate_44.f90 : New test.

PR fortran/80260
* gfortran.dg/select_type_45.f90 : New test.

PR fortran/82077
* gfortran.dg/select_type_46.f90 : New test.

From-SVN: r268317

6 years agodecl.c (array_type_has_nonaliased_component): Return the same value for every dimensi...
Eric Botcazou [Sun, 27 Jan 2019 18:16:23 +0000 (18:16 +0000)] 
decl.c (array_type_has_nonaliased_component): Return the same value for every dimension of a multidimensional array type.

* gcc-interface/decl.c (array_type_has_nonaliased_component): Return
the same value for every dimension of a multidimensional array type.

From-SVN: r268316

6 years agore PR rtl-optimization/88948 (ICE in elimination_costs_in_insn, at reload1.c:3640...
Uros Bizjak [Sun, 27 Jan 2019 17:42:58 +0000 (18:42 +0100)] 
re PR rtl-optimization/88948 (ICE in elimination_costs_in_insn, at reload1.c:3640 since r264148)

PR target/88948
* rtl.h (prepare_copy_insn): New prototype.
* gcse.c (prepare_copy_insn): New function, split out from
process_insert_insn.
(process_insert_insn): Use prepare_copy_insn.
* store-motion.c (replace_store_insn): Use prepare_copy_insn
instead of gen_move_insn.

testsuite/ChangeLog:

PR target/88948
* gcc.target/i386/pr88948.c: New test.

From-SVN: r268312

6 years agoDaily bump.
GCC Administrator [Sun, 27 Jan 2019 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268306

6 years agotrans.c (gnat_to_gnu): Use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT for the size...
Eric Botcazou [Sat, 26 Jan 2019 16:03:42 +0000 (16:03 +0000)] 
trans.c (gnat_to_gnu): Use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT for the size to be assigned by a...

* gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Use
DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT for the size to be assigned
by a call to memset if the LHS is a DECL.

From-SVN: r268298

6 years agore PR fortran/85579 (accepts invalid fortran test case gfortran.dg/pr51434.f90)
Dominique d'Humieres [Sat, 26 Jan 2019 15:25:45 +0000 (16:25 +0100)] 
re PR fortran/85579 (accepts invalid fortran test case gfortran.dg/pr51434.f90)

2019-01-26  Dominique d'Humieres  <dominiq@gcc.gnu.org>

PR fortran/85579
* gfortran.dg/pr51434.f90: Fix the TRANSFER argument.

From-SVN: r268295

6 years ago2019-01-26 Manfred Schwarb <manfred99@gmx.ch>
Manfred Schwarb [Sat, 26 Jan 2019 15:09:52 +0000 (16:09 +0100)] 
2019-01-26  Manfred Schwarb  <manfred99@gmx.ch>

* gfortran.dg/array_function_5.f90
* gfortran.dg/class_66.f90
* gfortran.dg/dec_structure_12.f90
* gfortran.dg/dec_structure_14.f90
* gfortran.dg/dec_structure_15.f90
* gfortran.dg/extends_11.f03
* gfortran.dg/pr58968.f
* gfortran.dg/pr78259.f90
* gfortran.dg/debug/pr35154-stabs.f

From-SVN: r268294

6 years agotrans.c (struct loop_info_d): Remove artificial field.
Eric Botcazou [Sat, 26 Jan 2019 12:03:12 +0000 (12:03 +0000)] 
trans.c (struct loop_info_d): Remove artificial field.

* gcc-interface/trans.c (struct loop_info_d): Remove artificial field.
(Loop_Statement_to_gnu): Do not set it.

From-SVN: r268292

6 years agodecl.c (annotate_value): Use test on the sign bit instead of on the sign of the value.
Eric Botcazou [Sat, 26 Jan 2019 11:36:05 +0000 (11:36 +0000)] 
decl.c (annotate_value): Use test on the sign bit instead of on the sign of the value.

* gcc-interface/decl.c (annotate_value) <INTEGER_CST>: Use test on
the sign bit instead of on the sign of the value.
<PLUS_EXPR>: Turn addition of negative constant into subtraction.
<BIT_AND_EXPR>: Simplify.

From-SVN: r268288

6 years agoDaily bump.
GCC Administrator [Sat, 26 Jan 2019 00:16:18 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268282

6 years agoDaily bump.
GCC Administrator [Fri, 25 Jan 2019 00:16:21 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268254

6 years agore PR target/88998 (bad codegen with mmx instructions for unordered_map)
Uros Bizjak [Thu, 24 Jan 2019 19:14:58 +0000 (20:14 +0100)] 
re PR target/88998 (bad codegen with mmx instructions for unordered_map)

PR target/88998
* config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
Disparage MMX alternative.
(sse2_cvtpd2pi): Ditto.
(sse2_cvttpd2pi): Ditto.

testsuite/ChangeLog:

PR target/88998
* g++.dg/pr88998.c: New test.

From-SVN: r268244

6 years agobackport: re PR middle-end/89008 (O2 and O1 results differ for simple test)
Richard Biener [Thu, 24 Jan 2019 11:07:19 +0000 (11:07 +0000)] 
backport: re PR middle-end/89008 (O2 and O1 results differ for simple test)

2019-01-24  Richard Biener  <rguenther@suse.de>

Backport from mainline
2019-01-23  Richard Biener  <rguenther@suse.de>

PR tree-optimization/89008
* tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
not leave another stray operand.

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

From-SVN: r268235

6 years agoDaily bump.
GCC Administrator [Thu, 24 Jan 2019 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268223

6 years agoDaily bump.
GCC Administrator [Wed, 23 Jan 2019 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268172

6 years agore PR target/88938 (ICE in extract_insn, at recog.c:2304)
Uros Bizjak [Tue, 22 Jan 2019 16:35:53 +0000 (17:35 +0100)] 
re PR target/88938 (ICE in extract_insn, at recog.c:2304)

PR target/88938
* config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
case IX86_BUILTIN_BEXTRI64]: Sanitize operands.

testsuite/ChangeLog:

PR target/88938
* gcc.target/i386/pr88938.c: New test.

From-SVN: r268157

6 years agoDaily bump.
GCC Administrator [Tue, 22 Jan 2019 00:16:27 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268132

6 years agoDaily bump.
GCC Administrator [Mon, 21 Jan 2019 00:16:22 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268108

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

From-SVN: r268099

6 years agoDaily bump.
GCC Administrator [Sat, 19 Jan 2019 00:16:25 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268087

6 years agoalpha.c (alpha_gimplify_va_arg): Handle split indirect COMPLEX_TYPE arguments.
Uros Bizjak [Fri, 18 Jan 2019 16:46:47 +0000 (17:46 +0100)] 
alpha.c (alpha_gimplify_va_arg): Handle split indirect COMPLEX_TYPE arguments.

* config/alpha/alpha.c (alpha_gimplify_va_arg):
Handle split indirect COMPLEX_TYPE arguments.

From-SVN: r268081

6 years agoDaily bump.
GCC Administrator [Fri, 18 Jan 2019 00:16:28 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r268051

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

From-SVN: r267997

6 years agoFix diagnostics for never-defined inline and nested functions (PR c/88720, PR c/88726).
Joseph Myers [Wed, 16 Jan 2019 21:40:33 +0000 (21:40 +0000)] 
Fix diagnostics for never-defined inline and nested functions (PR c/88720, PR c/88726).

Bugs 88720 and 88726 report issues where a function is declared inline
in an inner scope, resulting in spurious diagnostics about it being
declared but never defined when that scope is left (possibly in some
cases also wrongly referring to the function as a nested function).
These are regressions that were introduced with the support for C99
inline semantics in 4.3 (they don't appear with 4.2; it's possible
some aspects of the bugs might have been introduced later than 4.3).

For the case of functions being wrongly referred to as nested,
DECL_EXTERNAL was not the right condition for a function being
non-nested; TREE_PUBLIC is appropriate for the case of non-nested
functions with external linkage, while !b->nested means this is the
outermost scope in which the function was declared and so avoids
catching the case of a file-scope static being redeclared inline
inside a function.

For the non-nested, external-linkage case, the code attempts to avoid
duplicate diagnostics by diagnosing only when scope != external_scope,
but actually scope == external_scope is more appropriate, as it's only
when the file and external scopes are popped that the code can
actually tell whether a function ended up being defined, and all such
functions will appear in the (GCC-internal) external scope.

Bootstrapped with no regressions on x86_64-pc-linux-gnu.

gcc/c:
Backport from mainline
2019-01-07  Joseph Myers  <joseph@codesourcery.com>

PR c/88720
PR c/88726
* c-decl.c (pop_scope): Use TREE_PUBLIC and b->nested to determine
whether a function is nested, not DECL_EXTERNAL.  Diagnose inline
functions declared but never defined only for external scope, not
for other scopes.

gcc/testsuite:
Backport from mainline
2019-01-07  Joseph Myers  <joseph@codesourcery.com>

PR c/88720
PR c/88726
* gcc.dg/inline-40.c, gcc.dg/inline-41.c: New tests.

From-SVN: r267987

6 years ago[PR 88214] Check that an argument is a pointer
Martin Jambor [Wed, 16 Jan 2019 15:41:07 +0000 (16:41 +0100)] 
[PR 88214] Check that an argument is a pointer

2019-01-16  Martin Jambor  <mjambor@suse.cz>

Backported from mainline
2018-12-10  Martin Jambor  <mjambor@suse.cz>

PR ipa/88214
* ipa-prop.c (determine_locally_known_aggregate_parts): Make sure
we check pointers against pointers.

testsuite/
* gcc.dg/ipa/pr88214.c: New test.

From-SVN: r267975

6 years agoDaily bump.
GCC Administrator [Wed, 16 Jan 2019 00:16:09 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r267959

6 years agore PR fortran/81849 (Size of automatic array argument specified by host-associated...
Steven G. Kargl [Tue, 15 Jan 2019 20:53:13 +0000 (20:53 +0000)] 
re PR fortran/81849 (Size of automatic array argument specified by host-associated  variable.)

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

PR fortran/81849
* resolve.c (resolve_symbol): Host associated varaibles can appear
in the specification statement of a RESULT array.

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

PR fortran/81849
* gfortran.dg/pr81849.f90: New test.

From-SVN: r267952

6 years agoDaily bump.
GCC Administrator [Tue, 15 Jan 2019 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r267927

6 years agore PR libfortran/88776 (Namelist read from stdin: loss of data)
Jerry DeLisle [Mon, 14 Jan 2019 01:12:27 +0000 (01:12 +0000)] 
re PR libfortran/88776 (Namelist read from stdin: loss of data)

2019-01-13  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libfortran/88776
* io/list_read.c (namelist_read): Use nml_err_ret path on read error
not based on stdin_unit.
* io/open.c (newunit): Free format buffer if the unit specified is for
stdin, stdout, or stderr.

* gfortran.dg/namelist_96.f90: New test.

From-SVN: r267911

6 years agoDaily bump.
GCC Administrator [Mon, 14 Jan 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r267907

6 years agoDaily bump.
GCC Administrator [Sun, 13 Jan 2019 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r267899

6 years agore PR fortran/35031 (ELEMENTAL procedure with BIND(C))
Steven G. Kargl [Sat, 12 Jan 2019 00:33:01 +0000 (00:33 +0000)] 
re PR fortran/35031 (ELEMENTAL procedure with BIND(C))

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

PR fortran/35031
* decl.c (gfc_match_entry): Check for F2018:C1546.  Fix nearby
mis-indentation.

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

PR fortran/35031
* gfortran.dg/pr35031.f90: new test.

From-SVN: r267874

6 years agoDaily bump.
GCC Administrator [Sat, 12 Jan 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r267870

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

From-SVN: r267826

6 years agoDaily bump.
GCC Administrator [Thu, 10 Jan 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r267790

6 years agore PR target/84010 (problematic TLS code generation on 64-bit SPARC)
Eric Botcazou [Wed, 9 Jan 2019 14:41:55 +0000 (14:41 +0000)] 
re PR target/84010 (problematic TLS code generation on 64-bit SPARC)

PR target/84010
* config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
consistently in TLS address generation and adjust code to the renaming
of patterns.  Mark calls to __tls_get_addr as const.
* config/sparc/sparc.md (tgd_hi22): Turn into...
(tgd_hi22<P:mode>): ...this and use Pmode throughout.
(tgd_lo10): Turn into...
(tgd_lo10<P:mode>): ...this and use Pmode throughout.
(tgd_add32): Merge into...
(tgd_add64): Likewise.
(tgd_add<P:mode>): ...this and use Pmode throughout.
(tldm_hi22): Turn into...
(tldm_hi22<P:mode>): ...this and use Pmode throughout.
(tldm_lo10): Turn into...
(tldm_lo10<P:mode>): ...this and use Pmode throughout.
(tldm_add32): Merge into...
(tldm_add64): Likewise.
(tldm_add<P:mode>): ...this and use Pmode throughout.
(tldm_call32): Merge into...
(tldm_call64): Likewise.
(tldm_call<P:mode>): ...this and use Pmode throughout.
(tldo_hix22): Turn into...
(tldo_hix22<P:mode>): ...this and use Pmode throughout.
(tldo_lox10): Turn into...
(tldo_lox10<P:mode>): ...this and use Pmode throughout.
(tldo_add32): Merge into...
(tldo_add64): Likewise.
(tldo_add<P:mode>): ...this and use Pmode throughout.
(tie_hi22): Turn into...
(tie_hi22<P:mode>): ...this and use Pmode throughout.
(tie_lo10): Turn into...
(tie_lo10<P:mode>): ...this and use Pmode throughout.
(tie_ld64): Use DImode throughout.
(tie_add32): Merge into...
(tie_add64): Likewise.
(tie_add<P:mode>): ...this and use Pmode throughout.
(tle_hix22_sp32): Merge into...
(tle_hix22_sp64): Likewise.
(tle_hix22<P:mode>): ...this and use Pmode throughout.
(tle_lox22_sp32): Merge into...
(tle_lox22_sp64): Likewise.
(tle_lox22<P:mode>): ...this and use Pmode throughout.
(*tldo_ldub_sp32): Merge into...
(*tldo_ldub_sp64): Likewise.
(*tldo_ldub<P:mode>): ...this and use Pmode throughout.
(*tldo_ldub1_sp32): Merge into...
(*tldo_ldub1_sp64): Likewise.
(*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
(*tldo_ldub2_sp32): Merge into...
(*tldo_ldub2_sp64): Likewise.
(*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
(*tldo_ldsb1_sp32): Merge into...
(*tldo_ldsb1_sp64): Likewise.
(*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
(*tldo_ldsb2_sp32): Merge into...
(*tldo_ldsb2_sp64): Likewise.
(*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
(*tldo_ldub3_sp64): Use DImode throughout.
(*tldo_ldsb3_sp64): Likewise.
(*tldo_lduh_sp32): Merge into...
(*tldo_lduh_sp64): Likewise.
(*tldo_lduh<P:mode>): ...this and use Pmode throughout.
(*tldo_lduh1_sp32): Merge into...
(*tldo_lduh1_sp64): Likewise.
(*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
(*tldo_ldsh1_sp32): Merge into...
(*tldo_ldsh1_sp64): Likewise.
(*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
(*tldo_lduh2_sp64): Use DImode throughout.
(*tldo_ldsh2_sp64): Likewise.
(*tldo_lduw_sp32): Merge into...
(*tldo_lduw_sp64): Likewise.
(*tldo_lduw<P:mode>): ...this and use Pmode throughout.
(*tldo_lduw1_sp64): Use DImode throughout.
(*tldo_ldsw1_sp64): Likewise.
(*tldo_ldx_sp64): Likewise.
(*tldo_stb_sp32): Merge into...
(*tldo_stb_sp64): Likewise.
(*tldo_stb<P:mode>): ...this and use Pmode throughout.
(*tldo_sth_sp32): Merge into...
(*tldo_sth_sp64): Likewise.
(*tldo_sth<P:mode>): ...this and use Pmode throughout.
(*tldo_stw_sp32): Merge into...
(*tldo_stw_sp64): Likewise.
(*tldo_stw<P:mode>): ...this and use Pmode throughout.
(*tldo_stx_sp64): Use DImode throughout.

Co-Authored-By: James Clarke <jrtc27@jrtc27.com>
From-SVN: r267773

6 years agoinvoke.texi (-Os): Add reference to -finline-functions.
Eric Botcazou [Wed, 9 Jan 2019 08:25:55 +0000 (08:25 +0000)] 
invoke.texi (-Os): Add reference to -finline-functions.

* doc/invoke.texi (-Os): Add reference to -finline-functions.
(-finline-small-functions): Add references to -O3 and -Os.
(-findirect-inlining): Likewise.
(-finline-functions): Add references to -Os, -fprofile-use and
-fauto-profile.

From-SVN: r267755

6 years agoDaily bump.
GCC Administrator [Wed, 9 Jan 2019 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r267748

6 years agoDaily bump.
GCC Administrator [Tue, 8 Jan 2019 00:16:18 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r267668

6 years agoDaily bump.
GCC Administrator [Mon, 7 Jan 2019 00:16:17 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r267617

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

From-SVN: r267604

6 years agore PR target/60563 (FAIL: g++.dg/ext/sync-4.C on *-apple-darwin*)
Dominique d'Humieres [Sat, 5 Jan 2019 12:44:12 +0000 (13:44 +0100)] 
re PR target/60563 (FAIL: g++.dg/ext/sync-4.C on *-apple-darwin*)

2019-01-05  Dominique d'Humieres  <dominiq@gcc.gnu.org>

PR target/60563
* g++.dg/ext/sync-4.C: Add dg-xfail-run-if for darwin.

From-SVN: r267597

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

From-SVN: r267586

6 years agoDaily bump.
GCC Administrator [Fri, 4 Jan 2019 00:16:23 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r267566

6 years agorevert fix for pr88343
Iain Sandoe [Thu, 3 Jan 2019 08:34:41 +0000 (08:34 +0000)] 
revert fix for pr88343

causes problems with soft-fp in GLIBC, see pr comment 11

2019-01-03  Iain Sandoe  <iain@sandoe.co.uk>

revert:
2018-12-30  Iain Sandoe  <iain@sandoe.co.uk>

backport from mainline.
2018-12-12 Segher Boessenkool  <segher@kernel.crashing.org>
   Iain Sandoe  <iain@sandoe.co.uk>

PR target/88343
* config/rs6000/rs6000.c (save_reg_p): Do not save the picbase reg
unless it has been used.
(first_reg_to_save): Remove dead code.

From-SVN: r267542

6 years agoDaily bump.
GCC Administrator [Thu, 3 Jan 2019 00:16:23 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r267538

6 years agoBackport of the "asm inline" patches
Segher Boessenkool [Wed, 2 Jan 2019 22:49:04 +0000 (23:49 +0100)] 
Backport of the "asm inline" patches

From-SVN: r267536

6 years agoDaily bump.
GCC Administrator [Wed, 2 Jan 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r267500

6 years agoDaily bump.
GCC Administrator [Tue, 1 Jan 2019 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r267489

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

From-SVN: r267479

6 years agofix PR target/88343 for 32b powerpc.
Iain Sandoe [Sun, 30 Dec 2018 13:20:19 +0000 (13:20 +0000)] 
fix PR target/88343 for 32b powerpc.

2018-12-30  Iain Sandoe  <iain@sandoe.co.uk>

backport from mainline.
2018-12-12 Segher Boessenkool  <segher@kernel.crashing.org>
   Iain Sandoe  <iain@sandoe.co.uk>

PR target/88343
* config/rs6000/rs6000.c (save_reg_p): Do not save the picbase reg
unless it has been used.
(first_reg_to_save): Remove dead code.

From-SVN: r267477

6 years agore PR tree-optimization/68356 (FAIL: gcc.dg/torture/pr68264.c -O* execution test...
Dominique d'Humieres [Sun, 30 Dec 2018 12:28:54 +0000 (13:28 +0100)] 
re PR tree-optimization/68356 (FAIL: gcc.dg/torture/pr68264.c   -O*  execution test on x86_64-apple-darwin1(0|4))

2018-12-30  Dominique d'Humieres  <dominiq@gcc.gnu.org>

PR tree-optimization/68356
PR target/81210
* gcc.dg/torture/pr68264.c: Skip on darwin.
* gcc.dg/torture/pr68037-1.c: Likewise.
* gcc.dg/torture/pr68037-2.c: Likewise.
* gcc.dg/torture/pr68037-3.c: Likewise.

From-SVN: r267476

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

From-SVN: r267471

6 years agore PR fortran/82550 (program using submodules fails to link)
Paul Thomas [Sat, 29 Dec 2018 18:21:39 +0000 (18:21 +0000)] 
re PR fortran/82550 (program using submodules fails to link)

2018-12-29  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/82550
* trans_decl.c (gfc_get_symbol_decl): Procedure symbols that
have the 'used_in_submodule' attribute should be processed by
'gfc_get_extern_function_decl'.

2018-12-29  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/82550
* gfortran.dg/submodule_30.f08 : New test.

From-SVN: r267466

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

From-SVN: r267458

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

From-SVN: r267439

6 years agoDaily bump.
GCC Administrator [Thu, 27 Dec 2018 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r267424

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

From-SVN: r267419

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

From-SVN: r267416

6 years agoFix target/67974 for Darwin by adding AVX asm shim.
Iain Sandoe [Mon, 24 Dec 2018 13:41:16 +0000 (13:41 +0000)] 
Fix target/67974 for Darwin by adding AVX asm shim.

2018-12-24  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline
2018-12-24  Iain Sandoe  <iain@sandoe.co.uk>

PR testsuite/67974
* gcc.target/x86_64/abi/avx/asm-support-darwin.s: New.

From-SVN: r267411

6 years agoFix Ada boostrap for Darwin9 and earlier.
Iain Sandoe [Mon, 24 Dec 2018 13:35:32 +0000 (13:35 +0000)] 
Fix Ada boostrap for Darwin9 and earlier.

2018-12-24  Iain Sandoe  <iain@sandoe.co.uk>

* adaint.c [__APPLE__] (__gnat_lwp_self): Ensure that the system
interface used is available on the target.

From-SVN: r267410

6 years agoFix PR c++/87380 (ABI breakage) for Darwin.
Iain Sandoe [Mon, 24 Dec 2018 13:17:28 +0000 (13:17 +0000)] 
Fix PR c++/87380 (ABI breakage) for Darwin.

2018-12-24  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline
2018-12-06  Iain Sandoe  <iain@sandoe.co.uk>

PR c++/87380
* config/darwin.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC) Remove, use the
default.
* config/rs6000/darwin7.h (TARGET_WEAK_NOT_IN_ARCHIVE_TOC): New.

From-SVN: r267409

6 years agoFix build warnigns on Darwin, don't try to export construction vtable symbols.
Iain Sandoe [Mon, 24 Dec 2018 13:09:39 +0000 (13:09 +0000)] 
Fix build warnigns on Darwin, don't try to export construction vtable symbols.

2018-12-24  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline
2018-12-06  Iain Sandoe  <iain@sandoe.co.uk>

* scripts/make_exports.pl (check names): Don’t try to export
construction vtable symbols.

From-SVN: r267408

6 years agoFix libstdc++/64883 for Darwin.
Iain Sandoe [Mon, 24 Dec 2018 13:01:04 +0000 (13:01 +0000)] 
Fix libstdc++/64883 for Darwin.

2018-12-24  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline
2018-12-06  Jonathan Wakely  <jwakely@redhat.com>
    Iain Sandoe  <iain@sandoe.co.uk>

PR libstdc++/64883
* testsuite/17_intro/headers/c++1998/all_attributes.cc: Don't test
always_inline on Darwin.
* testsuite/17_intro/headers/c++2011/all_attributes.cc: Likewise.
* testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.
* testsuite/17_intro/headers/c++2017/all_attributes.cc: Likewise.
* testsuite/17_intro/headers/c++2020/all_attributes.cc: Likewise.

From-SVN: r267407

6 years agoFix target/78444 on x86/Darwin.
Iain Sandoe [Mon, 24 Dec 2018 12:47:58 +0000 (12:47 +0000)] 
Fix target/78444 on x86/Darwin.

2018-12-24  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline
2018-12-06  Iain Sandoe  <iain@sandoe.co.uk>

PR target/78444
* config/i386/darwin.h (STACK_BOUNDARY): Remove macro.
* config/i386/i386.c (ix86_compute_frame_layout): Ensure at least 128b
stack alignment in non-leaf functions.

From-SVN: r267406

6 years agoDon't try to use pthread_barrier in tests on Darwin.
Iain Sandoe [Mon, 24 Dec 2018 12:42:16 +0000 (12:42 +0000)] 
Don't try to use pthread_barrier in tests on Darwin.

This was optional in SUSv6 and isn't implemented on Darwin.

2018-12-24  Iain Sandoe  <iain@sandoe.co.uk>

2018-08-16  Iain Sandoe <iain@sandoe.co.uk>

* g++.dg/torture/pr44295.C : Skip for Darwin.

From-SVN: r267405

6 years agoFix three tests for targets using _USER_LABEL_PREFIX_
Iain Sandoe [Mon, 24 Dec 2018 12:38:51 +0000 (12:38 +0000)] 
Fix three tests for targets using _USER_LABEL_PREFIX_

2018-12-24  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline
2018-08-22  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.dg/lto/pr85248_0.c (test_alias):
Stringify __USER_LABEL_PREFIX__.
(test_noreturn): Likewise.

2018-08-16  Iain Sandoe <iain@sandoe.co.uk>

* gcc.dg/memcmp-1.c (lib_memcmp): Apply __USER_LABEL_PREFIX__.
(lib_strncmp): Likewise.

2018-08-16  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.dg/asan/pr81923.c: Stringify __USER_LABEL_PREFIX__.

From-SVN: r267404

6 years agoFix tree-prof section tests on Darwin.
Iain Sandoe [Mon, 24 Dec 2018 12:30:24 +0000 (12:30 +0000)] 
Fix tree-prof section tests on Darwin.

Add Darwin section names.

2018-12-24  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline
2018-08-16  Iain Sandoe <iain@sandoe.co.uk>

PR testsuite/78544
* gcc.dg/tree-prof/section-attr-1.c: Add Darwin-specific section
attributes and matching.
* gcc.dg/tree-prof/section-attr-2.c: Likewise.
* gcc.dg/tree-prof/section-attr-3.c: Likewise.

From-SVN: r267403

6 years agoFix Darwin PR libstdc++/70694
Iain Sandoe [Mon, 24 Dec 2018 12:26:11 +0000 (12:26 +0000)] 
Fix Darwin PR libstdc++/70694

2018-12-24  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline
2018-08-25  Iain Sandoe  <iain@sandoe.co.uk>

PR libstdc++/70694
* configure.host (OPT_LDFLAGS): Don't append
-fvisibility-inlines-hidden for newer Darwin.

From-SVN: r267402

6 years agofix Darwin target/81685
Iain Sandoe [Mon, 24 Dec 2018 12:20:18 +0000 (12:20 +0000)] 
fix Darwin target/81685

2018-12-24  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline
2018-08-15  Iain Sandoe  <iain@sandoe.co.uk>

PR target/81685
* config/darwin.h: (DEBUG_STR_OFFSETS_SECTION, DEBUG_LOCLISTS_SECTION,
DEBUG_RNGLISTS_SECTION) new macros.  (DEBUG_PUBNAMES_SECTION,
DEBUG_PUBTYPES_SECTION) update to include GNU variant.

From-SVN: r267401

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

From-SVN: r267389

6 years agore PR fortran/77703 (ICE on assignment to pointer function)
Paul Thomas [Sun, 23 Dec 2018 20:01:44 +0000 (20:01 +0000)] 
re PR fortran/77703 (ICE on assignment to pointer function)

2018-12-23  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/77703
* resolve.c (get_temp_from_expr): Use the string length of
constant character expressions.

2018-12-23  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/77703
* gfortran.dg/ptr_func_assign_5.f08 : New test.

From-SVN: r267383

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

From-SVN: r267364

6 years agore PR fortran/85798 (ICE in get_array_index, at fortran/data.c:69)
Steven G. Kargl [Sat, 22 Dec 2018 23:23:02 +0000 (23:23 +0000)] 
re PR fortran/85798 (ICE in get_array_index, at fortran/data.c:69)

2018-12-22  Steven G . Kargl  <kargl@gcc.gnu.org>

PR fortran/85798
* decl.c (gfc_match_data): If a component of a derived type entity
appears in data statement, check that does not have the allocatable
attribute.

2018-12-22  Steven G . Kargl  <kargl@gcc.gnu.org>

PR fortran/85798
* gfortran.dg/pr85798.f90: New test.

From-SVN: r267362

6 years agobackport: re PR fortran/85544 (ICE in gfc_conv_scalarized_array_ref, at fortran/trans...
Thomas Koenig [Sat, 22 Dec 2018 20:16:22 +0000 (20:16 +0000)] 
backport: re PR fortran/85544 (ICE in gfc_conv_scalarized_array_ref, at fortran/trans-array.c:3385)

2018-12-22  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/85544
* frontend-passes.c (optimize_power): Remove.
(optimize_op): Remove call to optimize_power.
* trans-expr.c (gfc_conv_power_op): Handle cases of 1**integer,
(2|4|8|16) ** integer and (-1) ** integer.

2018-12-22  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/85544
* gfortran.dg/power_7.f90: New test.

From-SVN: r267360

6 years agore PR fortran/88169 (Rejects USE rename of namelist group)
Steven G. Kargl [Sat, 22 Dec 2018 18:09:19 +0000 (18:09 +0000)] 
re PR fortran/88169 (Rejects USE rename of namelist group)

2018-12-21  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/88169
* module.c (mio_namelist): Remove an error condition/message that
is contrary to the Fortran standard.

2018-12-21  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/88169
* gfortran.dg/pr88169_1.f90: new test.
* gfortran.dg/pr88169_2.f90: Ditto.
* gfortran.dg/pr88169_3.f90: Ditto.

From-SVN: r267354

6 years agoDaily bump.
GCC Administrator [Sat, 22 Dec 2018 00:16:19 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r267344

6 years ago* ChangeLog: Add my last entry.
Uros Bizjak [Fri, 21 Dec 2018 18:15:49 +0000 (19:15 +0100)] 
* ChangeLog: Add my last entry.

From-SVN: r267335

6 years agobackport: re PR target/88418 (ICE in extract_insn, at recog.c:2305 (error: unrecogniz...
Uros Bizjak [Fri, 21 Dec 2018 18:11:04 +0000 (19:11 +0100)] 
backport: re PR target/88418 (ICE in extract_insn, at recog.c:2305 (error: unrecognizable insn))

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

PR target/88418
* config/i386/i386.c (ix86_expand_sse_cmp): For vector modes,
check operand 1 with vector_operand predicate.
(ix86_expand_sse_movcc): For vector modes, check op_true with
vector_operand, not nonimmediate_operand.

testsuite/ChangeLog:

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

PR target/88418
* gcc.target/i386/pr88418.c: New test.

From-SVN: r267332

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

From-SVN: r267315

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

From-SVN: r267289

6 years agobackport: extend.texi (PowerPC Altivec/VSX Built-in Functions): Describe when a typed...
Bill Schmidt [Wed, 19 Dec 2018 18:34:25 +0000 (18:34 +0000)] 
backport: extend.texi (PowerPC Altivec/VSX Built-in Functions): Describe when a typedef name can be used as the type specifier for a vector type...

2018-12-19  Bill Schmidt  <wschmidt@linux.ibm.com>

Backport from mainline
2018-12-18  Bill Schmidt  <wschmidt@linux.ibm.com>

* doc/extend.texi (PowerPC Altivec/VSX Built-in Functions):
Describe when a typedef name can be used as the type specifier for
a vector type, and when it cannot.

From-SVN: r267284

6 years agobackport: re PR target/88213 (ICE in change_address_1, at emit-rtl.c:2286)
Segher Boessenkool [Wed, 19 Dec 2018 14:04:22 +0000 (15:04 +0100)] 
backport: re PR target/88213 (ICE in change_address_1, at emit-rtl.c:2286)

Backport from trunk
2018-12-19  Segher Boessenkool  <segher@kernel.crashing.org>

PR target/88213
* config/rs6000/vsx.md (*vsx_extract_<P:mode>_<VSX_D:mode>_load):
Require TARGET_POWERPC64.

From-SVN: r267265