Re: [PATCH] doc: Document all D-specific configuration options.

2020-04-26 Thread Sandra Loosemore
On 4/21/20 1:26 AM, Iain Buclaw via Gcc-patches wrote: Hi, This patch adds documentation for --enable-libphobos-checking and --with-libphobos-druntime-only options. Does it read and explain clearly enough? Regards Iain. gcc/ChangeLog: * doc/install.texi (D-Specific Options):

Re: [PATCH] c++: Delegating constructor in constexpr init [PR94772]

2020-04-26 Thread Jason Merrill via Gcc-patches
On 4/26/20 6:48 PM, Patrick Palka wrote: In the testcase below, the call to the target constructor foo{} from foo's delegating constructor is encoded as the INIT_EXPR *(struct foo *) this = AGGR_INIT_EXPR <4, __ct_comp, D.2140, ...>; During initialization of the variable 'bar', we

Re: [PATCH v3] c++: Explicit constructor called in copy-initialization [PR90320]

2020-04-26 Thread Jason Merrill via Gcc-patches
On 4/26/20 2:00 PM, Marek Polacek wrote: On Fri, Apr 24, 2020 at 04:07:03PM -0400, Jason Merrill via Gcc-patches wrote: On 4/23/20 7:08 PM, Marek Polacek wrote: @@ -1252,6 +1252,8 @@ standard_conversion (tree to, tree from, tree expr, bool c_cast_p, if (flags & LOOKUP_PREFER_RVALUE)

[committed] d: Fix ICE in assign_temp, at function.c:984 (PR94777)

2020-04-26 Thread Iain Buclaw via Gcc-patches
Hi, This patch fixes an ICE in the D front-end when passing non-trivially copyable types to variadic functions. Named arguments were being passed around by invisible reference, just not variadic arguments. There is a need to de-duplicate the routines that handle declaration/parameter promotion

[committed] d: Merge upstream dmd f8a1a5153, druntime 2b5c0b27 (PR89418)

2020-04-26 Thread Iain Buclaw via Gcc-patches
Hi, This patch merges the D front-end impleentation with upstream dmd f8a1a5153, and the D runtime library with upstream druntime 2b5c0b27. Adds a new test directive COMPILABLE_MATH_TEST, and support has been added for it in gdc-convert-test so that they are skipped if phobos is not present on

[committed] libphobos: Add hppa-*-linux* as a supported target

2020-04-26 Thread Iain Buclaw via Gcc-patches
4 # of unsupported tests 120 /build/gcc/gdc version 10.0.1 20200426 (experimental) (GCC) --- Tested on an emulated hppa-linux-gnu target, committed to mainline. Regards Iain. --- libphobos/ChangeLog: 2020-04-27 Iain Buclaw * configure.tgt: Add hppa-*-linux

[committed] libphobos: Remove AC_CACHE_CHECK from network library tests.

2020-04-26 Thread Iain Buclaw via Gcc-patches
Hi, This patch simplifies the socket library checks, as LIBS is the target variable ultimately being assigned to. The original comments from the deleted libjava directories have been restored as well. Regression tested on x86_64-linux-gnu, committed to mainline. Regards Iain. ---

[PATCH] c++: Delegating constructor in constexpr init [PR94772]

2020-04-26 Thread Patrick Palka via Gcc-patches
In the testcase below, the call to the target constructor foo{} from foo's delegating constructor is encoded as the INIT_EXPR *(struct foo *) this = AGGR_INIT_EXPR <4, __ct_comp, D.2140, ...>; During initialization of the variable 'bar', we prematurely set TREE_READONLY on bar's CONSTRUCTOR in

Re: [committed] d: Merge upstream dmd 09db0c41e, druntime e68a5ae3.

2020-04-26 Thread Iain Buclaw via Gcc-patches
On 26/04/2020 18:41, Segher Boessenkool wrote: > On Sun, Apr 26, 2020 at 10:38:57AM +0200, Iain Buclaw wrote: >> On 25/04/2020 22:50, Segher Boessenkool wrote: >>> On Sat, Apr 25, 2020 at 02:20:19AM +0200, Iain Buclaw via Gcc-patches wrote: +// Parse DoubleDoubles as a pair of

Re: [PATCH v3] c++: Explicit constructor called in copy-initialization [PR90320]

2020-04-26 Thread Marek Polacek via Gcc-patches
On Fri, Apr 24, 2020 at 04:07:03PM -0400, Jason Merrill via Gcc-patches wrote: > On 4/23/20 7:08 PM, Marek Polacek wrote: > > > > @@ -1252,6 +1252,8 @@ standard_conversion (tree to, tree from, tree > > > > expr, bool c_cast_p, > > > > if (flags & LOOKUP_PREFER_RVALUE) > > > > /*

Re: [PATCH] match.pd: Move (X & C) eqne (Y & C) -> -> (X ^ Y) & C eqne 0 opt to match.pd [PR94718]

2020-04-26 Thread Richard Biener
On April 26, 2020 2:26:26 PM GMT+02:00, Jakub Jelinek wrote: >Hi! > >This patch moves this optimization from fold-const.c to match.pd where >it >is actually much shorter to do and lets optimize even code not seen >together >in a single expression in the source, as the first step towards fixing

Re: [committed] d: Merge upstream dmd 09db0c41e, druntime e68a5ae3.

2020-04-26 Thread Segher Boessenkool
On Sun, Apr 26, 2020 at 10:38:57AM +0200, Iain Buclaw wrote: > On 25/04/2020 22:50, Segher Boessenkool wrote: > > On Sat, Apr 25, 2020 at 02:20:19AM +0200, Iain Buclaw via Gcc-patches wrote: > >> +// Parse DoubleDoubles as a pair of doubles. > >> +// The layout of the type

Re: [PATCH] c-family: Fix ICE on __builtin_speculation_safe_value () [PR94755]

2020-04-26 Thread Jakub Jelinek via Gcc-patches
On Sun, Apr 26, 2020 at 09:58:16AM -0400, Nathan Sidwell wrote: > > --- gcc/c-family/c-common.c.jj 2020-03-21 18:29:58.989160193 +0100 > > +++ gcc/c-family/c-common.c 2020-04-25 10:13:14.158722031 +0200 > > @@ -7402,9 +7402,11 @@ resolve_overloaded_builtin (location_t l > > enum

Re: [PATCH] coroutines: Do not assume parms are named [PR94752].

2020-04-26 Thread Nathan Sidwell
On 4/25/20 4:45 AM, Iain Sandoe wrote: Hi As pointed out in the PR, parameters to user-defined coroutines might be unnamed. In that case, we must synthesize a name for the coroutine frame copy. tested on x86_64-darwin16 so far, OK if it passes regtest on x86_64-linux? thanks Iain

Re: [PATCH] c-family: Fix ICE on __builtin_speculation_safe_value () [PR94755]

2020-04-26 Thread Nathan Sidwell
On 4/26/20 8:23 AM, Jakub Jelinek wrote: Hi! When this builtin has no parameters, speculation_safe_value_resolve_call returns BUILT_IN_NONE, but resolve_overloaded_builtin uselessly dereferences the first param just to return error_mark_node immediately. The following patch rearranges it so

[PATCH] match.pd: Move (X & C) eqne (Y & C) -> -> (X ^ Y) & C eqne 0 opt to match.pd [PR94718]

2020-04-26 Thread Jakub Jelinek via Gcc-patches
Hi! This patch moves this optimization from fold-const.c to match.pd where it is actually much shorter to do and lets optimize even code not seen together in a single expression in the source, as the first step towards fixing the PR. Bootstrapped/regtested on x86_64-linux and i686-linux, ok for

[PATCH] c-family: Fix ICE on __builtin_speculation_safe_value () [PR94755]

2020-04-26 Thread Jakub Jelinek via Gcc-patches
Hi! When this builtin has no parameters, speculation_safe_value_resolve_call returns BUILT_IN_NONE, but resolve_overloaded_builtin uselessly dereferences the first param just to return error_mark_node immediately. The following patch rearranges it so that we only read the first parameter if

[PATCH] s390: Fix C++14 vs. C++17 ABI incompatibility on s390{,x} [PR94704]

2020-04-26 Thread Jakub Jelinek via Gcc-patches
Hi! The following patch fixes the C++14 vs. C++17 ABI passing incompatibility on s390x-linux. Bootstrapped/regtested on s390x-linux without and with the patch, the difference being: -FAIL: tmpdir-g++.dg-struct-layout-1/t032 cp_compat_x_alt.o-cp_compat_y_tst.o execute FAIL:

New Swedish PO file for 'gcc' (version 10.1-b20200322)

2020-04-26 Thread Translation Project Robot
Hello, gentle maintainer. This is a message from the Translation Project robot. A revised PO file for textual domain 'gcc' has been submitted by the Swedish team of translators. The file is available at: https://translationproject.org/latest/gcc/sv.po (This file,

MANPOWER (Employee) Solutions for GCC GNU ORG

2020-04-26 Thread Farrukh | S.A.Z Universal Links via Gcc-patches
Attn: HR Dept. (GCC GNU ORG) Dear Sir/Ma'am, We (S.A.Z Universal Links) are a dedicated ‘Recruitment and Staffing’ Company in the sense that we can staff for a range of different industries. We work in a strategically processed manner to help industries attain potential candidates. We

[committed] libphobos: Add power*-*-linux* as a supported target

2020-04-26 Thread Iain Buclaw via Gcc-patches
Hi, This patch adds power*-*-linux* as a supported target for libphobos. As there is no support for IBM real (long double) types in the std.math module, full phobos support has been switched off. This is not needed currently anyway in order to be able to bootstrap a self-hosted front-end

[committed] d: Recognize pragma(inline) in the code generator.

2020-04-26 Thread Iain Buclaw via Gcc-patches
Hi, This patch adds recognition of pragma(inline) in the code generator. Pragma inline affects whether functions are inlined or not. If at the declaration level, it affects the functions declared in the block it controls. If inside a function, it affects the function it is enclosed by.

Re: [committed] d: Merge upstream dmd 09db0c41e, druntime e68a5ae3.

2020-04-26 Thread Iain Buclaw via Gcc-patches
On 25/04/2020 22:50, Segher Boessenkool wrote: > Hi! > > On Sat, Apr 25, 2020 at 02:20:19AM +0200, Iain Buclaw via Gcc-patches wrote: >> +// Parse DoubleDoubles as a pair of doubles. >> +// The layout of the type is: >> +// >> +// [1| 7 |

Re: [PATCH] c++, middle-end, rs6000: Fix C++17 ABI incompatibilities during class layout [PR94707]

2020-04-26 Thread Iain Sandoe
David Edelsohn wrote: On Sat, Apr 25, 2020 at 6:03 AM Jakub Jelinek wrote: Hi! As reported by Iain and David, powerpc-darwin and powerpc-aix* have C++14 vs. C++17 ABI incompatibilities which are not fixed by mere adding of cxx17_empty_base_field_p calls. Unlike the issues that were seen on