Re: [PATCH 14/14] Add D Phobos config, makefiles, and testsuite.

2019-04-20 Thread Iain Buclaw
On Sat, 20 Apr 2019 at 22:30, Thomas Schwinge wrote: > > Hi! > > On Tue, 18 Sep 2018 02:39:46 +0200, Iain Buclaw > wrote: > > This patch adds the configure and make files used for building D > > runtime and Phobos. As well as running all unittests and the > >

[PATCH, d] Committed ensure all unittests are registered against the original module.

2019-04-21 Thread Iain Buclaw
. -- Iain --- gcc/d/ChangeLog: 2019-04-21 Iain Buclaw * modules.cc (register_module_decl): Don't register unittests against the ModuleInfo symbol for -fbuilding-libphobos-tests. --- diff --git a/gcc/d/modules.cc b/gcc/d/modules.cc index 315f5d82356..35050c8e17a 100644 --- a/

[PATCH, d] Committed use guard to prevent declaration pass from running multiple times

2019-04-21 Thread Iain Buclaw
then becomes necessary to guard against this. Regression tested on x86_64-linux-gnu. Committed to trunk as r270478. -- Iain --- gcc/d/ChangeLog: 2019-04-21 Iain Buclaw * decl.cc (DeclVisitor::visit(Import)): Set semanticRun after completion, guard against being called more than

[PATCH, libphobos] Committed merge with upstream druntime 4b2674b3

2019-04-21 Thread Iain Buclaw
Hi, This patch merges the libdruntime sub-library with upstream druntime 4b2674b3. Adds version (BacktraceExternal) for using libexecinfo instead of internal implementation on FreeBSD, NetBSD, and DragonFly. Bootstrapped and regression tested on x86_64-linux-gnu, with preliminary build testing d

[PATCH, libphobos] Committed merge with upstream phobos 428460ddd

2019-04-21 Thread Iain Buclaw
Hi, This patch merges the libphobos library with upstream phobos 428460ddd. Defines growDownwards on SPARC64, fixing PR d/90064, and backports another fix to std.process, allowing permissions tests to be skipped when running as root. Bootstrapped and regression tested on x86_64-linux-gnu. Commi

[PATCH, PR d/90130] Committed dmd fixes for big endian targets

2019-04-21 Thread Iain Buclaw
Hi, This patch merges the D front-end implementation with dmd upstream 065fbd452. Fixes one endian bug in CTFE, and corrects tests in the D2 testsuite that failed on big endian targets. Boostrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r270485. -- Iain --- diff --gi

Re: [PATCH] Fix ARM exception handling (PR target/89093)

2019-04-22 Thread Iain Buclaw
On Mon, 22 Apr 2019 at 11:15, Jakub Jelinek wrote: > > Not sure about libphobos D stuff, does it need to go through upstream and > is libdruntime/gcc/deh.d compiled by compilers other than GDC? > It is not part of upstream, I could make that clearer in libphobos/README.gcc if there's uncertainty.

[PATCH, libphobos] Committed merge with upstream druntime 109f0f2e

2019-04-22 Thread Iain Buclaw
Hi, This patch merges the libdruntime sub-directory with upstream druntime 109f0f2e. Includes more backports for extern(C) bindings, notably for DragonFly and FreeBSD platforms. After adding the relevant compiler parts, it should now be possible to turn on libphobos for x86_64 and i?38 dragronfl

[PATCH, libphobos] Committed merge with upstream phobos b538f758a.

2019-04-22 Thread Iain Buclaw
Hi, This patch merges the libphobos library with upstream phobos b538f758a. Fixes endian bugs in std.uni, and corrects unit-tests that failed on version(BigEndian) targets, with good results on s390-linux-gnu. Bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r270491

Re: [RFC] D support for S/390

2019-04-22 Thread Iain Buclaw
On Thu, 18 Apr 2019 at 16:55, Robin Dapp wrote: > > Hi Rainer, > > > I noticed you missed one piece of Iain's typeinfo.cc patch, btw.: > > > > diff --git a/gcc/d/typeinfo.cc b/gcc/d/typeinfo.cc > > --- a/gcc/d/typeinfo.cc > > +++ b/gcc/d/typeinfo.cc > > @@ -886,7 +886,7 @@ public: > > if (cd

[PATCH, PR d/90079] Committed fix SEGV in _aaKeys, _aaValues on 32-bit SPARC

2019-04-23 Thread Iain Buclaw
Hi, This patch merges the libdruntime sub-library with upstream druntime b43203a1, fixing PR d/90079. Bootstrapped and regression tested on x86_64-linux-gnu and committed to trunk as r270514. -- Iain --- diff --git a/libphobos/libdruntime/MERGE b/libphobos/libdruntime/MERGE index 8a3790142cf..2

[PATCH, d] Committed support for compiling without libphobos library.

2019-04-23 Thread Iain Buclaw
accordingly. Bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r270518. -- Iain --- gcc/d/ChangeLog: 2019-04-23 Iain Buclaw * d-builtins.cc (d_init_versions): Add D_BetterC, D_ModuleInfo, D_Exceptions, D_TypeInfo as predefined version conditions. * d

[PATCH, libphobos] Committed added AArch64 Linux as a supported target.

2019-04-23 Thread Iain Buclaw
Hi, This patch adds arch64*-*-linux* as a supported libphobos target, something that has been passing the testsuite for a while now. Committed to trunk as r270524. -- Iain --- libphobos/ChangeLog: 2019-04-24 Iain Buclaw * configure.tgt: Add aarch64*-*-linux* as a supported target

[PATCH] Remove disabling of D front-end as an unsupported language

2019-04-23 Thread Iain Buclaw
Hi, The bootstrap for darwin was fixed a couple months back, so there is no need to disable it any more. OK for trunk? -- Iain --- ChangeLog: 2019-04-24 Iain Buclaw * configure.ac: Remove target addition of d to unsupported languages. * configure: Regenerate. --- diff

[PATCH, netbsd] Define TARGET_D_CRITSEC_SIZE for D language

2019-04-23 Thread Iain Buclaw
- gcc/ChangeLog: 2019-04-24 Iain Buclaw * config/netbsd-d.c (netbsd_d_critsec_size): New function. (TARGET_D_CRITSEC_SIZE): Define as netbsd_d_critsec_size. --- diff --git a/gcc/config/netbsd-d.c b/gcc/config/netbsd-d.c index 76342aacae3..c49366dc23b 100644 --- a/gcc/config/netbs

[PATCH, PR d/87818] Add D language support for FreeBSD x86

2019-04-23 Thread Iain Buclaw
Hi, This patch adds necessary FreeBSD support code, which allows libphobos to compile cleanly. OK for trunk? -- Iain --- gcc/ChangeLog: 2019-04-24 Iain Buclaw PR d/87818 * config.gcc (*-*-freebsd*): Add freebsd-d.o * config/freebsd-d.c: New file. * config/t

[PATCH, dragonfly] Add D language support for DragonFlyBSD x86

2019-04-23 Thread Iain Buclaw
Hi, This patch adds necessary DragonFlyBSD support code, which allows libphobos to compile cleanly. OK for trunk? -- Iain --- gcc/ChangeLog: 2019-04-24 Iain Buclaw * config.gcc (*-*-dragonfly*): Add dragonfly-d.o * config/dragonfly-d.c: New file. * config/t

Re: [PATCH, netbsd] Define TARGET_D_CRITSEC_SIZE for D language

2019-04-23 Thread Iain Buclaw
On Wed, 24 Apr 2019 at 01:56, Kamil Rytarowski wrote: > > On 24.04.2019 01:13, Iain Buclaw wrote: > > Hi, > > > > This patch adds missing implementation of TARGET_D_CRITSEC_SIZE, which > > would be noticed when using any bare synchronized statements. > > &g

[PATCH, PR d/88431] Fix link build errors when compiling with unsupported options

2019-04-23 Thread Iain Buclaw
themselves be an empty object module instead. This patch fixes build failure in PR88431, bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r270531. -- Iain --- libphobos/ChangeLog: 2019-04-24 Iain Buclaw PR d/88431 * configure: Regenerate. * m4

Re: [RFC] D support for S/390

2019-04-24 Thread Iain Buclaw
On Wed, 24 Apr 2019 at 10:05, Robin Dapp wrote: > > Hi, > > the attached patch is against the current HEAD, fixing one additional > test case. > Thanks, this has been committed. > Parallel testing does not seem to work anymore. Adding the following > define for ${PWD_COMMAND} makes it work agai

Re: [PATCH, libphobos] Committed added AArch64 Linux as a supported target.

2019-04-24 Thread Iain Buclaw
On Wed, 24 Apr 2019 at 09:33, Andreas Schwab wrote: > > On Apr 24 2019, Iain Buclaw wrote: > > > This patch adds arch64*-*-linux* as a supported libphobos target, > > something that has been passing the testsuite for a while now. > > > > Committed to trunk as r27

Re: [PATCH, netbsd] Define TARGET_D_CRITSEC_SIZE for D language

2019-04-24 Thread Iain Buclaw
On Wed, 24 Apr 2019 at 13:03, Kamil Rytarowski wrote: > > On 24.04.2019 03:30, Iain Buclaw wrote: > > On Wed, 24 Apr 2019 at 01:56, Kamil Rytarowski wrote: > >> > >> On 24.04.2019 01:13, Iain Buclaw wrote: > >>> Hi, > >>> > >>&g

[PATCH PR d/88654] Committed skip curl tests if libcurl is not installed on the target.

2019-04-24 Thread Iain Buclaw
not installed. Committed to trunk as r270545. -- Iain --- libphobos/ChangeLog: 2019-04-24 Iain Buclaw PR d/88654 * testsuite/lib/libphobos.exp (libphobos-dg-test): Check libphobos_skipped_test_p before running test. (libphobos-dg-prune): New proc

[PATCH, PR d/89432] Fix FAIL phobos.exp/core.time on CentOS 5.11, Linux 2.6.18

2019-04-24 Thread Iain Buclaw
. -- Iain --- libphobos/ChangeLog: 2019-04-24 Iain Buclaw PR d/89432 * testsuite/lib/libphobos.exp (check_effective_target_linux_pre_2639): New proc. * testsuite/libphobos.druntime/druntime.exp: Add compiler flag -fversion=Linux_Pre_2639 if target is

[PATCH, PR d/90086] Fix linker warning and SEGV in core.thread tests

2019-04-24 Thread Iain Buclaw
the last remaining failing test on -m32 that I can reproduce locally. Bootstrapped and regression tested on x86_64-linux-gnu with multilibs -m32, -mx32, and -m64. Committed to trunk as r270560. -- Iain --- libphobos/ChangeLog: 2019-04-25 Iain Buclaw PR d/90086 * m4/druntime

[PATCH, libphobos] Committed add missing PWD_COMMAND to Makefile.

2019-04-25 Thread Iain Buclaw
tat 'libphobos10/libphobos.sum': No such file or directory mv: cannot stat 'libphobos10/libphobos.log': No such file or directory Committed to trunk as r270566. -- Iain --- libphobos/ChangeLog: 2019-04-25 Iain Buclaw * testsuite/Makefile.am: Set PWD_COMMAND.

Re: [PATCH, netbsd] Define TARGET_D_CRITSEC_SIZE for D language

2019-04-25 Thread Iain Buclaw
On Wed, 24 Apr 2019 at 15:28, Kamil Rytarowski wrote: > > On 24.04.2019 13:25, Iain Buclaw wrote: > > On Wed, 24 Apr 2019 at 13:03, Kamil Rytarowski wrote: > >> > >> On 24.04.2019 03:30, Iain Buclaw wrote: > >>> On Wed, 24 Apr 2019 at 01:56, Kamil Ryta

Re: [PATCH, d] Do not add any target_libs dependencies if not using libphobos

2019-04-25 Thread Iain Buclaw
On Sun, 14 Apr 2019 at 18:40, Johannes Pfau wrote: > > Even if we disable libphobos (as unsupported in libphobos/configure.tgt > or using --disable-libphobos), config-lang.in still adds target-libbacktrace > to the target_libs. This means target-zlib and target-libbacktrace still end > up > being

Re: [PATCH, libphobos] Implement GCC emutls in druntime

2019-04-25 Thread Iain Buclaw
On Thu, 25 Apr 2019 at 12:25, Johannes Pfau wrote: > > This adds emulated TLS support to druntime. > The main problem here is that the D garbage collector needs > to be able to scan the TLS memory for pointers, which is not > possible with the current libgcc implementation. > > This therefore reim

Re: [PATCH, libphobos] Committed added AArch64 Linux as a supported target.

2019-04-25 Thread Iain Buclaw
On Thu, 25 Apr 2019 at 16:32, Richard Earnshaw (lists) wrote: > > On 24/04/2019 12:10, Iain Buclaw wrote: > > On Wed, 24 Apr 2019 at 09:33, Andreas Schwab wrote: > >> > >> On Apr 24 2019, Iain Buclaw wrote: > >> > >>> This patch ad

[PATCH, PR d/90250] Committed fix segfault in runtime caused by unexpected GC of TLS data.

2019-04-25 Thread Iain Buclaw
Iain Buclaw * 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. --- diff --git a/libphobos

[PATCH] Remove rs6000-ibm-aix5.3.0 from contrib/config-list.mk

2019-04-26 Thread Iain Buclaw
Hi, This configuration is no longer buildable as support was removed from gcc in r263506. OK for trunk? -- Iain --- contrib/ChangeLog: 2019-04-27 Iain Buclaw * config-list.mk (LIST): Remove rs6000-ibm-aix5.3.0. --- diff --git a/contrib/config-list.mk b/contrib/config-list.mk

[PATCH, netbsd] Include memmodel.h in netbsd-d.c

2019-04-27 Thread Iain Buclaw
using config-list.mk on all netbsd variants. OK? -- Iain --- gcc/ChangeLog: 2019-04-27 Iain Buclaw * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h, varasm.h, and netbsd-protos.h. --- diff --git a/gcc/config/netbsd-d.c b/gcc/config/netbsd-d.c index 76342aacae3

Re: [RFC] D support for S/390

2019-04-27 Thread Iain Buclaw
On Sat, 27 Apr 2019 at 12:24, Jakub Jelinek wrote: > > On Sat, Apr 27, 2019 at 11:26:15AM +0200, Matthias Klose wrote: > > On 15.03.19 16:49, Robin Dapp wrote: > > > during the last few days I tried to get D running on s390x (apparently > > > the first Big Endian platform to try it?). I did not y

Re: [PATCH, netbsd] Include memmodel.h in netbsd-d.c

2019-04-27 Thread Iain Buclaw
On Sat, 27 Apr 2019 at 15:30, Kamil Rytarowski wrote: > > On 27.04.2019 11:20, Iain Buclaw wrote: > > Hi, > > > > Baseline compiler builds fail on all sparc*-netbsd configurations. > > > > In file included from ./tm_p.h:4, > > from /runne

Re: [RFC] D support for S/390

2019-04-29 Thread Iain Buclaw
On Mon, 29 Apr 2019 at 06:11, Matthias Klose wrote: > > On 27.04.19 14:08, Iain Buclaw wrote: > > On Sat, 27 Apr 2019 at 12:24, Jakub Jelinek wrote: > >> > >> On Sat, Apr 27, 2019 at 11:26:15AM +0200, Matthias Klose wrote: > >>> On 15.03.19 16:49, Ro

Re: [PATCH] libphobos: RISC-V: Fix soft-float build errors with IEEE exception flags

2019-05-02 Thread Iain Buclaw
On Thu, 2 May 2019 at 03:14, Maciej Rozycki wrote: > > From: Maciej W. Rozycki > > 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 op

Re: [PATCH] libphobos: RISC-V: Fix soft-float build errors with IEEE exception flags

2019-05-02 Thread Iain Buclaw
On Thu, 2 May 2019 at 12:36, Jakub Jelinek wrote: > > On Thu, May 02, 2019 at 09:37:36AM +0200, Iain Buclaw wrote: > > > libphobos/ > > > * std/math.d (IeeeFlags.getIeeeFlags): Handle RISC-V soft-float > > > ABI. > > >

Re: [PATCH] libphobos: RISC-V: Fix soft-float build errors with IEEE exception flags

2019-05-02 Thread Iain Buclaw
On Thu, 2 May 2019 at 22:35, Jim Wilson wrote: > > On Wed, May 1, 2019 at 6:14 PM Maciej Rozycki wrote: > > within inline assembly, to access IEEE exception flags. The use of > > these instructions is not allowed when building for a soft-float ABI. > > Technically it is an architecture issue not

Re: [PATCH, libphobos] Add explicit casts in emutls.d to fix build on some systems

2019-05-02 Thread Iain Buclaw
On Thu, 2 May 2019 at 20:52, Johannes Pfau wrote: > > Am 02.05.19 um 20:48 schrieb Johannes Pfau: > > This fixes builds on systems where __builtin_machine_uint != size_t. In D, > > casts from larger to smaller integer size need to be made explicitly. > > Most notably this fixes --disable-tls for M

Re: [libphobos, build] Enable libphobos on Solaris 11/x86

2019-05-07 Thread Iain Buclaw
On Tue, 7 May 2019 at 10:15, Rainer Orth wrote: > > Hi Iain, > > > On Tue, 19 Feb 2019 at 13:58, Rainer Orth > > wrote: > >> > >> Hi Iain, > >> > >> >> Thanks. This will have to wait for > >> >> > >> >> [libphobos] Use sections_elf_shared.d on Solaris 11.5 (PR > >> >> d/88150) > >> >>

Re: [PATCH] Add gdc support to macOS

2019-05-14 Thread Iain Buclaw
On Tue, 14 May 2019 at 17:05, ciel wrote: > > Dear GCC team, > > I have succeeded to build gdc on macOS. I firstly submitted the patch > to https://github.com/Homebrew/homebrew-core/pull/39712 but I was > encouraged to submit to gcc team instead. So could you take a look at > it? > Some of it loo

[PATCH, d] Committed update copyright years of d/dmd sources

2019-01-09 Thread Iain Buclaw
/iasmgcc.c @@ -1,6 +1,6 @@ /* Compiler implementation of the D programming language - * Copyright (C) 2018 by The D Language Foundation, All Rights Reserved + * Copyright (C) 2018-2019 by The D Language Foundation, All Rights Reserved * written by Iain Buclaw * http://www.digitalmars.com

[PATCH, libphobos] Committed remove or update of library deprecations

2019-01-09 Thread Iain Buclaw
This patch merges the phobos library with upstream b022e552a. Removes or updates the removal date of all deprecations in phobos. Many of the marked functions have passed their end dates, and are now absent in upstream. Bootstrapped and tested on x86_64-linux-gnu. Committed to trunk as r267788 --

[PATCH, d] Add README for process contributing to dmd and phobos

2019-01-10 Thread Iain Buclaw
Hi, Joseph made mention that there isn't a readme documenting where changes to d/dmd, libphobos/libdruntime, and libphobos/src should go. I hope this clears things up. OK for trunk? -- Iain --- gcc/d/ChangeLog: 2019-01-10 Iain Buclaw * README.gcc: New file. libphobos/Chan

Re: [PATCH, d] Add README for process contributing to dmd and phobos

2019-01-12 Thread Iain Buclaw
On Thu, 10 Jan 2019 at 18:26, Joseph Myers wrote: > > On Thu, 10 Jan 2019, Iain Buclaw wrote: > > > Hi, > > > > Joseph made mention that there isn't a readme documenting where > > changes to d/dmd, libphobos/libdruntime, and libphobos/src should go. > &g

[PATCH, d] Committed merge with upstream dmd

2019-01-14 Thread Iain Buclaw
. Bootstrapped and tested on x86_64-linux-gnu. Committed to trunk as r267913. -- Iain --- gcc/testsuite/ChangeLog: 2019-01-14 Iain Buclaw * gdc.dg/asm1.d: New test. * gdc.dg/asm2.d: New test. * gdc.dg/asm3.d: New test. * gdc.dg/asm4.d: New test. * lib/gdc.exp (gdc_init): Set

Re: [PATCH 10/10] libiberty: Correct an invalid assumption

2019-01-14 Thread Iain Buclaw
On Fri, 11 Jan 2019 at 01:20, Ben L wrote: > > Hi all, > > First time emailing gcc-patches, so I'm sorry if I get any of this wrong or if > there's obvious errors repeated in my patches. AFAICT I should be sending each > change individually rather than as one bulk patch, so I'm sorry about the spa

[PATCH, d] Committed refactor building typeof(null) value.

2019-01-15 Thread Iain Buclaw
Hi, This patch moves into one function building the typeof(null) values in the D front-end. Bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r267955. -- Iain --- gcc/d/ChangeLog: 2019-01-16 Iain Buclaw * d-codegen.cc (build_typeof_null_value): New

[PATCH, PR d/87824] Committed fix for failing EH execution test on i386.

2019-01-16 Thread Iain Buclaw
e way to determine if two in-flight exceptions should be chained at run-time if this optimization is turned on. Bootstrapped and tested on x86_64-linux-gnu / RUNTESTFLAGS="--target_board=unix/-m32" Committed to trunk as r267985. -- Iain --- gcc/d/ChangeLog: 2019-01-16 Iain Buclaw

[PATCH, libphobos] Commited OSX bindings for core.sys.posix.aio

2019-01-17 Thread Iain Buclaw
Hi, This patch fixes build failure found when testing on OSX. Bootstrapped and tested on x86_64-linux-gnu, though have verified is correct on OSX. Committed to trunk as r268050. -- Iain --- diff --git a/libphobos/libdruntime/core/sys/posix/aio.d b/libphobos/libdruntime/core/sys/posix/aio.d ind

[PATCH, libphobos] Committed hppa-linux-gnu bindings

2019-01-17 Thread Iain Buclaw
Hi, This patch adds one part of libphobos support for hppa-linux-gnu, as posted by John. Apologies for it taking a while to get round to downstreaming this. Preliminary testsuite runs have been done which show some promising results, but still a little more to do, particularly with handling the

[PATCH, libphobos] Committed Fiber/Thread support for StackGrowsUp

2019-01-17 Thread Iain Buclaw
Hi, This patch fixes getStackBottom in core.thread to support targets where the stack grows up, notably hppa configurations. After other fixes in the compiler, this allows core.thread unittests to pass, as well as the garbage collector to work correctly on hppa-linux-gnu. Bootstrapped and regres

Re: [PATCH, V2, d] Fix IdentityExp comparison for complex floats

2019-01-20 Thread Iain Buclaw
On Mon, 17 Dec 2018 at 23:05, Iain Buclaw wrote: > > On Wed, 28 Nov 2018 at 23:46, Iain Buclaw wrote: > > > > On Wed, 28 Nov 2018 at 22:32, Johannes Pfau wrote: > > > > > > Next version, addresses the review comments. > > > > > > Teste

[PATCH, d] Committed fix GNU_StackGrowsDown version always predefined

2019-01-20 Thread Iain Buclaw
d and regression tested on x86_64-linux-gnu. Committed to trunk as r268106. -- Iain --- gcc/d/ChangeLog: 2019-01-20 Iain Buclaw * d-builtins.cc (d_init_versions): Check value of STACK_GROWS_DOWNWARD. --- diff --git a/gcc/d/d-builtins.cc b/gcc/d/d-builtins.cc index 564e8c6a7b1..b0a315

[PATCH, zlib] Rename libzgcj_convenience to libz_convenience

2019-01-20 Thread Iain Buclaw
it is not in use any more as far as I can tell, neither is target_all. Is it OK to drop the reference to gcj in the name? -- Iain --- zlib/ChangeLog.gcj: 2019-01-20 Iain Buclaw * Makefile.am (noinst_LTLIBRARIES): Rename libzgcj_convience.la to libz_convenience.la. * Makefi

[PATCH] Add target-zlib to top-level configure, use zlib from libphobos

2019-01-21 Thread Iain Buclaw
, but decided against unless it's requested. -- Iain --- ChangeLog: 2019-01-21 Iain Buclaw * configure.ac: configure.ac: Add target-zlib to target_libraries. * configure: Regenerate. libphobos/ChangeLog: 2019-01-21 Iain Buclaw * m4/druntime/librari

[PATCH, d] Committed merge with upstream dmd

2019-01-21 Thread Iain Buclaw
. -- Iain --- gcc/d/ChangeLog: 2019-01-21 Iain Buclaw * d-frontend.cc (Compiler::paintAsType): Update for new signature. --- diff --git a/gcc/d/d-frontend.cc b/gcc/d/d-frontend.cc index a1c0d53d1ca..d1d3c78ec86 100644 --- a/gcc/d/d-frontend.cc +++ b/gcc/d/d-frontend.cc @@ -446,7 +446,7

Re: [PATCH,GDC] Add netbsd support to GDC

2019-01-22 Thread Iain Buclaw
On Tue, 22 Jan 2019 at 17:29, Maya Rashish wrote: > > libphobos/libdruntime changes were contributed upstream: > https://github.com/dlang/druntime/pull/2472 > (caveat: pending a change to netbsd/execinfo.d) > > One missing patch is needed for GDC to work. > > gcc/config.gcc (*-*-netbsd*): add netb

Re: [PATCH, d] Committed merge with upstream dmd

2019-01-22 Thread Iain Buclaw
On Tue, 22 Jan 2019 at 11:08, Andreas Schwab wrote: > > In file included from ../../gcc/d/d-system.h:23, > from ../../gcc/d/dmd/root/dsystem.h:24, > from ../../gcc/d/dmd/mtype.c:11: > ../../gcc/d/dmd/mtype.c: In member function 'Identifier* > Type::getTypeInfoIde

[PATCH, libphobos] Committed merge upstream phobos and druntime

2019-01-26 Thread Iain Buclaw
Hi, This patch merges platform fixes for both druntime and phobos from upstream. Bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r268293. -- Iain --- diff --git a/libphobos/libdruntime/MERGE b/libphobos/libdruntime/MERGE new file mode 100644 index 000..b98

[PATCH PR d/89042] Committed fix for ICE when compiling void initialized enums

2019-01-26 Thread Iain Buclaw
Hi, This patch changes an assertion into an early return condition, fixing PR d/89042. Bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r268304. -- Iain --- gcc/d/ChangeLog: 2019-01-26 Iain Buclaw PR d/89042 * decl.cc (DeclVisitor::visit

Re: [testsuite] Mark gdc.dg/pr89042?.d as compile tests

2019-01-29 Thread Iain Buclaw
On Tue, 29 Jan 2019 at 09:52, Rainer Orth wrote: > > I've seen the new gdc.dg/pr89042?.d tests FAIL in a parallel multilib > bootstrap on i386-pc-solaris2.11: > > +FAIL: gdc.dg/pr89042a.d -O0 (test for excess errors) > +UNRESOLVED: gdc.dg/pr89042a.d -O0 compilation failed to produce executab

Re: [PATCH] Add target-zlib to top-level configure, use zlib from libphobos

2019-02-09 Thread Iain Buclaw
On Mon, 28 Jan 2019 at 13:10, Richard Biener wrote: > > On Mon, Jan 21, 2019 at 7:35 PM Iain Buclaw wrote: > > > > Hi, > > > > Following on from the last, this adds target-zlib to target_libraries > > and updates libphobos build scripts to link to libz_conven

[PATCH, PR d/88989] Committed fix for ICE on recursive field initializers

2019-02-10 Thread Iain Buclaw
Hi, This patch merges the D front-end implementation with dmd upstream 39edbe17e. Only includes a backport from a latter version, fixing PR d/88989. Boostrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r268740. -- Iain --- diff --git a/gcc/d/dmd/MERGE b/gcc/d/dmd/MERGE

[PATCH PR d/88654] Committed phobos fix for thread deadlock in std.net.curl

2019-02-10 Thread Iain Buclaw
Hi, This patch is the library fix for a thread deadlock that occurred when libcurl is missing. It is only one half of the fix for the PR, the other is for the testsuite scripts to check that libcurl exists before attempting to run the std.net.curl unittest. Bootstrapped and tested on x86_64-linu

Re: [PATCH 1/2, d] Fix hashing of complex reals

2019-02-10 Thread Iain Buclaw
On Thu, 29 Nov 2018 at 11:51, Iain Buclaw wrote: > > On Wed, 28 Nov 2018 at 22:44, Johannes Pfau wrote: > > > > Hashing of complex types where the floating point type used > > for the real and imaginary parts has padding (such as X86 80 bit reals) > > has padding, i

[PATCH, libphobos] Committed fix for hashing complex reals

2019-02-10 Thread Iain Buclaw
Hi, It is a rebase of a patch sent to this mailing list by Johannes, it has been committed to upstream druntime, and now downstreaming. Bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r268755 -- Iain --- libphobos/ChangeLog: 2019-02-10 Iain Buclaw

Re: [PATCH 2/2, d] Enable tests for rt.util.typeinfo and core.internal.convert

2019-02-10 Thread Iain Buclaw
On Wed, 28 Nov 2018 at 22:44, Johannes Pfau wrote: > > With these backports, these tests now pass for GDC and we don't > need the special cases in the Makefiles anymore. > > -- > Johannes > > --- > libphobos/ChangeLog: > > 2018-11-28 Johannes Pfau > > * libdruntime/Makefile.am: Test rt.

[PATCH, libphobos] Committed add hppa version in std.experimental.allocator

2019-02-12 Thread Iain Buclaw
Hi, This is a backport from phobos 2.084, the hppa changes that were applied missed adding this one change in allocator/building_blocks/region.d. Bootstrapped and regression tested on x86_64-linux-gnu. Despite not the ended target that's being fixed, only validates that scoping is correct. Commi

Re: [PATCH] Add target-zlib to top-level configure, use zlib from libphobos

2019-02-12 Thread Iain Buclaw
On Tue, 12 Feb 2019 at 10:40, Richard Biener wrote: > > On Sat, Feb 9, 2019 at 10:37 AM Iain Buclaw wrote: > > > > On Mon, 28 Jan 2019 at 13:10, Richard Biener > > wrote: > > > > > > On Mon, Jan 21, 2019 at 7:35 PM Iain Buclaw > > > wrot

[PATCH, libphobos] Committed fallback UnwindBacktrace if LibBacktrace unfound

2019-02-12 Thread Iain Buclaw
Hi, In the gcc.backtrace module, either one of LibBacktrace or UnwindBacktrace will always be defined. This patch gives UnwindBacktrace a higher precedence over the libc backtrace as the default backtrace handler as the latter depends on a rt.backtrace module that is not compiled in. Only useful

Re: [PATCH] Fix up and improve allow_blank_lines testsuite handling (PR other/69006, PR testsuite/88920, take 2)

2019-02-13 Thread Iain Buclaw
On Wed, 13 Feb 2019 at 14:37, Jakub Jelinek wrote: > > On Wed, Feb 13, 2019 at 10:22:14AM +, Andrew Stubbs wrote: > > On 13/02/2019 09:09, Jakub Jelinek wrote: > > > To make it work together with doing llvm_binutils only once, the global > > > now > > > has multiple values > > > 0 - disallow

Re: Provide __start_minfo/__stop_minfo for linkers that don't (PR d/87864)

2019-02-13 Thread Iain Buclaw
On Tue, 29 Jan 2019 at 13:24, Rainer Orth wrote: > > Solaris ld only gained support for section bracketing in Solaris 11.4. > Fortunately, in gdc it is only used for the minfo section, so it's easy > to provide a workaround by adding two additional startup files > drt{begin,end}.o which define __s

Re: [PATCH,GDC] Add netbsd support to GDC

2019-02-13 Thread Iain Buclaw
On Mon, 11 Feb 2019 at 09:28, wrote: > > On Wed, Jan 23, 2019 at 09:35:03AM +, co...@sdf.org wrote: > > > Is this necessary? I'd prefer to not set this field if it can be > > > avoided. The same goes for the others, I intend to remove them at > > > soonest convenience once the problematic pa

Re: Provide __start_minfo/__stop_minfo for linkers that don't (PR d/87864)

2019-02-14 Thread Iain Buclaw
On Thu, 14 Feb 2019 at 11:13, Rainer Orth wrote: > > Hi Iain, > > > On Tue, 29 Jan 2019 at 13:24, Rainer Orth > > wrote: > >> > >> Solaris ld only gained support for section bracketing in Solaris 11.4. > >> Fortunately, in gdc it is only used for the minfo section, so it's easy > >> to provide a

[PATCH, d] Committed Add netbsd support to GDC

2019-02-14 Thread Iain Buclaw
Hi, This is a combine of netbsd patches sent by Maya, and related upstream druntime changes. Bootstrapped and regression tested on x86_64-linux-gnu, which only confirms that the scoping is correct. I trust that Maya tested the netbsd-d.c part, nothing looks out of place there anyway. Committed

Re: [PATCH v3 1/14] D: The front-end (DMD) language implementation and license.

2017-10-18 Thread Iain Buclaw
On 6 October 2017 at 14:51, Ian Lance Taylor wrote: > On Fri, Oct 6, 2017 at 1:34 AM, Iain Buclaw wrote: >> >> Out of curiosity, I did have a look at some of the tops of gofrontend >> sources this morning. They are all copyright the Go Authors, and are >> licensed

Re: [PATCH v3 1/14] D: The front-end (DMD) language implementation and license.

2017-10-25 Thread Iain Buclaw
On 25 October 2017 at 03:06, Jeff Law wrote: > On 10/18/2017 01:33 AM, Iain Buclaw wrote: >> On 6 October 2017 at 14:51, Ian Lance Taylor wrote: >>> On Fri, Oct 6, 2017 at 1:34 AM, Iain Buclaw wrote: >>>> >>>> Out of curiosity, I did have a look at s

Re: [PATCH v3 1/14] D: The front-end (DMD) language implementation and license.

2017-11-06 Thread Iain Buclaw
On 25 October 2017 at 03:06, Jeff Law wrote: > On 10/18/2017 01:33 AM, Iain Buclaw wrote: >> On 6 October 2017 at 14:51, Ian Lance Taylor wrote: >>> On Fri, Oct 6, 2017 at 1:34 AM, Iain Buclaw wrote: >>>> >>>> Out of curiosity, I did have a look at s

Re: [PATCH] Add self as maintainer of D front-end and libphobos

2017-07-13 Thread Iain Buclaw
On 24 June 2017 at 20:16, Iain Buclaw wrote: > Hi, > > As per message on the D language being accepted, this adds myself as a > maintainer of the D front-end and libphobos runtime library. > > David, should this wait until the rest has been approved? > Hi, I may have t

Re: [PATCH 0/13] D: Submission of D Front End

2017-07-13 Thread Iain Buclaw
On 24 June 2017 at 19:23, Iain Buclaw wrote: > Hi, > > Just doing an update of the patch series, rebased against trunk, and > applied changes as requested by every comment so far. > > Notes on changes have been made on each patch where applicable. > Hi, So what would be

Re: [PATCH 0/13] D: Submission of D Front End

2017-08-01 Thread Iain Buclaw
On 13 July 2017 at 10:46, Iain Buclaw wrote: > On 24 June 2017 at 19:23, Iain Buclaw wrote: >> Hi, >> >> Just doing an update of the patch series, rebased against trunk, and >> applied changes as requested by every comment so far. >> >> Notes on cha

Re: [PATCH 0/2] Python testcases to check DWARF output

2017-08-06 Thread Iain Buclaw
On 4 August 2017 at 00:23, Mike Stump wrote: > On Jul 27, 2017, at 2:07 AM, Pierre-Marie de Rodat > wrote: >> On 07/27/2017 09:52 AM, Richard Biener wrote: I'm fine with the direction if a reviewer wants to go in that direction. I wish python didn't have a built-in speed penalty,

Re: [PATCH 1/13] D: The front-end (DMD) language implementation and license.

2017-09-11 Thread Iain Buclaw
On 11 September 2017 at 17:12, Jeff Law wrote: > On 05/28/2017 03:02 PM, Iain Buclaw wrote: >> (Sorry, repost as I rushed the first one a bit). >> >> This patch adds the DMD front-end proper and license (Boost) files, >> comprised of a lexer, parser, and semanti

Re: [PATCH 2/13] D: The front-end (GDC) implementation.

2017-09-11 Thread Iain Buclaw
On 11 September 2017 at 17:42, Jeff Law wrote: > On 05/28/2017 03:11 PM, Iain Buclaw wrote: >> This patch adds the D front-end implementation, the only part of the >> compiler that interacts with GCC directly, and being the parts that I >> maintain, is something that

Re: [PATCH 3/13] D: The front-end (GDC) changelogs.

2017-09-11 Thread Iain Buclaw
On 11 September 2017 at 17:43, Jeff Law wrote: > On 05/28/2017 03:11 PM, Iain Buclaw wrote: >> This patch just includes all changelogs for the D front-end (GDC), >> going back to the dawn of time itself. >> >> Change logs for the DMD front-end and libraries are kept on

Re: [PATCH 4/13] D: The front-end (GDC) config, makefile, and manpages.

2017-09-11 Thread Iain Buclaw
On 11 September 2017 at 18:05, Jeff Law wrote: > On 05/28/2017 03:12 PM, Iain Buclaw wrote: >> This patch adds the D frontend language configure make files, as >> described on the anatomy of a language front-end. >> >> --- >> >> >> 04-d-frontend-misc.

Re: [PATCH v2 11/13] D: GCC builtins and runtime support.

2017-09-11 Thread Iain Buclaw
On 11 September 2017 at 18:40, Jeff Law wrote: > On 06/24/2017 11:53 AM, Iain Buclaw wrote: >> On 28 May 2017 at 23:17, Iain Buclaw wrote: >>> This patch adds GCC builtins and runtime support for GDC compiled code. >>> >>> - module __entrypoint defines th

[PATCH 1/3] [D] libiberty: Remove stack buffer in dlang_parse_real

2017-05-26 Thread Iain Buclaw
62d51a8de1fa6543f11ff0d9f97b3ce714023089 Author: Iain Buclaw Date: Fri May 26 15:29:50 2017 +0200 libiberty/ChangeLog: 2017-05-26 Iain Buclaw * d-demangle.c (dlang_parse_real): Remove stack buffer, write the demangled hexadecimal directly to string

[PATCH 2/3] [D] libiberty: Add support for handling function types in dlang_type

2017-05-26 Thread Iain Buclaw
43a0c37b48f8365fb34083a8ebbcb6ce8a2da05c Author: Iain Buclaw Date: Fri May 26 15:53:53 2017 +0200 libiberty/ChangeLog: 2017-05-26 Iain Buclaw * d-demangle.c (dlang_call_convention_p): Move declaration before dlang_type. (dlang_type): Handle function

[PATCH 3/3] [D] libiberty: Prefix mangled D initializer symbols

2017-05-26 Thread Iain Buclaw
piler-generated symbol. --- commit a99454b6c27a2564fe1a40c46b1fb593c664ef20 Author: Iain Buclaw Date: Fri May 26 16:44:35 2017 +0200 libiberty/ChangeLog: 2017-05-26 Iain Buclaw * d-demangle.c (dlang_identifier): Prefix mangled init symbols with `

Re: MinGW compilation warnings in libiberty's waitpid.c

2017-05-27 Thread Iain Buclaw
On 26 May 2017 at 18:30, Joel Brobecker wrote: >> Thanks. Is the environ thing also fixed? >> >> Joel/Pedro, how should I go about making sure these changes are in the >> GDB copy of libiberty? > > Normally, I'd expect someone pushing to GCC's libibert to also > update our repo accordingly. Howev

Re: [PATCH 3/3] [D] libiberty: Prefix mangled D initializer symbols

2017-05-28 Thread Iain Buclaw
On 26 May 2017 at 20:20, Ian Lance Taylor wrote: > On Fri, May 26, 2017 at 9:08 AM, Iain Buclaw wrote: >> This is instead of adding a `.init$' postfix, which gave it a >> property-style name. My rationale being that "initializer for symbol" >> is much more i

Re: [PATCH 0/13] D: Submission of D Front End

2017-05-28 Thread Iain Buclaw
On 28 May 2017 at 15:30, Iain Buclaw wrote: > > --- > > Iain Buclaw (13): > 001 - The front-end (DMD) language implementation and license. > 002 - The front-end (GDC) implementation. > 003 - The front-end (GDC) changelogs (here be dragons). > 004 - The front-en

Re: [PATCH 1/13] D: The front-end (DMD) language implementation and license.

2017-05-28 Thread Iain Buclaw
Split 4/4 Gzipped because of size limitations. I feel like I should probably put off submitting the libraries, as they are be far, far, far bigger. Instead only submitting the GDC parts for now, and looking at the others when I get back. ---

[PATCH 3/13] D: The front-end (GDC) changelogs.

2017-05-28 Thread Iain Buclaw
This patch just includes all changelogs for the D front-end (GDC), going back to the dawn of time itself. Change logs for the DMD front-end and libraries are kept on the dlang site. Regards Iain --- 03-d-frontend-changelogs.patch.xz Description: application/xz

[PATCH 4/13] D: The front-end (GDC) config, makefile, and manpages.

2017-05-28 Thread Iain Buclaw
''. +@ignore +@c man begin COPYRIGHT +man page gfdl(7). +@c man end +@end ignore + +@c man begin COPYRIGHT + +(a) The FSF's Front-Cover Text is: + + A GNU Manual + +(b) The FSF's Back-Cover Text is: + + You have freedom to copy and modify this GNU Manual, like GNU + s

[PATCH 5/13] D: GCC configuration file changes and documentation.

2017-05-28 Thread Iain Buclaw
ineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +fi +test -n "$ac_cv_prog_GDC_FOR_TARGET" && break + done +fi + +if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then + set dummy gdc + if test $build = $target ; then +GDC_FOR_

[PATCH 6/13] D: Add D language support to GCC proper.

2017-05-28 Thread Iain Buclaw
This patch adds D language support to GCC itself. --- gcc/ChangeLog * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support GNU D by using 0 as the language type. * dwarf2out.c (is_dlang): New function. (gen_compile_unit_die): Use DW_LANG_D for D. (declare_in_namespace): Return m

<    1   2   3   4   5   6   7   8   9   10   >