]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
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

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

From-SVN: r267246

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

From-SVN: r267223

6 years agobackport: re PR rtl-optimization/88253 (Inlining of function incorrectly deletes...
Senthil Kumar Selvaraj [Mon, 17 Dec 2018 13:26:50 +0000 (13:26 +0000)] 
backport: re PR rtl-optimization/88253 (Inlining of function incorrectly deletes volatile register access when using XOR in avr-gcc)

2018-12-17  Senthil Kumar Selvaraj  <senthilkumar.selvaraj@microchip.com>

Backport from trunk
2018-12-17  Senthil Kumar Selvaraj  <senthilkumar.selvaraj@microchip.com>

PR rtl-optimization/88253
* combine.c (combine_simplify_rtx): Test for side-effects before
substituting by zero.

2018-12-17  Senthil Kumar Selvaraj  <senthilkumar.selvaraj@microchip.com>

Backport from trunk
2018-12-17  Senthil Kumar Selvaraj  <senthilkumar.selvaraj@microchip.com>

PR rtl-optimization/88253
* gcc.target/avr/pr88253.c: New test.

From-SVN: r267201

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

From-SVN: r267193

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

From-SVN: r267181

6 years agore PR fortran/88138 (ICE in gfc_arith_concat, at fortran/arith.c:1007)
Steven G. Kargl [Sat, 15 Dec 2018 23:57:03 +0000 (23:57 +0000)] 
re PR fortran/88138 (ICE in gfc_arith_concat, at fortran/arith.c:1007)

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

PR fortran/88138
* decl.c (variable_decl): Check that a derived isn't being assigned
an incompatible entity in an initialization.

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

PR fortran/88138
* gfortran.dg/pr88138.f90: new test.

From-SVN: r267180

6 years agobackport: re PR rtl-optimization/88001 (ASMCONS cannot handle properly UNSPEC(CONST))
Segher Boessenkool [Sat, 15 Dec 2018 12:07:42 +0000 (13:07 +0100)] 
backport: re PR rtl-optimization/88001 (ASMCONS cannot handle properly UNSPEC(CONST))

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

PR rtl-optimization/88001
* function.c (match_asm_constraints_1): Don't invalidly share RTL.

From-SVN: r267172

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

From-SVN: r267161

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

From-SVN: r267115

6 years agobackport: target.h (htm_available): Add support for PPC_FEATURE2_HTM_NO_SUSPEND.
Peter Bergner [Thu, 13 Dec 2018 18:08:47 +0000 (18:08 +0000)] 
backport: target.h (htm_available): Add support for PPC_FEATURE2_HTM_NO_SUSPEND.

libitm/
Backport from mainline
2018-12-13  Peter Bergner  <bergner@linux.ibm.com>

* config/powerpc/target.h (htm_available):  Add support for
PPC_FEATURE2_HTM_NO_SUSPEND.  Use __builtin_cpu_supports if available.

From-SVN: r267103

6 years agoS/390: Fix zvector vec_double builtin
Andreas Krebbel [Thu, 13 Dec 2018 12:07:58 +0000 (12:07 +0000)] 
S/390: Fix zvector vec_double builtin

The (unsigned) long int to double vector conversion instructions
expect 2 immediate parameters. One for the inexact suppression
control and another one for the rounding mode.  However, the
vec_double builtin has just the vector source operand.  The 2
addtional operands need to be added with an intermediate expander.
The expanders were already there but unfortunately not wired up
correctly to the builtin.

gcc/ChangeLog:

2018-12-13  Andreas Krebbel  <krebbel@linux.ibm.com>

Backport from mainline
2018-12-13  Andreas Krebbel  <krebbel@linux.ibm.com>

* config/s390/s390-builtins.def (s390_vec_double_s64): Map to
s390_vec_double_s64 instead of s390_vcdgb.
(s390_vec_double_u64): Map to s390_vec_double_u64 instead of
s390_vcdlgb.

gcc/testsuite/ChangeLog:

2018-12-13  Andreas Krebbel  <krebbel@linux.ibm.com>

Backport from mainline
2018-12-13  Andreas Krebbel  <krebbel@linux.ibm.com>

* gcc.target/s390/zvector/vec-double-1.c: New test.
* gcc.target/s390/zvector/vec-double-2.c: New test.

From-SVN: r267088

6 years agoS/390: Use VEC_INEXACT/VEC_NOINEXACT instead of magic numbers.
Andreas Krebbel [Thu, 13 Dec 2018 12:06:40 +0000 (12:06 +0000)] 
S/390: Use VEC_INEXACT/VEC_NOINEXACT instead of magic numbers.

2018-12-13  Andreas Krebbel  <krebbel@linux.ibm.com>

Backport from mainline
2018-12-13  Andreas Krebbel  <krebbel@linux.ibm.com>

* config/s390/vx-builtins.md ("vec_ctd_s64", "vec_ctd_u64")
("vec_ctsl", "vec_ctul"): Replace 0 with VEC_NOINEXACT.
("vec_double_s64", "vec_double_u64"): Replace 4 with VEC_INEXACT.

From-SVN: r267087

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

From-SVN: r267072

6 years agobackport: re PR target/87496 (ICE in aggregate_value_p at gcc/function.c:2046)
Peter Bergner [Wed, 12 Dec 2018 17:20:41 +0000 (17:20 +0000)] 
backport: re PR target/87496 (ICE in aggregate_value_p at gcc/function.c:2046)

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

PR target/87496
* config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
-mabi=ieeelongdouble and -mabi=ibmlongdouble without -mlong-double-128.
Do not error for -mabi=ibmlongdouble and no ISA 2.06 support.
* doc/invoke.texi: Document -mabi=ibmlongdouble and -mabi=ieeelongdouble
require -mlong-double-128.

gcc/testsuite/
Backport from mainline
2018-12-07  Peter Bergner  <bergner@linux.ibm.com>

PR target/87496
* gcc.target/powerpc/pr87496-1.c: New test.
* gcc.target/powerpc/pr87496-2.c: New test.
* gcc.target/powerpc/pr87496-3.c: New test.

From-SVN: r267062

6 years agore PR fortran/88155 (ICE in gfc_format_decoder, at fortran/error.c:947)
Steven G. Kargl [Wed, 12 Dec 2018 01:26:12 +0000 (01:26 +0000)] 
re PR fortran/88155 (ICE in gfc_format_decoder, at fortran/error.c:947)

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

PR fortran/88155
* primary.c (gfc_match_structure_constructor):  Set the locus of
an expression to avoid a NULL pointer dereference.

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

PR fortran/88155
* gfortran.dg/pr70870_1.f90: Update testcase to use -std=gnu.
* gfortran.dg/pr88155.f90: New test.

From-SVN: r267043

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

From-SVN: r267038

6 years agore PR fortran/88249 (ICE in gfc_resolve_filepos, at fortran/io.c:2853)
Steven G. Kargl [Wed, 12 Dec 2018 00:08:12 +0000 (00:08 +0000)] 
re PR fortran/88249 (ICE in gfc_resolve_filepos, at fortran/io.c:2853)

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

PR fortran/88249
* gfortran.h: Update prototype for gfc_resolve_filepos().
* io.c (gfc_resolve_filepos): Check for UNIT number if ERR= is present.
Use passed in locus for error message.
* resolve.c (gfc_resolve_code): Pass locus in gfc_resolve_filepos()
call.

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

PR fortran/88249
* gfortran.dg/pr88249.f90: New test.

From-SVN: r267037

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

From-SVN: r266964

6 years agore PR fortran/88269 (ICE in gfc_format_decoder, at fortran/error.c:947)
Steven G. Kargl [Mon, 10 Dec 2018 20:03:32 +0000 (20:03 +0000)] 
re PR fortran/88269 (ICE in gfc_format_decoder, at fortran/error.c:947)

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

PR fortran/88269
* io.c (io_constraint): Update macro. If locus line buffer is NULL,
use gfc_current_locus in error messages.
(check_io_constraints): Catch missing IO UNIT in write and read
statements.  io_constraint macro is incompatible here.

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

PR fortran/88269
* gfortran.dg/pr88269.f90: New test.

From-SVN: r266962

6 years agore PR fortran/88205 (ICE in gfc_wide_strncasecmp, at fortran/scanner.c:249)
Steven G. Kargl [Mon, 10 Dec 2018 01:25:47 +0000 (01:25 +0000)] 
re PR fortran/88205 (ICE in gfc_wide_strncasecmp, at fortran/scanner.c:249)

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

PR fortran/88205
* io.c (gfc_match_open): Move NEWUNIT checks to after STATUS checks.

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

PR fortran/88205
* gfortran.dg/pr88205.f90: New unit.

From-SVN: r266941

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

From-SVN: r266937