]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
6 years agodarwin, testsuite, backport fixes for PR 81058
Iain Sandoe [Tue, 14 May 2019 17:41:36 +0000 (17:41 +0000)] 
darwin, testsuite, backport fixes for PR 81058

2019-05-14  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-11  Iain Sandoe  <iain@sandoe.co.uk>

PR testsuite/81058
* gcc.target/i386/avx512bw-vpmovswb-1.c: Use regular data section
for variables on Darwin, rather than common.
* gcc.target/i386/avx512bw-vpmovuswb-1.c: Likewise.
* gcc.target/i386/avx512bw-vpmovwb-1.c: Likewise.

From-SVN: r271186

6 years agodarwin, testsuite, fix abi-avx512f.exp fails.
Iain Sandoe [Tue, 14 May 2019 16:14:16 +0000 (16:14 +0000)] 
darwin, testsuite, fix abi-avx512f.exp fails.

These need an asm shim to build.

2019-05-14  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-10  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.target/x86_64/abi/avx512f/abi-avx512f.exp: Darwin is
now tested.
* gcc.target/x86_64/abi/avx512f/asm-support-darwin.s: New.

From-SVN: r271178

6 years agodarwin, testsuite, backport fixes for section-attr-*
Iain Sandoe [Tue, 14 May 2019 16:05:35 +0000 (16:05 +0000)] 
darwin, testsuite, backport fixes for section-attr-*

2019-05-14  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-02  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.dg/tree-prof/section-attr-1.c: Update scan-asm regex
for cold section label.
* gcc.dg/tree-prof/section-attr-2.c: Likewise.
* gcc.dg/tree-prof/section-attr-3.c: Likewise.

From-SVN: r271177

6 years agodarwin, backport fix for g++.dg/ext/instantiate2.C
Iain Sandoe [Tue, 14 May 2019 16:01:21 +0000 (16:01 +0000)] 
darwin, backport fix for g++.dg/ext/instantiate2.C

2019-05-14  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-02  Iain Sandoe  <iain@sandoe.co.uk>

* g++.dg/ext/instantiate2.C: Remove special-casing for Darwin.

From-SVN: r271176

6 years agoBackport r271118
Martin Liska [Tue, 14 May 2019 08:47:40 +0000 (10:47 +0200)] 
Backport r271118

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

Backport from mainline
2019-05-13  Martin Liska  <mliska@suse.cz>

PR tree-optimization/90416
* tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
string instead of passing the second part as va_arg argument.

From-SVN: r271152

6 years agoBackport r271117
Martin Liska [Tue, 14 May 2019 08:46:35 +0000 (10:46 +0200)] 
Backport r271117

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

Backport from mainline
2019-05-13  Martin Liska  <mliska@suse.cz>

PR gcov-profile/90380
* gcov.c (handle_cycle): Do not support zero cycle count,
it should not be possible.
(path_contains_zero_cycle_arc): New function.
(circuit): Ignore zero cycle arc counts.

From-SVN: r271151

6 years agoBackport r271116
Martin Liska [Tue, 14 May 2019 08:46:27 +0000 (10:46 +0200)] 
Backport r271116

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

Backport from mainline
2019-05-13  Martin Liska  <mliska@suse.cz>

PR gcov-profile/90380
* gcov.c (enum loop_type): Remove the enum and
the operator.
(handle_cycle): Assert that we should not reach
a negative count.
(circuit): Use loop_found instead of a tri-state loop_type.
(get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
happen.

From-SVN: r271150

6 years agoBackport fix for PR90357.
Chenghua Xu [Tue, 14 May 2019 03:25:38 +0000 (03:25 +0000)] 
Backport fix for PR90357.

2019-05-14  Chenghua Xu  <paul.hua.gm@gmail.com>

PR target/90357
* config/mips/mips.c (mips_split_move): Skip forward SRC into
next insn when the SRC reg is dead.

From-SVN: r271147

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

From-SVN: r271143

6 years ago* sv.po: Update.
Joseph Myers [Mon, 13 May 2019 22:26:47 +0000 (23:26 +0100)] 
* sv.po: Update.

From-SVN: r271140

6 years agobackport fix for PR90379
Iain Sandoe [Mon, 13 May 2019 20:37:08 +0000 (20:37 +0000)] 
backport fix for PR90379

2019-05-13  Iain Sandoe  <iain@sandoe.co.uk>

Backport from mainline.
2019-05-11  Iain Sandoe  <iain@sandoe.co.uk>

PR target/90379
PR bootstrap/89864
* inclhack.def (darwin_ucred__Atomic): Do not supply test_text
for wrap fixes.
* fixincl.x: Regenerated.

From-SVN: r271136

6 years agoDocument P0811R3 status in C++20 table
Edward Smith-Rowland [Mon, 13 May 2019 10:58:53 +0000 (10:58 +0000)] 
Document P0811R3 status in C++20 table

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

* doc/xml/manual/status_cxx2020.xml: Document P0811R3 status.

From-SVN: r271123

6 years agoDaily bump.
GCC Administrator [Mon, 13 May 2019 00:16:19 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r271114

6 years agofortran: C++ support for generating C prototypes
Janne Blomqvist [Sun, 12 May 2019 18:48:44 +0000 (21:48 +0300)] 
fortran: C++ support for generating C prototypes

When generating C prototypes for Fortran procedures with the
-fc-prototypes and -fc-prototypes-external options, print a snippet
defining macros for complex types, and add C++ support by suppressing
mangling.

fortran/ChangeLog:

2019-05-12  Janne Blomqvist  <jb@gcc.gnu.org>

* dump-parse-tree.c (get_c_type_name): Use macros for complex type
names.
* parse.c (gfc_parse_file): Define complex macros, add CPP support
when printing C prototypes.

From-SVN: r271109

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

From-SVN: r271104

6 years agobackport: freebsd64.h: Add bits for 32-bit multilib support.
Andreas Tobler [Sat, 11 May 2019 20:43:00 +0000 (22:43 +0200)] 
backport: freebsd64.h: Add bits for 32-bit multilib support.

2019-05-11  Andreas Tobler <andreast@gcc.gnu.org>

Backport from mainline.
2019-04-25  Andreas Tobler  <andreast@gcc.gnu.org>

* config/i386/freebsd64.h: Add bits for 32-bit multilib support.
* config/i386/t-freebsd64: New file.
* config.gcc: Add the t-freebsd64 for multilib support.

From-SVN: r271099

6 years agoPR libstdc++/81266 fix std::thread::native_handle_type test
Jonathan Wakely [Sat, 11 May 2019 11:35:59 +0000 (12:35 +0100)] 
PR libstdc++/81266 fix std::thread::native_handle_type test

The test uses remove_pointer because in most cases native_handle_type is
a pointer to the actual type that the C++ class contains. However, for
std::thread, native_handle_type is the same type as the type contained
in std::thread, and so remove_pointer is not needed. On targets where
pthread_t is a pointer type remove_pointer<native_handle_type> is not a
no-op, instead it transforms pthread_t and causes the test to fail.

The fix is to not apply remove_pointer when testing std::thread.

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

PR libstdc++/81266
* testsuite/util/thread/all.h: Do not use remove_pointer for
std::thread::native_handle_type.

From-SVN: r271094

6 years agore PR fortran/90093 (Extended C interop: optional argument incorrectly identified...
Paul Thomas [Sat, 11 May 2019 07:49:52 +0000 (07:49 +0000)] 
re PR fortran/90093 (Extended C interop: optional argument incorrectly identified as PRESENT)

2019-05-11  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/90093
* gfortran.dg/ISO_Fortran_binding_12.f90: New test.
* gfortran.dg/ISO_Fortran_binding_12.c: Supplementary code.

PR fortran/90352
* gfortran.dg/iso_c_binding_char_1.f90: New test.

PR fortran/90355
* gfortran.dg/ISO_Fortran_binding_4.f90: Add 'substr' to test
the direct passing of substrings as descriptors to bind(C).
* gfortran.dg/assign_10.f90: Increase the tree_dump count of
'atmp' to account for the setting of the 'span' field.
* gfortran.dg/transpose_optimization_2.f90: Ditto.

From-SVN: r271090

6 years agore PR fortran/90093 (Extended C interop: optional argument incorrectly identified...
Paul Thomas [Sat, 11 May 2019 07:47:32 +0000 (07:47 +0000)] 
re PR fortran/90093 (Extended C interop: optional argument incorrectly identified as PRESENT)

2019-05-11  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/90093
* trans-decl.c (convert_CFI_desc): Test that the dummy is
present before doing any of the conversions.

PR fortran/90352
* decl.c (gfc_verify_c_interop_param): Restore the error for
charlen > 1 actual arguments passed to bind(C) procs.
Clean up trailing white space.

PR fortran/90355
* trans-array.c (gfc_trans_create_temp_array): Set the 'span'
field to the element length for all types.
(gfc_conv_expr_descriptor): The force_no_tmp flag is used to
prevent temporary creation, especially for substrings.
* trans-decl.c (gfc_trans_deferred_vars): Rather than assert
that the backend decl for the string length is non-null, use it
as a condition before calling gfc_trans_vla_type_sizes.
* trans-expr.c (gfc_conv_gfc_desc_to_cfi_desc): 'force_no_tmp'
is set before calling gfc_conv_expr_descriptor.
* trans.c (get_array_span): Move the code for extracting 'span'
from gfc_build_array_ref to this function. This is specific to
descriptors that are component and indirect references.
* trans.h : Add the force_no_tmp flag bitfield to gfc_se.

2019-05-11  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/90093
* gfortran.dg/ISO_Fortran_binding_12.f90: New test.
* gfortran.dg/ISO_Fortran_binding_12.c: Supplementary code.

PR fortran/90352
* gfortran.dg/iso_c_binding_char_1.f90: New test.

PR fortran/90355
* gfortran.dg/ISO_Fortran_binding_4.f90: Add 'substr' to test
the direct passing of substrings as descriptors to bind(C).
* gfortran.dg/assign_10.f90: Increase the tree_dump count of
'atmp' to account for the setting of the 'span' field.
* gfortran.dg/transpose_optimization_2.f90: Ditto.

From-SVN: r271089

6 years agoDaily bump.
GCC Administrator [Sat, 11 May 2019 00:16:14 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r271086

6 years agoPR libstdc++/90397 fix std::variant friend declaration
Jonathan Wakely [Fri, 10 May 2019 22:23:10 +0000 (23:23 +0100)] 
PR libstdc++/90397 fix std::variant friend declaration

Clang diagnoses insert inconsistent noexcept-specifier on the friend
declaration of __get. Add .

PR libstdc++/90397
* include/std/variant (variant): Add noexcept to friend declaration.

From-SVN: r271083

6 years agoTweak C++2a uses-allocator construction utilities
Jonathan Wakely [Fri, 10 May 2019 22:23:06 +0000 (23:23 +0100)] 
Tweak C++2a uses-allocator construction utilities

The 20_util/scoped_allocator/69293_neg.cc test was failing in C++2a mode
because the expected static_assert text wasn't matched. The code is
still ill-formed in C++2a, but uses the new __uses_alloc_args function
and so fails a different static_assert. This patch adds the same string
to the new static_assert, so the test passes.

Now that G++ allows concepts to be declared without 'bool' we can use
the correct C++2a syntax for the _Std_pair concept used to constrain the
uses-allocator construction utilities.

Also add a new test to verify that pmr::polymorphic_allocator correctly
performs recursive uses-allocator construction for nested pairs in
C++2a.

Backport from mainline
2019-04-26  Jonathan Wakely  <jwakely@redhat.com>

* include/std/memory (__uses_alloc_args): Add string-literal to
static_assert, to match the one in __uses_alloc.
[__cpp_concepts] (_Std_pair): Use C++2a syntax for concept.
* testsuite/20_util/polymorphic_allocator/construct_c++2a.cc: Check
for recursive uses-allocator construction of nested pairs.
* testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc:: Add
comment.

From-SVN: r271082

6 years agoPR libstdc++/90239 use uses_allocator_construction_args in <scoped_allocator>
Jonathan Wakely [Fri, 10 May 2019 22:23:01 +0000 (23:23 +0100)] 
PR libstdc++/90239 use uses_allocator_construction_args in <scoped_allocator>

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

PR libstdc++/90239
* doc/xml/manual/status_cxx2020.xml: Amend P0591R4 status.
* include/std/scoped_allocator [__cplusplus > 201703L]
(scoped_allocator_adaptor::construct): Define in terms of
uses_allocator_construction_args, as per P0591R4.
* testsuite/20_util/scoped_allocator/construct_pair_c++2a.cc: New test.
* testsuite/util/testsuite_allocator.h: Remove name of unused
parameter.
* doc/html/*: Regenerate.

From-SVN: r271081

6 years agoPR c++/78010 - bogus -Wsuggest-override warning on final function.
Marek Polacek [Fri, 10 May 2019 14:57:22 +0000 (14:57 +0000)] 
PR c++/78010 - bogus -Wsuggest-override warning on final function.

* class.c (check_for_override): Don't warn for final functions.

* g++.dg/warn/Wsuggest-override-2.C: New test.

From-SVN: r271066

6 years agobackport: re PR middle-end/89765 (Multiple problems with vec-insert implementation...
Kelvin Nilsen [Fri, 10 May 2019 14:00:17 +0000 (14:00 +0000)] 
backport: re PR middle-end/89765 (Multiple problems with vec-insert implementation on PowerPC)

gcc/ChangeLog:

2019-05-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>

Backport from mainline.
2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>

PR target/89765
* config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
to compute vector element selector for both constant and variable
operands.

gcc/testsuite/ChangeLog:

2019-05-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>

Backport from mainline.
2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>

PR target/89765
* gcc.target/powerpc/pr89765-mc.c: New test.
* gcc.target/powerpc/vsx-builtin-10c.c: New test.
* gcc.target/powerpc/vsx-builtin-10d.c: New test.
* gcc.target/powerpc/vsx-builtin-11c.c: New test.
* gcc.target/powerpc/vsx-builtin-11d.c: New test.
* gcc.target/powerpc/vsx-builtin-12c.c: New test.
* gcc.target/powerpc/vsx-builtin-12d.c: New test.
* gcc.target/powerpc/vsx-builtin-13c.c: New test.
* gcc.target/powerpc/vsx-builtin-13d.c: New test.
* gcc.target/powerpc/vsx-builtin-14c.c: New test.
* gcc.target/powerpc/vsx-builtin-14d.c: New test.
* gcc.target/powerpc/vsx-builtin-15c.c: New test.
* gcc.target/powerpc/vsx-builtin-15d.c: New test.
* gcc.target/powerpc/vsx-builtin-16c.c: New test.
* gcc.target/powerpc/vsx-builtin-16d.c: New test.
* gcc.target/powerpc/vsx-builtin-17c.c: New test.
* gcc.target/powerpc/vsx-builtin-17d.c: New test.
* gcc.target/powerpc/vsx-builtin-18c.c: New test.
* gcc.target/powerpc/vsx-builtin-18d.c: New test.
* gcc.target/powerpc/vsx-builtin-19c.c: New test.
* gcc.target/powerpc/vsx-builtin-19d.c: New test.
* gcc.target/powerpc/vsx-builtin-20c.c: New test.
* gcc.target/powerpc/vsx-builtin-20d.c: New test.
* gcc.target/powerpc/vsx-builtin-9c.c: New test.
* gcc.target/powerpc/vsx-builtin-9d.c: New test.

From-SVN: r271064

6 years agotree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
Richard Biener [Fri, 10 May 2019 12:01:47 +0000 (12:01 +0000)] 
tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.

2019-05-10  Richard Biener  <rguenther@suse.de>

* tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
(do_rpo_vn): Initialize next_value_id.

From-SVN: r271062

6 years agoDaily bump.
GCC Administrator [Fri, 10 May 2019 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r271050

6 years ago* de.po, fr.po: Update.
Joseph Myers [Thu, 9 May 2019 21:41:45 +0000 (22:41 +0100)] 
* de.po, fr.po: Update.

From-SVN: r271046

6 years agobackport: re PR fortran/90351 (-fc-prototypes does not dump prototypes for external...
Thomas Koenig [Thu, 9 May 2019 17:40:30 +0000 (17:40 +0000)] 
backport: re PR fortran/90351 (-fc-prototypes does not dump prototypes for external procedures)

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

    Backport from trunk
    PR fortran/90351
    PR fortran/90329
    * gfortran.dg/dump-parse-tree.c: Include version.h.
    (gfc_dump_external_c_prototypes): New function.
    (get_c_type_name): Select "char" as a name for a simple char.
    Adjust to handling external functions. Also handle complex.
    (write_decl): Add argument bind_c. Adjust for dumping of external
    procedures.
    (write_proc): Likewise.
    (write_interop_decl): Add bind_c argument to call of write_proc.
    * gfortran.h: Add prototype for gfc_dump_external_c_prototypes.
    * lang.opt: Add -fc-prototypes-external flag.
    * parse.c (gfc_parse_file): Move dumping of BIND(C) prototypes.
    Call gfc_dump_external_c_prototypes if option is set.
    * invoke.texi: Document -fc-prototypes-external.

From-SVN: r271038

6 years agoClean up MPX-related stuff: CIF_CHKP
Thomas Schwinge [Thu, 9 May 2019 09:52:53 +0000 (11:52 +0200)] 
Clean up MPX-related stuff: CIF_CHKP

..., which was forgotten in recent r268844.

gcc/
* cif-code.def (CHKP): Remove.

trunk r271029

From-SVN: r271030

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

From-SVN: r271025

6 years agoAddress compiler diagnostics in libgomp.oacc-c-c++-common/pr87835.c
Thomas Schwinge [Wed, 8 May 2019 10:03:04 +0000 (12:03 +0200)] 
Address compiler diagnostics in libgomp.oacc-c-c++-common/pr87835.c

    source-gcc/libgomp/testsuite/libgomp.oacc-c-c++-common/pr87835.c: In function 'main':
    source-gcc/libgomp/testsuite/libgomp.oacc-c-c++-common/pr87835.c:45: warning: ignoring #pragma loop gang [-Wunknown-pragmas]
       45 |     #pragma loop gang
          |
    source-gcc/libgomp/testsuite/libgomp.oacc-c-c++-common/pr87835.c:19:7: warning: unused variable 'b' [-Wunused-variable]
       19 |   int b[n];
          |       ^

libgomp/
PR target/87835
* testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.

trunk r271004

From-SVN: r271005

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

From-SVN: r270996

6 years agoUpdate .po files.
Joseph Myers [Wed, 8 May 2019 00:05:32 +0000 (01:05 +0100)] 
Update .po files.

* be.po, da.po, de.po, el.po, es.po, fi.po, fr.po, hr.po, id.po,
ja.po, nl.po, ru.po, sr.po, sv.po, tr.po, uk.po, vi.po, zh_CN.po,
zh_TW.po: Update.

From-SVN: r270992

6 years agobackport: re PR target/89424 (__builtin_vec_ext_v1ti (v, i) results in ICE with varia...
Kelvin Nilsen [Tue, 7 May 2019 16:22:21 +0000 (16:22 +0000)] 
backport: re PR target/89424 (__builtin_vec_ext_v1ti (v, i) results in ICE with variable i (RS6000))

gcc/ChangeLog:

2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>

Backport from mainline.
2019-05-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>

PR target/89424
* config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
handling of V1TImode.

gcc/testsuite/ChangeLog:

2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>

Backport from mainline.
2019-05-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>

PR target/89424
* gcc.target/powerpc/pr89424-0.c: New test.
* gcc.target/powerpc/vsx-builtin-13a.c: Define macro PR89424 to
enable testing of newly patched capability.
* gcc.target/powerpc/vsx-builtin-13b.c: Likewise.
* gcc.target/powerpc/vsx-builtin-20a.c: Likewise.
* gcc.target/powerpc/vsx-builtin-20b.c: Likewise.

From-SVN: r270969

6 years agoFix make install-gcc-specs with empty GCC_SPECS_FILES
Rainer Orth [Tue, 7 May 2019 15:21:35 +0000 (15:21 +0000)] 
Fix make install-gcc-specs with empty GCC_SPECS_FILES

* gcc-interface/Makefile.in (install-gcc-specs): Use foreach.
Honor DESTDIR.

From-SVN: r270948

6 years agoDaily bump.
GCC Administrator [Tue, 7 May 2019 00:16:36 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r270932

6 years agoPR c++/90265 - ICE with generic lambda.
Marek Polacek [Mon, 6 May 2019 17:08:08 +0000 (17:08 +0000)] 
PR c++/90265 - ICE with generic lambda.

* pt.c (tsubst_copy_and_build): Use a dedicated variable for the last
element in the vector.

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

From-SVN: r270919

6 years agore PR c++/90173 (ICE: Segmentation fault (in strip_declarator_types))
Paolo Carlini [Mon, 6 May 2019 15:23:37 +0000 (15:23 +0000)] 
re PR c++/90173 (ICE: Segmentation fault (in strip_declarator_types))

/cp
2019-05-06  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/90173
* decl.c (grokdeclarator): Set type to error_mark_node
upon error about template placeholder type non followed
by a simple declarator-id.

/testsuite
2019-05-06  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/90173
* g++.dg/cpp1z/class-deduction66.C: New.

From-SVN: r270915

6 years agoBackport r270899
Martin Liska [Mon, 6 May 2019 14:01:45 +0000 (16:01 +0200)] 
Backport r270899

2019-05-06  Martin Liska  <mliska@suse.cz>

Backport from mainline
2019-05-06  Martin Liska  <mliska@suse.cz>

PR sanitizer/90312
* config/i386/i386-options.c (ix86_option_override_internal): Error only
when -mabi is selected to a non-default version.
2019-05-06  Martin Liska  <mliska@suse.cz>

Backport from mainline
2019-05-06  Martin Liska  <mliska@suse.cz>

PR sanitizer/90312
* gcc.dg/asan/pr87930.c: Run the test only on *linux or *gnu
systems.
* gcc.dg/tsan/pr88017.c: Likewise.

From-SVN: r270912

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

From-SVN: r270891

6 years agoDelete file created on the wrong branch
Michael Meissner [Sun, 5 May 2019 23:31:14 +0000 (23:31 +0000)] 
Delete file created on the wrong branch

From-SVN: r270886

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

From-SVN: r270880

6 years agoDelete unintentional file from the wrong branch
Michael Meissner [Sat, 4 May 2019 15:40:37 +0000 (15:40 +0000)] 
Delete unintentional file from the wrong branch

From-SVN: r270876

6 years agoDelete unintentional file from the wrong branch
Michael Meissner [Sat, 4 May 2019 15:39:52 +0000 (15:39 +0000)] 
Delete unintentional file from the wrong branch

From-SVN: r270875

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

From-SVN: r270866

6 years agosetup branch
Michael Meissner [Fri, 3 May 2019 22:33:10 +0000 (22:33 +0000)] 
setup branch

From-SVN: r270863

6 years agobackport: os/user: disable TestGroupIds for AIX
Ian Lance Taylor [Fri, 3 May 2019 17:15:42 +0000 (17:15 +0000)] 
backport: os/user: disable TestGroupIds for AIX

Backport from trunk:

    os/user: disable TestGroupIds for AIX

    The corresponding Go Toolchain patch is CL 164039

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

From-SVN: r270856

6 years agore PR tree-optimization/90316 (large compile time increase in opt / alias stmt walkin...
Richard Biener [Fri, 3 May 2019 11:22:33 +0000 (11:22 +0000)] 
re PR tree-optimization/90316 (large compile time increase in opt / alias stmt walking for Go example)

2019-05-03  Richard Biener  <rguenther@suse.de>

PR tree-optimization/90316
* tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
before running VN.

From-SVN: r270849

6 years ago* BASE-VER: Set to 9.1.1.
Jakub Jelinek [Fri, 3 May 2019 08:47:02 +0000 (10:47 +0200)] 
* BASE-VER: Set to 9.1.1.

From-SVN: r270842

6 years agoUpdate ChangeLog and version files for release releases/gcc-9.1.0
GCC Administrator [Fri, 3 May 2019 07:59:54 +0000 (07:59 +0000)] 
Update ChangeLog and version files for release

From-SVN: r270839

6 years ago* gennews (files): Add files for GCC 9.
Jakub Jelinek [Fri, 3 May 2019 07:41:05 +0000 (09:41 +0200)] 
* gennews (files): Add files for GCC 9.

From-SVN: r270838

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

From-SVN: r270830

6 years ago* gcc.pot: Regenerate.
Joseph Myers [Thu, 2 May 2019 20:30:48 +0000 (21:30 +0100)] 
* gcc.pot: Regenerate.

From-SVN: r270823

6 years agolibphobos: Correct my identity in the last ChangeLog entry
Maciej W. Rozycki [Thu, 2 May 2019 17:16:04 +0000 (17:16 +0000)] 
libphobos: Correct my identity in the last ChangeLog entry

From-SVN: r270818

6 years agolibphobos: RISC-V: Fix soft-float build errors with IEEE exception flags
Maciej W. Rozycki [Thu, 2 May 2019 16:39:16 +0000 (16:39 +0000)] 
libphobos: RISC-V: Fix soft-float build errors with IEEE exception flags

Fix assembly errors:

.../libphobos/src/std/math.d: Assembler messages:.../libphobos/src/std/math.d:4773: Error: unrecognized opcode `frflags a0'.../libphobos/src/std/math.d:4856: Error: unrecognized opcode `fsflags a5'.../libphobos/src/std/math.d:4856: Error: unrecognized opcode `fsflags a5'.../libphobos/src/std/math.d:4773: Error: unrecognized opcode `frflags a0'.../libphobos/src/std/math.d:5549: Error: unrecognized opcode `fscsr a5'.../libphobos/src/std/math.d:5456: Error: unrecognized opcode `frcsr a5'.../libphobos/src/std/math.d:5456: Error: unrecognized opcode `frcsr a5'.../libphobos/src/std/math.d:5549: Error: unrecognized opcode `fscsr a5'.../libphobos/src/std/math.d:5456: Error: unrecognized opcode `frcsr a5'.../libphobos/src/std/math.d:5549: Error: unrecognized opcode `fscsr a0'.../libphobos/src/std/math.d:5456: Error: unrecognized opcode `frcsr a0'.../libphobos/src/std/math.d:5456: Error: unrecognized opcode `frcsr a0'.../libphobos/src/std/math.d:5549: Error: unrecognized opcode `fscsr s2'make[8]: *** [Makefile:1119: std/math.lo] Error 1

triggered with the RISC-V lp64 multilib in a GCC build configured with
`--enable-multilib --enable-languages=all --target=riscv64-linux-gnu'.
This is due to unconditional explicit use of F extension instructions
within inline assembly, to access IEEE exception flags.  The use of
these instructions is not allowed when building for a soft-float ABI.

Correct the problem by wrapping said inline assembly into a conditional
such that if `D_SoftFloat' is true, then reads from IEEE exception flags
return 0 and writes are ignored instead, complementing r270522
("libphobos: Add D support for RISC-V Linux"), which is an updated
version of <https://gcc.gnu.org/ml/gcc-patches/2019-04/msg00325.html>,
where the problematic code has originated from.

libphobos/ChangeLog:

2019-05-02  Maciej Rozycki  <macro@wdc.com>

* std/math.d (IeeeFlags.getIeeeFlags): Handle RISC-V soft-float ABI.
(IeeeFlags.resetIeeeFlags): Likewise.
(FloatingPointControl.getControlState): Likewise.
(FloatingPointControl.setControlState): Likewise.

From-SVN: r270816

6 years agoRestrict gcc.target/i386/spellcheck-options-5.c to Linux targets
Rainer Orth [Thu, 2 May 2019 13:33:02 +0000 (13:33 +0000)] 
Restrict gcc.target/i386/spellcheck-options-5.c to Linux targets

* gcc.target/i386/spellcheck-options-5.c: Restrict to Linux and
GNU targets.

From-SVN: r270796

6 years agoMakefile.am (gfor_cdir): Remove $(MULTISUBDIR).
Jakub Jelinek [Thu, 2 May 2019 13:03:46 +0000 (15:03 +0200)] 
Makefile.am (gfor_cdir): Remove $(MULTISUBDIR).

* Makefile.am (gfor_cdir): Remove $(MULTISUBDIR).
* Makefile.in: Regenerated.

From-SVN: r270794

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

From-SVN: r270785

6 years agoUpdate Solaris baselines for GCC 9.1
Rainer Orth [Wed, 1 May 2019 16:16:57 +0000 (16:16 +0000)] 
Update Solaris baselines for GCC 9.1

* 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: r270774

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

From-SVN: r270762

6 years ago* de.po: Update.
Joseph Myers [Tue, 30 Apr 2019 19:57:58 +0000 (20:57 +0100)] 
* de.po: Update.

From-SVN: r270710

6 years ago[Patch AArch64] Add __ARM_FEATURE_ATOMICS
Ramana Radhakrishnan [Tue, 30 Apr 2019 12:02:30 +0000 (12:02 +0000)] 
[Patch AArch64] Add __ARM_FEATURE_ATOMICS

This keeps coming up repeatedly and the ACLE has finally added
__ARM_FEATURE_ATOMICS for the LSE feature in GCC. This is now part of
the latest ACLE release
(https://developer.arm.com/docs/101028/latest/5-feature-test-macros)

I know it's late for GCC-9 but this is a simple macro which need not
wait  for another year.

Ok for trunk and to backport to all release branches ?

Tested with a simple build and a smoke test.

Backport from mainline.
PR target/86538
* config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
__ARM_FEATURE_ATOMICS

From-SVN: r270689

6 years agognu.ver (GLIBCXX_3.4.26): Change _Lock_policyE2 exports to _Lock_policyE[012].
Jakub Jelinek [Tue, 30 Apr 2019 11:41:28 +0000 (13:41 +0200)] 
gnu.ver (GLIBCXX_3.4.26): Change _Lock_policyE2 exports to _Lock_policyE[012].

* config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Change _Lock_policyE2 exports
to _Lock_policyE[012].
* config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.

From-SVN: r270688

6 years ago* config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.
Jakub Jelinek [Tue, 30 Apr 2019 08:56:01 +0000 (10:56 +0200)] 
* config/abi/post/riscv64-linux-gnu/baseline_symbols.txt: Update.

From-SVN: r270679

6 years agoSubject: Backport r270675
Martin Liska [Tue, 30 Apr 2019 08:51:23 +0000 (10:51 +0200)] 
Subject: Backport r270675

2019-04-30  Martin Liska  <mliska@suse.cz>

Backport from mainline
2019-04-30  Martin Liska  <mliska@suse.cz>

PR translation/90274
* opts.c (print_filtered_help): Wrap string in _(...).

From-SVN: r270677

6 years agoSubject: Backport r270622
Martin Liska [Tue, 30 Apr 2019 08:35:28 +0000 (10:35 +0200)] 
Subject: Backport r270622

2019-04-30  Martin Liska  <mliska@suse.cz>

Backport from mainline
2019-04-27  Martin Liska  <mliska@suse.cz>

PR middle-end/90258
* opt-suggestions.c (option_proposer::build_option_suggestions):
When get_valid_option_values returns empty values, add the
misspelling candidate.
2019-04-30  Martin Liska  <mliska@suse.cz>

Backport from mainline
2019-04-27  Martin Liska  <mliska@suse.cz>

PR middle-end/90258
* gcc.dg/completion-5.c: New test.
* gcc.target/i386/spellcheck-options-5.c: New test.

From-SVN: r270676

6 years agore PR tree-optimization/90273 (GCC runs out of memory building Firefox)
Richard Biener [Tue, 30 Apr 2019 07:40:06 +0000 (07:40 +0000)] 
re PR tree-optimization/90273 (GCC runs out of memory building Firefox)

PR tree-optimization/90273
* tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
useless debug stmts.

From-SVN: r270674

6 years agoDaily bump.
GCC Administrator [Tue, 30 Apr 2019 00:16:11 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r270671

6 years ago* sv.po: Update.
Joseph Myers [Mon, 29 Apr 2019 22:45:52 +0000 (23:45 +0100)] 
* sv.po: Update.

From-SVN: r270668

6 years ago* gcc.pot: Regenerate.
Joseph Myers [Mon, 29 Apr 2019 22:28:09 +0000 (23:28 +0100)] 
* gcc.pot: Regenerate.

From-SVN: r270666

6 years agolibphobos: Fix multilib builds for s390x-linux-gnu
Iain Buclaw [Mon, 29 Apr 2019 05:46:14 +0000 (05:46 +0000)] 
libphobos: Fix multilib builds for s390x-linux-gnu

Merges upstream druntime aab44549, phobos 3dc363783.

Reviewed-on: https://github.com/dlang/druntime/pull/2590
     https://github.com/dlang/phobos/pull/6983

libphobos/ChangeLog:

2019-04-28  Iain Buclaw  <ibuclaw@gdcproject.org>

* libdruntime/gcc/sections/elf_shared.d (IBMZ_Any): Define when
version S390 or SystemZ.  Use condition instead of SystemZ.
(getTLSRange): Return null on GNU_EMUTLS targets.

From-SVN: r270640

6 years agoDaily bump.
GCC Administrator [Mon, 29 Apr 2019 00:16:13 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r270636

6 years ago[netbsd] d: Fix build failures on sparc*-netbsd
Iain Buclaw [Sun, 28 Apr 2019 08:02:10 +0000 (08:02 +0000)] 
[netbsd] d: Fix build failures on sparc*-netbsd

gcc/ChangeLog:

2019-04-27  Iain Buclaw  <ibuclaw@gdcproject.org>

* config/netbsd-d.c: Include memmodel.h.  Remove unused tree.h,
varasm.h, and netbsd-protos.h.

From-SVN: r270631

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

From-SVN: r270629

6 years agoDaily bump.
GCC Administrator [Sat, 27 Apr 2019 00:16:28 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r270619

6 years agox32: Update baseline_symbols.txt
H.J. Lu [Fri, 26 Apr 2019 17:04:18 +0000 (17:04 +0000)] 
x32: Update baseline_symbols.txt

Backport from mainline
* config/abi/post/x86_64-linux-gnu/x32/baseline_symbols.txt: Updated.

From-SVN: r270614

6 years agoFix tests that fail with _GLIBCXX_USE_CXX11_ABI=0
Jonathan Wakely [Fri, 26 Apr 2019 16:44:17 +0000 (17:44 +0100)] 
Fix tests that fail with _GLIBCXX_USE_CXX11_ABI=0

The pmr::string typedef isn't available for the old COW string, so some
tests that use it were failing.

Backport from mainline
2019-04-26  Jonathan Wakely  <jwakely@redhat.com>

* testsuite/20_util/variant/run.cc: Use a new Hashable type to test
hashing, because pmr::string depends on _GLIBCXX_USE_CXX11_ABI==1.
* testsuite/21_strings/basic_string/hash/hash.cc
[!_GLIBCXX_USE_CXX11_ABI]: Don't test pmr strings.
* testsuite/21_strings/basic_string/hash/hash_char8_t.cc
[!_GLIBCXX_USE_CXX11_ABI]: Likewise.

From-SVN: r270612

6 years agoAdjust linker script to stop exporting unwanted symbol in old version
Jonathan Wakely [Fri, 26 Apr 2019 16:44:12 +0000 (17:44 +0100)] 
Adjust linker script to stop exporting unwanted symbol in old version

As discussed in the thread starting at
https://gcc.gnu.org/ml/libstdc++/2019-04/msg00140.html

* config/abi/pre/gnu.ver (GLIBCXX_3.4): Replace wildcard that matches
wstring::_M_replace_dispatch with more specific patterns.

From-SVN: r270611

6 years agorevert r270484
Segher Boessenkool [Fri, 26 Apr 2019 13:49:53 +0000 (15:49 +0200)] 
revert r270484

I'm leaving the testsuite piece alone.

From-SVN: r270601

6 years agobaseline_symbols.txt: Update.
Jakub Jelinek [Fri, 26 Apr 2019 12:09:40 +0000 (14:09 +0200)] 
baseline_symbols.txt: Update.

* config/abi/post/s390x-linux-gnu/32/baseline_symbols.txt: Update.
* config/abi/post/s390-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.

From-SVN: r270599

6 years agobaseline_symbols.txt: Update.
Jakub Jelinek [Fri, 26 Apr 2019 11:15:38 +0000 (13:15 +0200)] 
baseline_symbols.txt: Update.

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

From-SVN: r270596

6 years agoDaily bump.
GCC Administrator [Fri, 26 Apr 2019 00:16:12 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r270591

6 years agoPR libstdc++/90239 Fix status of P0591R4 in C++2a support table
Jonathan Wakely [Thu, 25 Apr 2019 21:49:54 +0000 (22:49 +0100)] 
PR libstdc++/90239 Fix status of P0591R4 in C++2a support table

PR libstdc++/90239
* doc/xml/manual/status_cxx2020.xml: Correct status of P0591R4.
* doc/html/*: Regenerate.

From-SVN: r270587

6 years agore PR tree-optimization/90240 (ICE in try_improve_iv_set, at tree-ssa-loop-ivopts...
Jakub Jelinek [Thu, 25 Apr 2019 18:08:14 +0000 (20:08 +0200)] 
re PR tree-optimization/90240 (ICE in try_improve_iv_set, at tree-ssa-loop-ivopts.c:6694)

PR tree-optimization/90240
Revert:
2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>

PR tree-optimization/90078
* tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
checks for infinite_cost overflow.

* gcc/testsuite/g++.dg/tree-ssa/pr90078.C: New test.

From-SVN: r270583

6 years ago* DEV-PHASE: Set to prerelease.
Jakub Jelinek [Thu, 25 Apr 2019 18:04:17 +0000 (20:04 +0200)] 
* DEV-PHASE: Set to prerelease.

From-SVN: r270582

6 years agore PR middle-end/89765 (Multiple problems with vec-insert implementation on PowerPC)
Richard Biener [Thu, 25 Apr 2019 17:58:56 +0000 (17:58 +0000)] 
re PR middle-end/89765 (Multiple problems with vec-insert implementation on PowerPC)

PR middle-end/89765
* gimplify.c (gimplify_expr): Avoid turning a lvalue
VIEW_CONVERT_EXPR into one operating on an rvalue.

From-SVN: r270579

6 years agox86: Update message for target_clones and unsupported ISAs
H.J. Lu [Thu, 25 Apr 2019 17:00:28 +0000 (10:00 -0700)] 
x86: Update message for target_clones and unsupported ISAs

Before AVX512F, processors with the newer ISAs also support the older
ISAs, i.e., AVX2 processors also support AVX and SSE4, SSE4 processors
also support SSSE3, ...   After AVX512F, an AVX512XX processor may not
support AVX512YY.  It means AVX512XX features, except for AVX512F, can't
be used to decide priority in target_clones.

This patch updates error message for ISAs with P_ZERO priority.  It also
merges _feature_list into _isa_names_table and marks ISAs, which have
unknown priority, with P_ZERO so that we only need to update one place
to add a new ISA feature.

gcc/

2019-04-25  H.J. Lu  <hongjiu.lu@intel.com>

PR target/89929
* config/i386/i386.c (feature_priority): Moved to file scope.
(processor_features): Likewise.
(processor_model): Likewise.
(_arch_names_table): Likewise.
(arch_names_table): Likewise.
(_feature_list): Removed.
(feature_list): Likewise.
(_isa_names_table): Moved to file scope.  Add priority.
(isa_names_table): Likewise.
(get_builtin_code_for_version): Replace feature_list with
isa_names_table.  Update error message for P_ZERO priority.

gcc/testsuite/

2019-04-25  Martin Liska  <mliska@suse.cz>
    H.J. Lu  <hongjiu.lu@intel.com>

PR target/89929
* g++.target/i386/mv28.C: New test.
* gcc.target/i386/mvc14.c: Likewise.
* g++.target/i386/pr57362.C: Updated.

From-SVN: r270578

6 years agolibphobos: Fix segfault in runtime caused by unexpected GC of TLS data.
Iain Buclaw [Thu, 25 Apr 2019 15:31:35 +0000 (15:31 +0000)] 
libphobos: Fix segfault in runtime caused by unexpected GC of TLS data.

libphobos/ChangeLog:

2019-04-25  Iain Buclaw  <ibuclaw@gdcproject.org>

PR d/90250
* libdruntime/gcc/sections/elf_shared.d (initTLSRanges): Populate
_tlsRanges in every startup thread.
* testsuite/libphobos.thread/thread.exp: Load libphobos-dg.exp.
* testsuite/libphobos.thread/tlsgc_sections.d: New test.

From-SVN: r270576

6 years agotree-pass.h (make_pass_phi_only_cprop): Remove.
Richard Biener [Thu, 25 Apr 2019 14:55:42 +0000 (14:55 +0000)] 
tree-pass.h (make_pass_phi_only_cprop): Remove.

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

* tree-pass.h (make_pass_phi_only_cprop): Remove.
* timevar.def (TV_TREE_PHI_CPROP): Likewise.

From-SVN: r270575

6 years agore PR tree-optimization/90037 (-Wnull-dereference false positive after r269302)
Jeff Law [Thu, 25 Apr 2019 14:32:16 +0000 (08:32 -0600)] 
re PR tree-optimization/90037 (-Wnull-dereference false positive after r269302)

PR tree-optimization/90037
* Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
* passes.def: Replace all instance of phi-only cprop with the
lattice propagator.  Move propagation pass from after erroneous
path isolation to before erroneous path isolation.
* tree-ssa-phionlycprop.c: Remove.

* gcc.dg/tree-ssa/20030710-1.c: Update dump file to scan.
* gcc.dg/isolate-2.c: Likewise.
* gcc.dg/isolate-4.c: Likewise.
* gcc.dg/pr19431.c: Accept either ordering of PHI args.
* gcc.dg/pr90037.c: New test.

From-SVN: r270574

6 years agoFix typo in m4/druntime/cpu.m4
Rainer Orth [Thu, 25 Apr 2019 12:39:33 +0000 (12:39 +0000)] 
Fix typo in m4/druntime/cpu.m4

* m4/druntime/cpu.m4 (DRUNTIME_CPU_SOURCES): Quote brackets.
* configure: Regenerate.

From-SVN: r270573

6 years agore PR c++/44648 (missing -Wunused warning on a const variable in if statement)
Jakub Jelinek [Thu, 25 Apr 2019 12:18:07 +0000 (14:18 +0200)] 
re PR c++/44648 (missing -Wunused warning on a const variable in if statement)

PR c++/44648
* g++.dg/warn/Wunused-var-35.C: Remove xfail.

From-SVN: r270572

6 years agoD: Do not add target_libs if phobos is disabled
Johannes Pfau [Thu, 25 Apr 2019 11:22:27 +0000 (11:22 +0000)] 
D: Do not add target_libs if phobos is disabled

From-SVN: r270571

6 years agore PR tree-optimization/90213 (UBSAN: signed integer overflow: -5621332293356458048...
Richard Biener [Thu, 25 Apr 2019 11:17:49 +0000 (11:17 +0000)] 
re PR tree-optimization/90213 (UBSAN: signed integer overflow: -5621332293356458048 * 8 cannot be represented in type 'long int')

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

PR middle-end/90213
* gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
by size and BITS_PER_UNIT on poly-wide-ints.

From-SVN: r270570

6 years agore PR middle-end/90194 (ICE in expand_debug_expr, at cfgexpand.c:5244)
Richard Biener [Thu, 25 Apr 2019 11:15:35 +0000 (11:15 +0000)] 
re PR middle-end/90194 (ICE in expand_debug_expr, at cfgexpand.c:5244)

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

PR middle-end/90194
* match.pd: Add pattern to simplify view-conversion of an
empty constructor.

* g++.dg/torture/pr90194.C: New testcase.

From-SVN: r270569

6 years agoD: Implement GCC emutls in druntime
Johannes Pfau [Thu, 25 Apr 2019 11:11:39 +0000 (11:11 +0000)] 
D: Implement GCC emutls in druntime

* libdruntime/Makefile.am: Add emutls and gthread files.
* libdruntime/Makefile.in: Regenerate.
* libdruntime/gcc/emutls.d: New file. Implement GC-compatible emutls.
* libdruntime/gcc/gthread.d: New file.
* libdruntime/gcc/sections/elf_shared.d: Integrate emutls support.
* testsuite/libphobos.allocations/tls_gc_integration.d: New test for
TLS.

From-SVN: r270568

6 years agolibphobos: Add missing PWD_COMMAND to Makefile.
Iain Buclaw [Thu, 25 Apr 2019 06:26:57 +0000 (06:26 +0000)] 
libphobos: Add missing PWD_COMMAND to Makefile.

2019-04-25  Iain Buclaw  <ibuclaw@gdcproject.org>

* testsuite/Makefile.am: Set PWD_COMMAND.
* testsuite/Makefile.in: Regenerate.

From-SVN: r270566

6 years agocompiler: fix glitch when inlining method with empty param/receiver
Ian Lance Taylor [Thu, 25 Apr 2019 01:13:22 +0000 (01:13 +0000)] 
compiler: fix glitch when inlining method with empty param/receiver

    Fix a problem with Function_declaration::import_function relating to
    how no-name or "sink" parameters are handled. In Gogo::start_function
    (for the non-inline case) when parameter bindings are being added,
    parameters with empty/sink names are renamed to synthesized "r.%d" /
    "p.%d" names so as to avoid collisions. This same handling needs to be
    present when creating the bindings for an inline function that's being
    instantiated after being read from export data.

    Fixes golang/go#31637.

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

From-SVN: r270564

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

From-SVN: r270563