]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
5 years agore PR go/91621 (libgo/mksysinfo.sh: please avoid test ==)
Ian Lance Taylor [Tue, 10 Sep 2019 20:32:42 +0000 (20:32 +0000)] 
re PR go/91621 (libgo/mksysinfo.sh: please avoid test ==)

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

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

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

From-SVN: r275609

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

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

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

    Updates golang/go#34182

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

From-SVN: r275607

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

From-SVN: r275554

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

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

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

From-SVN: r275523

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

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

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

From-SVN: r275510

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

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

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

From-SVN: r275509

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

From-SVN: r275500

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

From-SVN: r275492

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

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

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

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

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

From-SVN: r275487

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

From-SVN: r275481

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

From-SVN: r275448

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

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

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

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

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

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

From-SVN: r275445

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

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

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

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

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

From-SVN: r275427

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

From-SVN: r275394

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

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

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

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

From-SVN: r275373

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

From-SVN: r275361

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

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

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

From-SVN: r275345

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

From-SVN: r275327

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

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

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

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

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

From-SVN: r275323

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

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

From-SVN: r275310

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

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

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

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

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

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

From-SVN: r275302

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

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

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

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

From-SVN: r275301

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

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

From-SVN: r275300

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

From-SVN: r275289

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

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

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

From-SVN: r275286

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

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

From-SVN: r275272

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

From-SVN: r275263

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

From-SVN: r275259

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

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

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

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

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

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

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

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

gcc/

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

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

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

gcc/c-family/

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

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

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

gcc/c/

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

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

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

gcc/cp/

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

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

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

From-SVN: r275246

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

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

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

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

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

From-SVN: r275241

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

From-SVN: r275234

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

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

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

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

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

From-SVN: r275230

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

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

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

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

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

From-SVN: r275229

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

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

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

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

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

From-SVN: r275228

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

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

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

From-SVN: r275176

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

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

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

From-SVN: r275175

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

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

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

From-SVN: r275170

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

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

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

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

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

From-SVN: r275167

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

From-SVN: r275058

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

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

From-SVN: r275033

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

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

From-SVN: r275029

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

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

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

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

From-SVN: r275024

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

From-SVN: r275020

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

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

From-SVN: r275014

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

From-SVN: r275013

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

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

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

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

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

From-SVN: r274989

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

From-SVN: r274979

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

From-SVN: r274943

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

Backport r274411 from trunk to gcc-9-branch

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

Bootstrapped/Regression-tested on Linux POWER8 LE.

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

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

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

From-SVN: r274921

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

From-SVN: r274918

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

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

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

From-SVN: r274910

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

From-SVN: r274906

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

From-SVN: r274897

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

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

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

From-SVN: r274892

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

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

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

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

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

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

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

From-SVN: r274886

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

From-SVN: r274869

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

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

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

From-SVN: r274864

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

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

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

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

From-SVN: r274853

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

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

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

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

From-SVN: r274852

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

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

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

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

From-SVN: r274851

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

From-SVN: r274842

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

From-SVN: r274815

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

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

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

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

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

From-SVN: r274807

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

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

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

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

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

From-SVN: r274806

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

From-SVN: r274762

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

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

From-SVN: r274759

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

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

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

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

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

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

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

From-SVN: r274754

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

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

From-SVN: r274753

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

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

From-SVN: r274709

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

From-SVN: r274688

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

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

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

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

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

From-SVN: r274675

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

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

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

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

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

From-SVN: r274632

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

From-SVN: r274628

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

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

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

libsanitizer/

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

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

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

From-SVN: r274625

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

From-SVN: r274617

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

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

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

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

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

From-SVN: r274612

5 years agore PR fortran/78739 (ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1477)
Steven G. Kargl [Sat, 17 Aug 2019 18:14:26 +0000 (18:14 +0000)] 
re PR fortran/78739 (ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1477)

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

PR fortran/78739
* match.c (gfc_match_st_function):  When matching a statement function,
need to check if the statement function name shadows the function
name.

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

PR fortran/78739
* fortran.dg/pr78739.f90: New test.

From-SVN: r274611

5 years agore PR fortran/78719 ([F03] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1438)
Steven G. Kargl [Sat, 17 Aug 2019 18:11:58 +0000 (18:11 +0000)] 
re PR fortran/78719 ([F03] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1438)

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

PR fortran/78719
* decl.c (get_proc_name): Check for a CLASS entity when trying to
add attributes to an entity that already has an explicit interface.

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

PR fortran/78719
* gfortran.dg/pr78719_1.f90: New test.
* gfortran.dg/pr78719_2.f90: Ditto.
* gfortran.dg/pr78719_3.f90: Ditto.

From-SVN: r274610

5 years agore PR fortran/82992 (ICE in create_int_parameter_array, at fortran/module.c:6586)
Steven G. Kargl [Sat, 17 Aug 2019 18:08:21 +0000 (18:08 +0000)] 
re PR fortran/82992 (ICE in create_int_parameter_array, at fortran/module.c:6586)

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

PR fortran/82992
* module.c (gfc_match_use):  When renaming a module entity, search
current namespace for conflicting symbol.

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

PR fortran/82992
* gfortran.dg/pr71649.f90: Adjust error messages.
* gfortran.dg/use_15.f90: Ditto.
* gfortran.dg/use_rename_8.f90: Ditto.

From-SVN: r274609

5 years agoPR c++/90393 - ICE with throw in ?:
Jason Merrill [Sat, 17 Aug 2019 01:34:00 +0000 (21:34 -0400)] 
PR c++/90393 - ICE with throw in ?:

I fixed the DR 1560 implementation properly for GCC 10, but for GCC 9 feel
that it's better not to change the meaning of well-formed code.  Reverting
the incomplete implementation fixes the ICEs.

* call.c (build_conditional_expr_1): Revert changes from
PR c++/64372 and c++/86205.

From-SVN: r274597

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

From-SVN: r274594

5 years agobackport: re PR tree-optimization/91109 ([arm] gcc.c-torture/execute/20040709-1.c...
Bernd Edlinger [Fri, 16 Aug 2019 16:37:04 +0000 (16:37 +0000)] 
backport: re PR tree-optimization/91109 ([arm] gcc.c-torture/execute/20040709-1.c fails since r273135)

2019-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        Backport from mainline
        2019-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR tree-optimization/91109
        * lra-int.h (lra_need_for_scratch_reg_p): Declare.
        * lra.c (lra): Use lra_need_for_scratch_reg_p.
        * lra-spills.c (lra_need_for_scratch_reg_p): New function.

From-SVN: r274578

5 years agobackport: re PR tree-optimization/91109 ([arm] gcc.c-torture/execute/20040709-1.c...
Bernd Edlinger [Fri, 16 Aug 2019 16:31:13 +0000 (16:31 +0000)] 
backport: re PR tree-optimization/91109 ([arm] gcc.c-torture/execute/20040709-1.c fails since r273135)

2019-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        Backport from mainline
        2019-08-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR tree-optimization/91109
        * lra-remat.c (update_scratch_ops): Remove assignment of the
        hard register.

From-SVN: r274577

5 years agotest_summary: Do not escape "=".
Uros Bizjak [Fri, 16 Aug 2019 12:03:09 +0000 (14:03 +0200)] 
test_summary: Do not escape "=".

* test_summary: Do not escape "=".

From-SVN: r274566

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

From-SVN: r274554

5 years agobackport: omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to build_dist...
Steve Ellcey [Thu, 15 Aug 2019 20:41:47 +0000 (20:41 +0000)] 
backport: omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to build_distinct_type_copy.

2019-08-15  Steve Ellcey  <sellcey@marvell.com>

Backport from mainline
2019-08-02  Steve Ellcey  <sellcey@marvell.com>

* omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
build_distinct_type_copy.
(simd_clone_adjust_argument_types): Ditto.
(simd_clone_adjust): Call build_distinct_type_copy here.
(expand_simd_clones): Ditto.

From-SVN: r274548

5 years agoPR c++/90884 - stray note with -Wctor-dtor-privacy.
Marek Polacek [Thu, 15 Aug 2019 18:35:07 +0000 (18:35 +0000)] 
PR c++/90884 - stray note with -Wctor-dtor-privacy.

* class.c (maybe_warn_about_overly_private_class): Guard the call to
inform.

From-SVN: r274547

5 years agoPR c++/90473 - wrong code with nullptr in default argument.
Marek Polacek [Thu, 15 Aug 2019 18:33:43 +0000 (18:33 +0000)] 
PR c++/90473 - wrong code with nullptr in default argument.

* call.c (null_ptr_cst_p): Update quote from the standard.
* decl.c (check_default_argument): Don't return nullptr when the arg
has side-effects.

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

From-SVN: r274546

5 years agoPR c++/87519 - bogus warning with -Wsign-conversion.
Marek Polacek [Thu, 15 Aug 2019 18:32:33 +0000 (18:32 +0000)] 
PR c++/87519 - bogus warning with -Wsign-conversion.

* typeck.c (cp_build_binary_op): Use same_type_p instead of comparing
the types directly.

* g++.dg/warn/Wsign-conversion-5.C: New test.

From-SVN: r274545

5 years agoPR c++/81429 - wrong parsing of constructor with C++11 attribute.
Marek Polacek [Thu, 15 Aug 2019 18:31:16 +0000 (18:31 +0000)] 
PR c++/81429 - wrong parsing of constructor with C++11 attribute.

* parser.c (cp_parser_constructor_declarator_p): Handle the scenario
when a parameter declaration begins with [[attribute]].

* g++.dg/cpp0x/gen-attrs-68.C: New test.
* g++.dg/cpp0x/gen-attrs-69.C: New test.

From-SVN: r274544

5 years agobackport: [multiple changes]
Richard Biener [Thu, 15 Aug 2019 12:02:47 +0000 (12:02 +0000)] 
backport: [multiple changes]

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

PR tree-optimization/91445
* gcc.dg/torture/pr91445.c: New testcase.

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

PR tree-optimization/91091
* tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
(walk_non_aliased_vuses): Likewise.
* tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
(get_continuation_for_phi): New tbaa_p parameter and pass
it down.
(walk_non_aliased_vuses): Likewise.
* tree-ssa-pre.c (translate_vuse_through_block): Likewise.
* tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
Likewise.
* tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
(vn_reference_lookup_3): Handle and pass down tbaa_p flag.
(vn_reference_lookup_pieces): Adjust.
(vn_reference_lookup): Remove alias-set altering, instead pass
down false as tbaa_p.

* gcc.dg/tree-ssa/pr91091-2.c: New testcase.

2019-07-04  Richard Biener  <rguenther@suse.de>

* tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
argument.
* tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
globals into...
(struct vn_walk_cb_data): New callback data struct.
(vn_reference_lookup_2): Adjust.
(vn_reference_lookup_3): Likewise.
(vn_reference_lookup_pieces): Likewise.
(vn_reference_lookup): Likewise, get last_vuse_ptr argument.
(visit_reference_op_load): Adjust.

From-SVN: r274532

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

From-SVN: r274500

5 years agobackport: re PR c++/90947 (Simple lookup table of array of strings is miscompiled)
Martin Sebor [Wed, 14 Aug 2019 20:36:46 +0000 (20:36 +0000)] 
backport: re PR c++/90947 (Simple lookup table of array of strings is miscompiled)

Backport from mainline

2019-08-01  Martin Sebor  <msebor@redhat.com>

PR c++/90947
* tree.c (type_initializer_zero_p): Define.
* tree.h (type_initializer_zero_p): New function.

2019-08-05  Martin Sebor  <msebor@redhat.com>

* doc/extend.texi (Common Variable Attributes): Document alias
attribute.

2019-08-01  Martin Sebor  <msebor@redhat.com>

PR c++/90947
* decl.c (reshape_init_array_1): Avoid truncating initializer
lists containing string literals.

2019-08-14  Martin Sebor  <msebor@redhat.com>

PR tree-optimization/91294
* gcc.dg/strlenopt-44.c: Adjust tested result.
* gcc.dg/strlenopt-70.c: Avoid exercising unimplemnted optimization.
* gcc.dg/strlenopt-73.c: New test.
* gcc.dg/strlenopt-74.c: New test.
* gcc.dg/strlenopt-75.c: New test.
* gcc.dg/strlenopt-76.c: New test.
* gcc.dg/strlenopt-77.c: New test.

From-SVN: r274494

5 years agoPR c++/91436 fix C++ dialect for std::make_unique fix-it hint
Jonathan Wakely [Wed, 14 Aug 2019 20:10:00 +0000 (21:10 +0100)] 
PR c++/91436 fix C++ dialect for std::make_unique fix-it hint

The std::make_unique function wasn't added until C++14, and neither was
the std::complex_literals namespace.

gcc/cp:

PR c++/91436
* name-lookup.c (get_std_name_hint): Fix min_dialect field for
complex_literals and make_unique entries.

gcc/testsuite:

PR c++/91436
* g++.dg/lookup/missing-std-include-5.C: Limit test to C++14 and up.
* g++.dg/lookup/missing-std-include-6.C: Don't check make_unique in
test that runs for C++11.
* g++.dg/lookup/missing-std-include-8.C: Check make_unique here.

From-SVN: r274493

5 years agore PR fortran/87991 (ICE in gfc_constructor_append_expr, at fortran/constructor.c...
Steven G. Kargl [Wed, 14 Aug 2019 04:38:29 +0000 (04:38 +0000)] 
re PR fortran/87991 (ICE in gfc_constructor_append_expr, at fortran/constructor.c:135)

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

PR fortran/87991
* resolve.c (check_data_variable): data-stmt-object with pointer
attribute requires a data-stmt-value with the target attribute.

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

PR fortran/87991
* gfortran.dg/pr87991.f90: New test.

From-SVN: r274413

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

From-SVN: r274409

5 years agobackport: re PR fortran/90563 (Out of bounds error when compiling with -Wextra)
Thomas Koenig [Tue, 13 Aug 2019 22:25:32 +0000 (22:25 +0000)] 
backport: re PR fortran/90563 (Out of bounds error when compiling with -Wextra)

2013-08-13  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/90563
* frontend-passes.c (insert_index): Suppress errors while
simplifying the resulting expression.

2013-08-13  Thomas Koenig  <tkoenig@gcc.gnu.org>

Backport from trunk
PR fortran/90563
* gfortran.dg/do_subsript_5.f90: New test.

From-SVN: r274405

5 years agore PR fortran/88072 (gfortran crashes with an internal compiler error)
Steven G. Kargl [Tue, 13 Aug 2019 20:38:01 +0000 (20:38 +0000)] 
re PR fortran/88072 (gfortran crashes with an internal compiler error)

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

PR fortran/88072
* misc.c (gfc_typename): Do not point to something that ought not to
be pointed at.

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

PR fortran/88072
* gfortran.dg/pr88072.f90: New test.
* gfortran.dg/unlimited_polymorphic_28.f90: Fix error message.

From-SVN: r274401

5 years agobackport: re PR fortran/90561 (ICE in gimplify_var_or_parm_decl, at gimplify.c:2747)
Thomas Koenig [Tue, 13 Aug 2019 20:01:43 +0000 (20:01 +0000)] 
backport: re PR fortran/90561 (ICE in gimplify_var_or_parm_decl, at gimplify.c:2747)

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

Backport from trunk
PR fortran/90561
* trans.h (gfc_evaluate_now_function_scope): New function.
* trans.c (gfc_evaluate_now_function_scope): New function.
* trans-expr.c (gfc_trans_assignment): Use it.

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

Backport from trunk
PR fortran/90561
* gfortran.dg/deferred_character_34.f90: New test.

From-SVN: r274398

5 years agore PR fortran/89647 (Host associated procedure unable to be used as binding target)
Steven G. Kargl [Tue, 13 Aug 2019 18:49:00 +0000 (18:49 +0000)] 
re PR fortran/89647 (Host associated procedure unable to be used as binding target)

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

PR fortran/89647
resolve.c (resolve_typebound_procedure): Allow host associated
procedure to be a binding target.  While here, wrap long line.

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

PR fortran/89647
* gfortran.dg/pr89647.f90: New test.

From-SVN: r274395