[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/libraries.m4

[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, 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* >

[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

Re: [testsuite] Include gdc.test prefix in test names (PR testsuite/88041)

2018-12-13 Thread Iain Buclaw
On Thu, 13 Dec 2018 at 10:16, Rainer Orth wrote: > > As reported in the PR, the test names of DejaGnu tests should be the > path relative to the respective testsuite directory, a convention the > gdc.test tests currently don't follow. > > The patch below fixes this. After a few false starts

[PATCH, d] Committed merge with upstream dmd

2018-12-17 Thread Iain Buclaw
Hi, This patch merges the D front-end implementation with dmd upstream 237ca3fbe. Backports a fix where a bad cast to TypeFunction resulted in memory corruption. The logic in the function semantic has been fixed, and casts have been replaced with a function call to always check the front-end

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

2018-12-17 Thread Iain Buclaw
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. > > > > Tested at https://github.com/D-Programming-GDC/GDC/pull/768 > > --- > > gcc/d/Ch

[PATCH, libphobos] Committed commonize core.sys.posix.sys.msg

2018-12-16 Thread Iain Buclaw
Hi, This patch is a continuation of prior merging common version blocks to help simplify porting the C bindings. For this particular module, it now more closely resembles how glibc arranges msq.h, fixing a couple of targets in the process, notably X32. Bootstrapped and tested on

Re: [PATCH, libphobos] Committed remove unused internal modules

2018-12-14 Thread Iain Buclaw
On Mon, 19 Nov 2018 at 00:40, Iain Buclaw wrote: > > Hi, > > This patch removes two x86-centric modules that are ignored as gdc > doesn't implement the D_InlineAsm version condition. Bootstrapped and > testsuite ran on x86_64-linux-gnu. > > Committed to trunk

[PATCH, libphobos] Committed add support for riscv to glibc bindings

2018-12-01 Thread Iain Buclaw
: Iain Buclaw Date: Sat Dec 1 22:29:31 2018 +0100 libphobos: Add support for RISCV to glibc bindings Backported from upstream druntime master. Reviewed-on: https://github.com/dlang/druntime/pull/2355 diff --git a/libphobos/libdruntime/core/stdc/fenv.d b/libphobos/libdruntime

Re: Pass GDCFLAGS and CCASFLAGS to libphobos subdirs

2018-12-07 Thread Iain Buclaw
On Fri, 7 Dec 2018 at 14:30, Rainer Orth wrote: > > When trying to rebuild libphobos with -g3 -O0 for better debugging, I > noticed that GDCFLAGS weren't passed down as expected. It turned out > that they are missing from AM_MAKEFLAGS. After I fixed this, the only > file still compiled with -g

Re: [wwwdocs] Add D language to news, frontends, release notes, and readings.

2018-12-07 Thread Iain Buclaw
On Sun, 2 Dec 2018 at 18:23, Gerald Pfeifer wrote: > > Hi Iain, > > On Mon, 12 Nov 2018, Iain Buclaw wrote: > > As suggested, this adds an announcement of the D front end addition > > to the news items on the GCC home page, and from what I can tell, the > > rel

[PATCH, d] Committed merge with upstream dmd

2018-12-02 Thread Iain Buclaw
Hi, This patch merges the D front-end implementation with dmd upstream 5220ad51e. Backports Ddoc fix that is present in upstream, but did not make its way into the C++ port of the D front-end implementation. The old special types for C long, unsigned long, and long double have also been removed

Re: [testsuite] Require ucn support in gdc.test/compilable/ddoc12.d (PR d/88039)

2018-12-02 Thread Iain Buclaw
On Sat, 1 Dec 2018 at 19:28, Iain Buclaw wrote: > > On Thu, 29 Nov 2018 at 15:12, Rainer Orth > wrote: > > > > Hi Iain, > > > > > On Tue, 27 Nov 2018 at 20:32, Rainer Orth > > > wrote: > > >> > > >> Hi Mike, > > >

Re: [wwwdocs] Add D language to news, frontends, release notes, and readings.

2018-12-02 Thread Iain Buclaw
On Sun, 2 Dec 2018 at 18:23, Gerald Pfeifer wrote: > > Hi Iain, > > On Mon, 12 Nov 2018, Iain Buclaw wrote: > > As suggested, this adds an announcement of the D front end addition > > to the news items on the GCC home page, and from what I can tell, the > > rel

Re: [wwwdocs] Add D language to news, frontends, release notes, and readings.

2018-12-03 Thread Iain Buclaw
On Sun, 2 Dec 2018 at 22:34, Gerald Pfeifer wrote: > > On Sun, 2 Dec 2018, Iain Buclaw wrote: > > I assume that the notes on the about.html page are all that are > > needed to commit and push? > > Yes, they *should*. > > If you run into anything that's missing or hav

Re: Update GCC to autoconf 2.69, automake 1.15.1

2018-12-02 Thread Iain Buclaw
On Wed, 31 Oct 2018 at 04:26, Joseph Myers wrote: > > This patch (diffs to generated files omitted below) updates GCC to use > autoconf 2.69 and automake 1.15.1. (That's not the latest automake > version, but it's the one used by binutils-gdb, with which consistency > is desirable, and in any

Re: [testsuite] Require ucn support in gdc.test/compilable/ddoc12.d (PR d/88039)

2018-12-09 Thread Iain Buclaw
On Tue, 4 Dec 2018 at 14:49, Rainer Orth wrote: > > Hi Iain, > > > On Sat, 1 Dec 2018 at 19:28, Iain Buclaw wrote: > >> > >> On Thu, 29 Nov 2018 at 15:12, Rainer Orth > >> wrote: > >> > > >> > Hi Iain, > &g

Re: [PATCH] hppa: Add libphobos support

2018-12-09 Thread Iain Buclaw
On Sun, 9 Dec 2018 at 21:16, John David Anglin wrote: > > The attached change implements a first cut at libphobos support on > hppa/glibc/linux. Test > results are here: > . > > Okay? > >From what I can see, everything is properly

Re: [committed] hppa: Add target support infrastructure for D front end

2018-12-09 Thread Iain Buclaw
On Sun, 9 Dec 2018 at 20:49, John David Anglin wrote: > > The attached change has been tested on hppa-unknown-linux-gnu with an > initial implementation > of libphobos. Committed to trunk. > > Dave > Thanks! Shouldn't this be made available to all hppa* configurations though? Or just

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

2018-11-29 Thread Iain Buclaw
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, is currently broken in druntime. > > Fixed by backporting

Re: [testsuite] Require ucn support in gdc.test/compilable/ddoc12.d (PR d/88039)

2018-12-01 Thread Iain Buclaw
On Thu, 29 Nov 2018 at 15:12, Rainer Orth wrote: > > Hi Iain, > > > On Tue, 27 Nov 2018 at 20:32, Rainer Orth > > wrote: > >> > >> Hi Mike, > >> > >> > On Nov 27, 2018, at 2:18 AM, Rainer Orth > >> > wrote: > >> >> > >> >> Some assemblers, including the Solaris one, don't support UTF-8 > >> >>

[PATCH PR d/87866] Committed use lrealpath to get canonical name

2018-11-24 Thread Iain Buclaw
. Commited to trunk as r266429. Iain --- gcc/d/ChangeLog: 2018-11-24 Iain Buclaw PR d/87866 * d-incpath.cc (add_globalpaths): Use lrealpath to get canonical name. (add_filepaths): Likewise. --- diff --git a/gcc/d/d-incpath.cc b/gcc/d/d-incpath.cc index be08ccb5f3b..87db8164134 100644

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

2018-11-25 Thread Iain Buclaw
On Sat, 24 Nov 2018 at 11:43, Johannes Pfau wrote: > > Currently all identity comparisons for complex types (c1 is c2) return > true. This is caused by the rrent implementation being only correct for > real types, so this adds new code for the complex type cases. > > Fixes

Re: [testsuite] Disable gdc execution tests without libphobos

2018-11-25 Thread Iain Buclaw
On Sun, 25 Nov 2018 at 16:08, Rainer Orth wrote: > > On targets with gdc enabled (most with --enable-languages=all or with an > explicit --enable-languges=d), but libphobos not built (many), all gdc.* > execution tests FAIL because already libgphobos.spec is missing. > > This is easy to avoid,

Re: [PATCH, libphobos] Fix libphobos.shared testsuite for multilib tests

2018-11-21 Thread Iain Buclaw
On Sat, 17 Nov 2018 at 16:07, Johannes Pfau wrote: > > Hi, > > the loadDR test in the libphobos.shared testsuite tries to dynamically load > the phobos library. The path for the library currently points to the main > multilib variant phobos library, causing other multilib variants to fail the

[PATCH, libphobos] Committed merge common version blocks using arch_any conditions

2018-11-28 Thread Iain Buclaw
Hi, This patch is backported from druntime master. It sets a precedence in upstream for merging architecture agnostic C bindings into one block, rather than separate duplicated blocks. A nice side-effect is it almost completes the C bindings for s390-linux-gnu and sparc-linux-gnu, and fixes a

[PATCH, libphobos] Committed update libphobos version to 2.076.1

2018-11-28 Thread Iain Buclaw
-linux-gnu and aarch64-linux-gnu. Committed to trunk as r266572. -- Iain --- libphobos/ChangeLog: 2018-11-28 Iain Buclaw * Makefile.in: Rebuild. * configure: Rebuild. * configure.ac (DRUNTIME_SOVERSION): Remove. (PHOBOS_SOVERSION): Remove. (libtool_VERSION): Add

Re: [testsuite] Require ucn support in gdc.test/compilable/ddoc12.d (PR d/88039)

2018-11-28 Thread Iain Buclaw
On Tue, 27 Nov 2018 at 20:32, Rainer Orth wrote: > > Hi Mike, > > > On Nov 27, 2018, at 2:18 AM, Rainer Orth > > wrote: > >> > >> Some assemblers, including the Solaris one, don't support UTF-8 > >> identifiers, which breaks the gdc.test/compilable/ddoc12.d testcase as > >> reported in the PR.

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

2018-11-28 Thread Iain Buclaw
On Wed, 28 Nov 2018 at 22:32, Johannes Pfau wrote: > > Next version, addresses the review comments. > > Tested at https://github.com/D-Programming-GDC/GDC/pull/768 > --- > gcc/d/ChangeLog: > > 2018-11-28 Johannes Pfau > > * expr.cc (ExprVisitor::visit(IdentityExp)): Add support for

[PATCH, libphobos] Committed IEEE quadruple support to std.conv

2018-11-17 Thread Iain Buclaw
This patch is backported from phobos 2.079, in continuation of finishing off AArch64 library support. Bootstrapped and ran D2 testsuite on x86_64-linux-gnu. Committed to trunk as r266238. -- Iain --- diff --git a/libphobos/src/std/conv.d b/libphobos/src/std/conv.d index

[PATCH, libphobos] Committed fix backtraces in Fibers on AArch64

2018-11-26 Thread Iain Buclaw
Hi, This patch is backported from druntime 2.083, in continuation of finishing off AArch64 library support. When throwing an Exception in the Fiber the backtrace generation crashes. This happens because backtrace does not func the stack bottom. Using '.cfi_undefined x30' tells the debug info

Ping: [PATCH] update-copyright.py: Add filters for D language sources

2018-11-26 Thread Iain Buclaw
Hi, This adds filters for upstream dmd, druntime, and phobos libraries, so that the update-copyright script doesn't complain or try to update the copyright years for those files. OK for trunk? -- Iain --- contrib/ChangeLog: 2018-11-13 Iain Buclaw * update-copyright.py

[PATCH, libphobos] Committed remove unused internal modules

2018-11-18 Thread Iain Buclaw
Hi, This patch removes two x86-centric modules that are ignored as gdc doesn't implement the D_InlineAsm version condition. Bootstrapped and testsuite ran on x86_64-linux-gnu. Committed to trunk as r266256 -- Iain --- libphobos/ChangeLog: 2018-11-19 Iain Buclaw * src/Makefile.am

[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/ChangeLog

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. > >

[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

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

[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

[PATCH 01/14] Add D front-end (DMD) language implementation and license.

2018-09-17 Thread Iain Buclaw
This patch adds the DMD front-end proper and license (Boost) files, comprised of a lexer, parser, and semantic analyzer. ftp://ftp.gdcproject.org/patches/v4/01-v4-d-frontend-dmd.patch --- gcc/d/dmd/access.c | 670 +++ gcc/d/dmd/aggregate.h| 335 ++ gcc/d/dmd/aliasthis.c

[PATCH 04/14] Add D front-end (GDC) config, Makefile, and manpages.

2018-09-17 Thread Iain Buclaw
ftware Foundation raise + funds for GNU development. +@c man end +@end copying + +@ifinfo +@format +@dircategory Software development +@direntry +* gdc: (gdc). A GCC-based compiler for the D language +@end direntry +@end format + +@insertcopying +@end ifinfo + +@titlepage +@title The GN

[PATCH 03/14] Add D frontend (GDC) changelogs.

2018-09-17 Thread Iain Buclaw
This patch just includes all changelogs for the D front-end (GDC), going back to the dawn of time itself. --- gcc/d/ChangeLog | 332 ++ gcc/d/ChangeLog-2006 | 954 +++ gcc/d/ChangeLog-2007 | 1340 ++ gcc/d/ChangeLog-2008

[PATCH 02/14] Add D frontend (GDC) implementation.

2018-09-17 Thread Iain Buclaw
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 I can talk about more directly. For the actual code generation pass, that converts the front-end AST to GCC trees, most parts use

[PATCH 08/14] Add D2 Testsuite files.

2018-09-17 Thread Iain Buclaw
This patch adds part of the D2 testsuite, which includes D source code files that are considered compilable; files that are considered uncompilable, but should not ICE; and files that should execute on targets with crash or assertion failures.

[PATCH 06/14] Add patches for D language support in GCC proper.

2018-09-17 Thread Iain Buclaw
This patch adds D language support to GCC itself. --- gcc/ChangeLog * config/powerpcspe/powerpcspe.c (rs6000_output_function_epilogue): Support GNU D by using 0 as the language type. * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support GNU D by using 0 as the language type.

[PATCH 07/14] Add patches for D language support in GCC targets.

2018-09-17 Thread Iain Buclaw
This patch add D language support to targets of GCC itself. These are mostly used to declare pre-defined version identifiers in the D language that describe something about the target that the front-end itself is unable to obtain. Version conditions in D can be thought of as being like the

[PATCH 05/14] Add GCC configuration file changes and documentation.

2018-09-17 Thread Iain Buclaw
This patch adds the D language front-end to GCC documentation and configuration files, as described on the anatomy of a language front-end. --- ChangeLog: * Makefile.def (target_modules): Add libphobos. (flags_to_pass): Add GDC_FOR_TARGET. (dependencies): Add dependency from

[PATCH 10/14] Add GDC Testsuite files.

2018-09-17 Thread Iain Buclaw
This patch adds a further number of tests, but were added as part of fixing gdc-specific bugs. --- gcc/testsuite/gdc.dg/asan/asan.exp| 32 + gcc/testsuite/gdc.dg/asan/gdc272.d| 16 + gcc/testsuite/gdc.dg/compilable.d | 463 +

[PATCH 09/14] Add D2 Testsuite Dejagnu files.

2018-09-17 Thread Iain Buclaw
This patch adds D language support to the GCC testsuite. As well as generating the DejaGNU options for compile and link tests, handles the conversion from DMD-style compiler options to GDC. --- gcc/testsuite/gdc.test/d_do_test.exp | 404 +++ gcc/testsuite/lib/gdc-dg.exp

[PATCH 11/14] D runtime library and license.

2018-09-17 Thread Iain Buclaw
This patch adds the D runtime library and license (Boost) files. D runtime is a low level that implements the building blocks of the runtime environment, as well as C and C++ platform bindings. Many high level operations are lowered to generate calls to various functions defined in this library.

[PATCH 12/14] Add GDC/GCC builtins and runtime support (part of D runtime)

2018-09-17 Thread Iain Buclaw
This patch adds GCC builtins and runtime support for GDC compiled code. - module __entrypoint defines the C main function. Its contents are parsed and compiled in during compilation, but only if needed. - module gcc.attribute exposes GDC-specific attributes. - module gcc.backtrace

[PATCH 13/14] Add D Phobos standard library and license.

2018-09-17 Thread Iain Buclaw
This patch add the Phobos runtime library and license (Boost) files. Phobos is the standard runtime library that comes with the D language compiler. The bulk of which is comprised mostly of generic algorithms and high level primitives for D applications.

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

2018-09-17 Thread Iain Buclaw
This patch adds the configure and make files used for building D runtime and Phobos. As well as running all unittests and the testsuite. ftp://ftp.gdcproject.org/patches/v4/14-v4-d-phobos-misc.patch --- libphobos/Makefile.am |69 + libphobos/Makefile.in

[PATCH, libphobos] Committed fix modify immutable error on Solaris

2018-12-10 Thread Iain Buclaw
Hi, This is another Solaris backport from druntime 2.079, fixing a build error in the core.thread module. Bootstrapped and tested on i386-pc-solaris2.11. Committed to trunk as r266950. -- Iain --- diff --git a/libphobos/libdruntime/core/thread.d b/libphobos/libdruntime/core/thread.d index

[PATCH, libphobos] Committed added druntime bindings for sparc/solaris

2018-12-09 Thread Iain Buclaw
Hi, This patch is backported from druntime master, adding initial libdruntime bindings support for SPARC/Solaris. Though I suspect there's still plenty that's been missed out. Bootstrapped and tested on x86_64-linux-gnu, not that it checks anything except all changes are properly scoped.

[PATCH, d] Committd merge with upstream dmd

2018-12-09 Thread Iain Buclaw
Hi, This patch merges the D front-end implementation with dmd upstream e2fe2687b. Backports VRP fixes from the D front-end implementation to the C++ port, and fixes errors reported by ubsan build where the conversion from D didn't include adjusting integer suffixes from 'UL' to 'ULL', fixing

[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

[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: [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

[PATCH, PR d/89255][2/3] Replace libphobos check programs with dg-runtest

2019-03-29 Thread Iain Buclaw
there was a concern that the timeout for unittest.exp wasn't working. Assuming that the first is OK, this is a pretty obvious change. -- Iain --- libphobos/ChangeLog: 2019-03-29 Iain Buclaw PR d/89255 * configure.ac (ENABLE_SHARED, ENABLE_STATIC): Remove conditionals

[PATCH, PR d/89255][1/3] Add -fbuilding-libphobos-tests

2019-03-29 Thread Iain Buclaw
this on x86_64-linux-gnu, and all links, runs, and passes without problems. Would there be any problems in doing this with other linkers/platforms? -- Iain --- gcc/d/ChangeLog: 2019-03-29 Iain Buclaw * lang.opt (-fbuiding-libphobos-tests): Add option. * modules.cc (build_module_tree

[PATCH, PR d/89255][3/3] Parallelize the libphobos testsuite

2019-03-29 Thread Iain Buclaw
libphobos, and GCC_TEST_PARALLEL_SLOTS defaulted to 10. -- Iain --- libphobos/ChangeLog: 2019-03-29 Iain Buclaw * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove dejagnu. (RUNTEST): Remove variable. (RUNTESTDEFAULTFLAGS, check_p_subno, check_p_numbers0

Re: [PATCH 3/N] Fix GCC internal format in D front-end.

2019-04-02 Thread Iain Buclaw
On Tue, 2 Apr 2019 at 12:51, Martin Liška wrote: > > On 3/11/19 3:00 PM, Martin Liška wrote: > > On 3/11/19 2:38 PM, Jakub Jelinek wrote: > >> I think for D you need to go through Iain Buclaw, I have no idea if > >> exp->error even has the gcc internal form

[PATCH, PR d/89017] Committed fix for ICE in force_type_die, at dwarf2out.c

2019-03-20 Thread Iain Buclaw
during the prune_unused_types pass. Fixing PR d/89017. Bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r269828. -- Iain --- gcc/d/ChangeLog: 2019-03-21 Iain Buclaw PR d/89017 * d-codegen.cc (d_decl_context): Skip over template instances when

[PATCH, committed] gdc-test.exp: Remove duplicate options from permute args

2019-03-26 Thread Iain Buclaw
testsuite on x86_64-linux-gnu, and number of tests executed dropped from 30030 to 28350. Committed to trunk as r269937. -- Iain --- gcc/testsuite/ChangeLog: 2019-03-26 Iain Buclaw * gdc.test/gdc-test.exp (gdc-do-test): Sort and remove duplicate options in permute args tests

[PATCH, d] Committed merge with upstream dmd

2019-03-26 Thread Iain Buclaw
Hi, This patch merges the D front-end implementation with dmd upstream ab702e73e. Backports memory leak fix in the mangler, and introduces recognition and rejection of more C types and directives. Bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r269945. -- Iain

Re: [PATCH 2/2, d] PR d/87799 Fix build on windows hosts

2019-03-24 Thread Iain Buclaw
On Sun, 24 Mar 2019 at 12:06, Johannes Pfau wrote: > > Merge with upstream DMD 74ac873be1862090b7ec0e4a876fd1b758520359. > This fixes various MinGW host build errors in filename.c. > > Additionally provide _mkdir in d-system.h as we do not > include the windows 'direct.h' header. > I've done the

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

2019-04-06 Thread Iain Buclaw
On Sat, 6 Apr 2019 at 17:27, Matthias Klose wrote: > > On 29.03.19 23:23, Iain Buclaw wrote: > > On Mon, 18 Feb 2019 at 14:26, Matthias Klose wrote: > >> > >> > >> sorry, I didn't mean to propose to rename the option, so > >> --with-target-system-

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

2019-03-29 Thread Iain Buclaw
On Mon, 18 Feb 2019 at 14:26, Matthias Klose wrote: > > > sorry, I didn't mean to propose to rename the option, so > --with-target-system-zlib=auto sounds fine. OK, a bit belated, but here it is --with-target-system-zlib=auto. -- Iain --- ChangeLog: 2019-03-29

[PATCH, d] Committed merge with upstream dmd

2019-03-30 Thread Iain Buclaw
as r270038. -- Iain --- gcc/testsuite/ChangeLog: 2019-03-30 Iain Buclaw * gdc.test/gdc-test.exp (gdc-copy-extra): Append copied files to cleanup_extra_files. (dmd2dg): Copy additional files after test is translated. (gdc-do-test): Remove all copied files after

[PATCH PR d/88462] Committed fix for run-time SIGSEGV in ModuleInfo.flags()

2019-03-31 Thread Iain Buclaw
Hi, Patch fixes problems accessing ModuleInfo on SPARC. The current forced alignment is not at all necessary. Bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r270043. -- Iain --- gcc/d/ChangeLog: 2019-03-31 Iain Buclaw PR d/88462

[PATCH PR d/88462] Committed fix for abort in pthread_mutex_init on Solaris

2019-04-01 Thread Iain Buclaw
Hi, This patch merges the libphobos druntime library with druntime upstream d57fa1ff. Fixes alignment of internal core.thread locks that were found to be the cause of abort() being called inside pthread_mutex_init(), fixing the second part of PR d/88462. Bootstrapped and regression tested on

Re: Fix libphobos testsuite failures on Solaris

2019-02-18 Thread Iain Buclaw
On Tue, 29 Jan 2019 at 15:44, Rainer Orth wrote: > > Yet another trivial fix for a Solaris libphobos testsuite failure: > > FAIL: libphobos.shared/load.d -shared-libphobos -ldl (test for excess errors) > Excess errors: > /vol/gcc/src/hg/trunk/local/libphobos/testsuite/libphobos.shared/load.d:9:

Re: [PATCH, libphobos] Detect if qsort_r is available (PR d/88127)

2019-02-18 Thread Iain Buclaw
On Sat, 2 Feb 2019 at 11:01, Johannes Pfau wrote: > > Adds a configure test for qsort_r and use the fallback code path if > it's not available. Fixes d/88127. rt/qsort.d changes have been > pushed upstream and reviewed there: > https://github.com/dlang/druntime/pull/2480 > Bootstrapped & ran D

Re: [build] Fix libgphobos linking on Solaris 11

2019-02-18 Thread Iain Buclaw
On Tue, 27 Nov 2018 at 23:28, Rainer Orth wrote: > > As mentioned in passing in PR d/87864, libgphobos.so currently fails to > link before Solaris 11.4. Until then, you needed to link with -lsocket > -lnsl for the networking functions, in S11.4 they were merged into libc. > > To fix this, I've

Re: [PATCH] PR d/89177 - Fix unaligned access in std.digest.murmurhash

2019-03-01 Thread Iain Buclaw
On Sun, 24 Feb 2019 at 16:30, Johannes Pfau wrote: > > Backport latest murmurhash version from upstream (2.084.1). Ran gdc testsuite > on X86_64 linux and got feedback on the bugzilla this really fixes the issue. > Raise a pull request with upstream (dmd-cxx is the branch), then this is OK to

[PATCH, d] Committed merge with upstream dmd

2019-03-01 Thread Iain Buclaw
be linking to anything other than libstdc++ when extern(C++) is used. Bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r269304. -- Iain --- gcc/d/ChangeLog: 2019-03-01 Iain Buclaw * d-builtins.cc (d_init_versions): Add CppRuntime_Gcc as predefined

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

2019-02-19 Thread Iain Buclaw
On Tue, 19 Feb 2019 at 10:32, Rainer Orth wrote: > > Hi Iain, > > > On Tue, 29 Jan 2019 at 13:35, Rainer Orth > > wrote: > >> > >> With the set of libphobos Solaris patches just posted, it would become > >> possible to enable libphobos on Solaris 11/x86 by default. > >> > >> This is what this

[PATCH PR d/88958] Committed fix for ICE in walk_aliased_vdefs_1

2019-03-10 Thread Iain Buclaw
Hi, This patch merges the D front-end implementation with dmd upstream 0fc786f49, fixing PR d/88958. Bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r269557. -- Iain --- diff --git a/gcc/d/dmd/MERGE b/gcc/d/dmd/MERGE index 3f416dbfb7b..98bf8254554 100644 ---

[PATCH, PR d/89016] Committed updated fix for ICE in dmd/expression.c

2019-03-10 Thread Iain Buclaw
Hi, This patch merges the D front-end implementation with dmd upstream da26db819, backporting a supplementary fix for ICE on importing modules marked as deprecated, but with a non-string message. Bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r269560. -- Iain

Re: [testsuite] Mark gdc.dg/pr89041.d as compile test

2019-03-10 Thread Iain Buclaw
On Sun, 10 Mar 2019 at 17:52, Rainer Orth wrote: > > The new gdc.dg/pr89041.d FAILs for the non-default multilib (e.g. on > i386-pc-solaris2.11 and x86_64-pc-linux-gnu): > > +FAIL: gdc.dg/pr89041.d -O0 (test for excess errors) > +UNRESOLVED: gdc.dg/pr89041.d -O0 compilation failed to

Re: [PATCH, d/87824]: x86_64-linux multilib issues

2019-03-12 Thread Iain Buclaw
On Tue, 12 Mar 2019 at 20:57, Rainer Orth wrote: > > Hi Iain, > > > On Tue, 12 Mar 2019 at 18:27, Uros Bizjak wrote: > >> > >> Attached patch fixes libstdc++ includes for multilib d testsuite and > >> fixes runnable/cppa.d testsuite failure with 32bit multilib on > >> x86_64-linux-gnu. > >> > >>

[PATCH, d] Committed small tidy up gdc testsuite scripts

2019-03-12 Thread Iain Buclaw
. Changes tested on x86_64-linux-gnu and committed as obvious to trunk as r269632. -- Iain --- gcc/testsuite/ChangeLog: 2019-03-13 Iain Buclaw * gdc.dg/pr88957.d: Move to gdc.dg/ubsan. * gdc.dg/ubsan/ubsan.exp: New file. * lib/gdc.exp (gdc_include_flags): Remove unused target

[PATCH, PR d/87824] Committed fix for failing test gdc.test/runnable/nulltype.d

2019-03-10 Thread Iain Buclaw
This patch merges the D front-end implementation with dmd upstream fcc235e8e, fixing the failing nulltype.d test with -m32 on x86_64-linux. Bootstrapped and regression tested on x86_64-linux-gnu with RUNTESTFLAGS="--target_board=unix/\{,-m32\}". Committed to trunk as r269561. -- Iain --- diff

[PATCH, PR d/89016] Committed fix for ICE at d/dmd/expression.c:3873

2019-03-07 Thread Iain Buclaw
Hi, This patch merges the D front-end implementation with dmd upstream d517c0e6a, fixing the ICE reported in PR d/89016. Bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r269465. -- Iain diff --git a/gcc/d/dmd/MERGE b/gcc/d/dmd/MERGE index 97aa40d1ace..3f416dbfb7b

[PATCH, PR d/89041] Committed fix for ICE in get_frame_for_symbol

2019-03-09 Thread Iain Buclaw
Hi, This patch changes an assertion into an early return condition, handling the case of delegate literals defined at module scope. Fixing PR d/89041. Bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r269533. -- Iain --- gcc/d/ChangeLog: 2019-03-09 Iain Buclaw

Re: [RFC] D support for S/390

2019-03-20 Thread Iain Buclaw
On Wed, 20 Mar 2019 at 10:57, Robin Dapp wrote: > > Hi, > > the unicode tables in std.internal.unicode_tables are apparently auto > generated and loaded at (libphobos) compile time. They are also in > little endian format. Is the tool to generate them available somewhere? > I wanted to start

Re: [RFC] D support for S/390

2019-03-20 Thread Iain Buclaw
On Wed, 20 Mar 2019 at 12:27, Iain Buclaw wrote: > > On Wed, 20 Mar 2019 at 10:57, Robin Dapp wrote: > > > > Hi, > > > > the unicode tables in std.internal.unicode_tables are apparently auto > > generated and loaded at (libphobos) compile time. They

Re: [RFC] D support for S/390

2019-03-19 Thread Iain Buclaw
On Tue, 19 Mar 2019 at 13:07, Robin Dapp wrote: > > Hi, > > > Alignment is written to TypeInfo, I don't think it should ever be > > zero. That would mean that it isn't being generated by the compiler, > > or read by the library correctly, so something else is amiss. > > it took me a while to see

Re: [RFC] D support for S/390

2019-03-18 Thread Iain Buclaw
On Fri, 15 Mar 2019 at 16:50, Robin Dapp wrote: > > Hi, > > 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 yet go through the > code systematically and add a version(SystemZ) in every place where it > might be needed

[PATCH, PR d/87866] Committed redefine realpath as lrealpath in dmd front-end

2019-03-12 Thread Iain Buclaw
d to trunk as r269619. -- Iain --- gcc/d/ChangeLog: 2019-03-12 Iain Buclaw PR d/87866 * d-system.h (realpath): Redefine as lrealpath. --- diff --git a/gcc/d/d-system.h b/gcc/d/d-system.h index c32825d4ad1..efece15f3bc 100644 --- a/gcc/d/d-system.h +++ b/gcc/d/d-system.h @@ -3

[PATCH, d] Committed merge with upstream dmd

2019-03-12 Thread Iain Buclaw
++) integration improves in latter versions of the D front-end. Bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r269611. -- Iain --- gcc/d/ChangeLog: 2019-03-12 Iain Buclaw * d-lang.cc (d_init_options): Set global.params.cplusplus to C++14. * d

Re: [PATCH, d/87824]: x86_64-linux multilib issues

2019-03-12 Thread Iain Buclaw
On Tue, 12 Mar 2019 at 18:27, Uros Bizjak wrote: > > Attached patch fixes libstdc++ includes for multilib d testsuite and > fixes runnable/cppa.d testsuite failure with 32bit multilib on > x86_64-linux-gnu. > > > 2019-03-12 Uroš Bizjak > > PR d/87824 > * lib/gdc.exp

[PATCH, PR d/88957] Committed fix for ICE in tree_could_trap_p with -fsanitize=undefined

2019-03-12 Thread Iain Buclaw
. -- Iain --- gcc/d/ChangeLog: 2019-03-13 Iain Buclaw PR d/88957 * expr.cc (ExprVisitor::visit(VectorArrayExp)): New override. gcc/testsuite/ChangeLog: 2019-03-13 Iain Buclaw PR d/88957 * gdc.dg/pr88957.d: New test. * gdc.dg/simd.d: Add new vector

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

2019-02-17 Thread Iain Buclaw
On Sat, 16 Feb 2019 at 13:44, Matthias Klose wrote: > > On 12.02.19 21:54, Iain Buclaw wrote: > > On Tue, 12 Feb 2019 at 10:40, Richard Biener > > wrote: > >> > >> On Sat, Feb 9, 2019 at 10:37 AM Iain Buclaw wrote: > >>> > >>>

[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.

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 > > > w

[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

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