[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 + gcc/testsuite/gdc.dg/dg.ex

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

[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. ftp://ftp.gdcproject.org/patches/v4/13-v4-

[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

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

2018-09-19 Thread Iain Buclaw
On 18 September 2018 at 02:31, Iain Buclaw wrote: > 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 > I've dug up the history of what

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

2018-09-19 Thread Iain Buclaw
On 18 September 2018 at 02:33, 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 I can talk about more directly. > > For the actual code

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

2018-09-19 Thread Iain Buclaw
On 18 September 2018 at 02:34, Iain Buclaw wrote: > This patch just includes all changelogs for the D front-end (GDC), > going back to the dawn of time itself. > https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00734.html This was previously ok'd, if I understand right. Iain.

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

2018-09-19 Thread Iain Buclaw
On 18 September 2018 at 02:34, Iain Buclaw wrote: > > This patch adds the D frontend language configure make files, as described on > the anatomy of a language front-end. > This is where the last conversation ended up. https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00612.html I

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

2018-09-19 Thread Iain Buclaw
On 18 September 2018 at 02:35, Iain Buclaw wrote: > > This patch adds the D language front-end to GCC documentation and > configuration files, as described on the anatomy of a language front-end. > It looks like this was previously ok'd, with reason as it's mostly auto

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

2018-09-19 Thread Iain Buclaw
On 18 September 2018 at 02:35, Iain Buclaw wrote: > > This patch adds D language support to GCC itself. > Likewise, this was approved so long as all prerequisites have been approved also. https://gcc.gnu.org/ml/gcc-patches/2017-09/msg00609.html Iain.

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

2018-09-19 Thread Iain Buclaw
On 18 September 2018 at 02:35, Iain Buclaw wrote: > > This patch add D language support to targets of GCC itself. > > These are used to declare pre-defined version identifiers in the D > language that describe something about the target that the front-end > itself is unable t

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

2018-09-19 Thread Iain Buclaw
On 18 September 2018 at 02:36, Iain Buclaw wrote: > > 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. https://gcc.gnu.org/ml/gcc-

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

2018-09-19 Thread Iain Buclaw
On 18 September 2018 at 02:37, Iain Buclaw wrote: > 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 ar

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

2018-09-19 Thread Iain Buclaw
On 18 September 2018 at 02:37, Iain Buclaw wrote: > 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. > - modul

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

2018-09-19 Thread Iain Buclaw
On 18 September 2018 at 02:38, Iain Buclaw wrote: > 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 pr

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

2018-09-21 Thread Iain Buclaw
On 21 September 2018 at 22:04, Mike Stump wrote: > On Sep 19, 2018, at 1:36 PM, Iain Buclaw wrote: >> >> On 18 September 2018 at 02:36, Iain Buclaw wrote: >>> >>> This patch adds D language support to the GCC testsuite. >>> >>> As well as

Re: [PATCH 08/14] Add D2 Testsuite files.

2018-09-21 Thread Iain Buclaw
On 21 September 2018 at 22:54, Mike Stump wrote: > On Sep 17, 2018, at 5:36 PM, Iain Buclaw wrote: >> >> This patch adds part of the D2 testsuite, which includes D source code >> files that are considered compilable; files that are considered >> uncompilable, but sho

Re: [PATCH 08/14] Add D2 Testsuite files.

2018-09-22 Thread Iain Buclaw
On 22 September 2018 at 15:23, Florian Weimer wrote: > * 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 shou

Re: [PATCH 08/14] Add D2 Testsuite files.

2018-09-24 Thread Iain Buclaw
On 24 September 2018 at 20:28, Mike Stump wrote: > On Sep 21, 2018, at 2:38 PM, Iain Buclaw wrote: >> >> On 21 September 2018 at 22:54, Mike Stump wrote: >>> On Sep 17, 2018, at 5:36 PM, Iain Buclaw wrote: >>>> >>>> This patch adds part o

[PATCH] pointer to integer conversion.

2013-11-23 Thread Iain Buclaw
Hi, This is a one line patch to an unexpected behaviour noticed from ARM and x86 when testing the D frontend. --- import core.stdc.stdio; import core.stdc.stdint; void test(void* p) { uint64_t pl = cast(uint64_t)p; uint64_t p2 = cast(uint64_t)cast(int)p; int tmp = cast(int)p; uin

Re: [PATCH] pointer to integer conversion.

2013-11-23 Thread Iain Buclaw
On 23 November 2013 10:46, Andreas Schwab wrote: > Iain Buclaw writes: > >> Currently, GCC is converting the expression to a signed integer >> instead of an unsigned one. Does a test for the testsuite need to be >> written for this? > > The C standard makes this i

[PATCH] Use DW_LANG_D for D

2013-11-24 Thread Iain Buclaw
Hi, This patches gen_compile_unit_die to use the DW_LANG_D DWARF language code for D. Is in relation to some other D language fixes that are going to be submitted to gdb. Regards Iain. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 3448ec4..ddbf5de 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dw

Re: [PATCH] Add D demangling support to libiberty

2014-10-14 Thread Iain Buclaw
On 14 October 2014 15:28, Ian Lance Taylor wrote: > On Tue, Oct 14, 2014 at 7:12 AM, Joel Brobecker wrote: >> >>> libiberty/ChangeLog >>> 2014-08-05 Iain Buclaw >>> >>> * Makefile.in (CFILES): Add d-demangle.c. >>> (REQ

Re: [PATCH] Add D demangling support to libiberty

2014-10-14 Thread Iain Buclaw
On 14 October 2014 18:07, Joel Brobecker wrote: >> I've just seen this, so I'll repeat what I've said in gdb patches too. >> >> The call to strtold is only needed to decode templates which have a >> floating point value encoded inside. This value may or may not have a >> greater than double precis

[PATCH 2/7] [D] libiberty: Fail if reached end of symbol string

2015-05-13 Thread Iain Buclaw
If a symbol that has so far been valid abruptly ends then we will want to fail the process rather than silently succeed. --- libiberty/ChangeLog 2015-05-13 Iain Buclaw * d-demangle.c (dlang_call_convention): Return NULL if have reached the end of the symbol, but expected more

[PATCH 1/7] [D] libiberty: Correctly decode white or non-printable characters

2015-05-13 Thread Iain Buclaw
or other non-printable characters should be represented as escape sequences. --- libiberty/ChangeLog: 2015-05-13 Iain Buclaw * d-demangle.c (dlang_parse_string): Represent embedded whitespace or non-printable characters as hex or escape sequences. * testsuite/d-demangle-expected

[PATCH 3/7] [D] libiberty: Include type modifiers in demangled function symbols

2015-05-13 Thread Iain Buclaw
Log: 2015-05-13 Iain Buclaw * d-demangle.c (dlang_type_modifiers): New function. (dlang_type_modifier_p): New function. (dlang_call_convention_p): Ignore any kind of type modifier. (dlang_type): Handle and emit the type modifier after delegate types. (dlang_parse_symbol):

[PATCH 5/7] [D] libiberty: Add support for return parameter and attributes

2015-05-13 Thread Iain Buclaw
libiberty/ChangeLog: 2015-05-13 Iain Buclaw * d-demangle.c (dlang_attributes): Handle return attributes, ignoring return parameters in the mangled string. Return NULL if have encountered an unknown attribute. (dlang_function_args): Handle return parameters in the mangled strin

[PATCH 4/7] [D] libiberty: Check symbol length before using strncmp

2015-05-13 Thread Iain Buclaw
This addresses a subtle logic error, noticed when I was in the middle of testing out some other tightening up of parsing checks. --- libiberty/ChangeLog 2015-05-13 Iain Buclaw * d-demangle.c (dlang_identifier): Check encoded length of identifier to verify strncmp matches entire string

[PATCH 6/7] [D] libiberty: Improve support for demangling D2 templates

2015-05-13 Thread Iain Buclaw
In my tests, this gives the demangler near-complete support. Of a sample of about 75k symbols pulled from the standard library unittester, all but 20 were successfully parsed. --- libiberty/ChangeLog: 2015-05-13 Iain Buclaw * d-demangle.c (dlang_symbol_kinds): New enum

[PATCH 7/7] [D] libiberty: Add support for cent and ucent types

2015-05-13 Thread Iain Buclaw
The next version of D adds support for cent and ucent for platforms that are able to handle them natively. This adds support for demangling them. --- libiberty/ChangeLog: 2015-05-13 Iain Buclaw * d-demangle.c (dlang_type): Handle cent and ucent types. * testsuite/d-demangle-expected

Re: [PATCH 3/7] [D] libiberty: Include type modifiers in demangled function symbols

2015-05-13 Thread Iain Buclaw
On 13 May 2015 at 10:51, Iain Buclaw wrote: > Like C++ const and volatile, in D mangled symbols can exist modifiers > that represent the const, immutable, inout and shared-ness of the > 'this' parameter. > > This information should be written out in the demangled s

Re: [PATCH 3/7] [D] libiberty: Include type modifiers in demangled function symbols

2015-05-13 Thread Iain Buclaw
On 13 May 2015 at 22:34, Iain Buclaw wrote: > On 13 May 2015 at 10:51, Iain Buclaw wrote: >> Like C++ const and volatile, in D mangled symbols can exist modifiers >> that represent the const, immutable, inout and shared-ness of the >> 'this' parameter. >>

[PATCH 8/7] [D] libiberty: Add support for specialized template parameters

2015-05-13 Thread Iain Buclaw
One last thing that was added in the next D version's ABI (and I subsequently missed). This is a trivial patch to just ignore the new mangle symbol. --- libiberty/ChangeLog: 2015-05-13 Iain Buclaw * d-demangle.c (dlang_template_args): Skip over specialized template paramete

Re: [PATCH 2/7] [D] libiberty: Fail if reached end of symbol string

2015-05-14 Thread Iain Buclaw
On 14 May 2015 at 14:58, Jeff Law wrote: > On 05/13/2015 02:51 AM, Iain Buclaw wrote: >> >> If a symbol that has so far been valid abruptly ends then we will want >> to fail the process rather than silently succeed. >> >> --- >> libiberty/ChangeLog >&g

Re: [PATCH 6/7] [D] libiberty: Improve support for demangling D2 templates

2015-05-14 Thread Iain Buclaw
On 14 May 2015 at 15:24, Jeff Law wrote: > On 05/13/2015 02:51 AM, Iain Buclaw wrote: >> >> In my tests, this gives the demangler near-complete support. Of a >> sample of about 75k symbols pulled from the standard library >> unittester, all but 20 were successfully par

Re: [PATCH 6/7] [D] libiberty: Improve support for demangling D2 templates

2015-05-14 Thread Iain Buclaw
On 14 May 2015 at 15:24, Jeff Law wrote: > On 05/13/2015 02:51 AM, Iain Buclaw wrote: >> >> In my tests, this gives the demangler near-complete support. Of a >> sample of about 75k symbols pulled from the standard library >> unittester, all but 20 were successfully par

Re: [PATCH 2/7] [D] libiberty: Fail if reached end of symbol string

2015-05-14 Thread Iain Buclaw
On 14 May 2015 at 16:51, Jeff Law wrote: > On 05/14/2015 07:36 AM, Iain Buclaw wrote: >> >> On 14 May 2015 at 14:58, Jeff Law wrote: >>> >>> On 05/13/2015 02:51 AM, Iain Buclaw wrote: >>>> >>>> >>>> If a symbol that has so fa

MAINTAINERS (Write After Approval): Add myself.

2015-05-16 Thread Iain Buclaw
Adding myself as Write After Approval. Regards Iain --- ChangeLog | 4 MAINTAINERS | 1 + 2 files changed, 5 insertions(+) --- ChangeLog +++ ChangeLog @@ -1,3 +1,7 @@ +2015-05-16 Iain Buclaw + + * MAINTAINERS (Write After Approval): Add myself. + 2015-05-11 Paulo Matos

Re: [PATCH 6/7] [D] libiberty: Improve support for demangling D2 templates

2015-05-16 Thread Iain Buclaw
On 14 May 2015 at 19:47, Joseph Myers wrote: > On Thu, 14 May 2015, Iain Buclaw wrote: > >> On another note, I've found out why the remaining 20 symbols in my 75k >> sample failed. They don't fail at all! It's just that they were all >> greater than 33,000

Re: [PATCH 6/7] [D] libiberty: Improve support for demangling D2 templates

2015-05-16 Thread Iain Buclaw
On 14 May 2015 at 17:30, Iain Buclaw wrote: > On 14 May 2015 at 15:24, Jeff Law wrote: >> On 05/13/2015 02:51 AM, Iain Buclaw wrote: >>> >>> In my tests, this gives the demangler near-complete support. Of a >>> sample of about 75k symbols pulled from the stan

[PATCH] D demangle: Correctly decode white or non-printable characters

2015-05-09 Thread Iain Buclaw
, whitespace or other non-printable characters should be represented as escape sequences. --- libiberty/ChangeLog: 2015-05-09 Iain Buclaw * d-demangle.c (dlang_parse_string): Represent embedded whitespace or non-printable characters as hex or escape sequences. * testsuite/d-demangle

[PATCH] D demangle: Include type modifiers in demangled function symbols

2015-05-09 Thread Iain Buclaw
Log: 2015-05-09 Iain Buclaw * d-demangle.c (dlang_type_modifiers): New function. (dlang_type_modifier_p): New function. (dlang_call_convention_p): Ignore any kind of type modifier. (dlang_parse_symbol): Emit the type modifier after the symbol. * testsuite/d-demangle-exp

[PATCH] D demangle: Check identifier length before using strncmp

2015-05-10 Thread Iain Buclaw
before finally returning success at the top level. This will be followed up with a patch to address this shortly, but until then. This addresses a subtle logic error. --- libiberty/ChangeLog 2015-05-10 Iain Buclaw * d-demangle.c (dlang_identifier): Check encoded length of identifier to

[PATCH] D demangle: Add support for Nj and Nk symbols in mangled string

2015-05-10 Thread Iain Buclaw
libiberty/ChangeLog: 2015-05-10 Iain Buclaw * d-demangle.c (dlang_attributes): Handle Nj and ignore Nk symbol in mangled string. Return NULL if have encountered an unknown attribute. (dlang_function_args): Handle Nk symbol in mangled string. * testsuite/d-demangle-expected: Ad

Re: [PATCH] Commonize anon-name generation

2019-05-24 Thread Iain Buclaw
On Fri, 24 May 2019 at 16:34, Nathan Sidwell wrote: > > Currently gcc/tree.c exports an anonymous name format string, and a > predicate to detect identifiers of that form. The C++ and D FEs use > those functions to create and check anonymous names. > > That seems a little duplicative. This patch

Re: [PATCH][D] Fix PR90778

2019-06-07 Thread Iain Buclaw
On Fri, 7 Jun 2019 at 14:37, Richard Biener wrote: > > > The following fixes random debug info differences I was experiencing > building the D runtime. The issue is ordering BLOCK_VARS after > a hash-table traversal order which is susceptible to address-space > randomization differences. > > Boot

[PATCH, d] Committed merge with upstream dmd 6e44734cc

2019-06-16 Thread Iain Buclaw
(r272352) Bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk. -- Iain --- 2019-06-16 Iain Buclaw gcc/d/ChangeLog: PR d/90559 * d-target.cc (Target::_init): Reduce max static data size to INT_MAX. PR d/90651 * typeinfo.cc

[PATCH, PR d/90603] Committed fix for ICE in functionParameters

2019-06-16 Thread Iain Buclaw
Hi, This patch merges the dmd frontend implementation with upstream dmd 792f0fdf2. Backports semantic pass refactoring, fixing a number of ICEs in handling forward or recursively referenced declarations. Bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r272366 --

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

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

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 o

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] 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 htt

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

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 sco

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

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

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 (some

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 t

[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 x86_64-linux-gnu

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

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

Re: [committed] : Enable building pa-d.c on all hppa targets

2018-12-31 Thread Iain Buclaw
On Sat, 29 Dec 2018 at 19:19, John David Anglin wrote: > > The attached patch enables building pa-c.d on all hppa targets. Tested > on hppa64-linux-gnu, > hppa64-hp-hpux11.11 and hppa2.0w-hp-hpux11.11. > > https://gcc.gnu.org/ml/gcc-testresults/2018-12/msg03264.html > https://gcc.gnu.org/ml/gcc-t

[PATCH, PR d/90893] Committed fix for ODR violation in d/runtime.cc

2019-08-09 Thread Iain Buclaw
Hi, This patch renames libcall_type to d_libcall_type, fixing PR d/90893. Bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r274249. -- Iain --- gcc/d/ChangeLog: PR d/90893 * runtime.cc (enum libcall_type): Rename to... (enum d_libcall_type)

[PATCH, PR d/91238] Committed fix for ICE in add_expr, at tree.c:7794

2019-08-10 Thread Iain Buclaw
Hi, This patch fixes an ICE in the D compiler, where certain kinds of lowered code mean the address of a CALL_EXPR is required. When that happens, use a TARGET_EXPR to hold the result, and take the address of that instead. Bootstrapped and regression tested on x86_64-linux-gnu. Committed to tru

[PATCH, PR d/90601] Committed fix for ICE: gimplification failed (gimplify.c at 13436)

2019-08-10 Thread Iain Buclaw
Hi, The expression that caused the ICE ++(a += 1.0); The D front-end rewrites and applies implicit type conversions so the expression gets simplified as (int)((double) a += 1.0) += 1 The codegen pass would subsequently generate the following invalid code (int)(double)

[PATCH, PR d/90446] Committed fix for segfault in build_function_type at gcc/tree.c:8539

2019-08-21 Thread Iain Buclaw
Hi, This patch fixes a segmentation fault in the D front-end when handling built-in types that are PSImode. D does not have the notion of integer types to be of any size other than the fixed-sized byte, short, int, long, and cent types, however integer types with non-standard sizes are still matc

[PATCH, PR d/90445] Committed fix for ICE in d_build_c_type_nodes, at d/d-builtins.cc:783

2019-08-21 Thread Iain Buclaw
Hi, This patch fixes another ICE in the D front-end that occurred on targets where SIZE_TYPE was unhandled by d_build_c_type_nodes. Now signed_type_for() is used to set signed_size_type_node, and (u)intmax_type_node is determined by UINTMAX_TYPE. Bootstrapped and regression tested the D testsuit

[PATCH, d] Committed merge with upstream dmd 375ed10aa

2019-08-21 Thread Iain Buclaw
Hi, This patch merges the dmd frontend implementation with upstream dmd 375ed10aa. This allows the frontend to be able to compile on targets where the pointer size is 16-bits. Bootstrapped and regression tested the D testsuite on x86_64-linux-gnu, with further checking done on msp430-elf cross-c

[PATCH, PR d/88722] Partially fix ICE: in register_moduleinfo, at d/modules.cc:40

2019-08-21 Thread Iain Buclaw
Hi, This patch turns an ICE into a sorry() error. Not marking the PR as fixed, as an implementation of ModuleInfo code generation should be worked out when named section support is not present on the target. Bootstrapped and regression tested the D testsuite on x86_64-linux-gnu, with further che

[PATCH PR d/91339] Committed merge with upstream dmd b37a537d3

2019-08-21 Thread Iain Buclaw
Hi, This patch merges the dmd frontend implementation with upstream dmd b37a537d3. Fixes PR d/91339, in which an error: cannot find source code for runtime library file 'object.d' occurred when the path contained a '~'. Bootstrapped and regression tested the D testsuite on x86_64-linux-gnu. Com

[PATCH, libphobos] Committed merge with upstream phobos 66ae77ac3

2019-08-21 Thread Iain Buclaw
Hi, This patch merges the libphobos library with upstream phobos 66ae77ac3. Finishes off build support for phobos on musl targets. Bootstrapped and regression tested on x86_64-linux-gnu and x86_64-linux-musl. Committed to trunk as r274770. -- Iain --- diff --git a/libphobos/src/MERGE b/libphob

[PATCH, PR d/90444] Committed fix for ICE in d_init_builtins, at d/d-builtins.cc:1121

2019-08-21 Thread Iain Buclaw
Hi, This patch fixes an ICE in the D front-end that occurred in some specific targets where va_list is an anonymous RECORD_TYPE, such as mips -mabi=eabi. These are now built as its equivalent D type, and exposed in the gcc.builtins module. Bootstrapped and regression tested the D testsuite on x8

Re: [PATCH] [LIBPHOBOS] Fix multi-lib RUNTESTFLAGS handling

2019-09-03 Thread Iain Buclaw
On Tue, 3 Sep 2019 at 08:10, Bernd Edlinger wrote: > > Hi, > > > I've noticed that testing libphobos fails for multi-lib configs: > > $ make check-target-libphobos RUNTESTFLAGS="--target_board=unix\{-m32,\}" > > fails for every 32bit execution, because the host libgcc_s.so is used which > is not t

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

2018-10-14 Thread Iain Buclaw
On 14 October 2018 at 17:29, Richard Sandiford wrote: > [Sorry if this turns out to do be a dup] > > Iain Buclaw writes: >> On 18 September 2018 at 02:33, Iain Buclaw wrote: >>> This patch adds the D front-end implementation, the only part of the >>> compiler

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

2018-10-15 Thread Iain Buclaw
On Mon, 15 Oct 2018 at 16:19, David Malcolm wrote: > > On Tue, 2018-09-18 at 02:33 +0200, 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,

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

2018-10-18 Thread Iain Buclaw
On Tue, 16 Oct 2018 at 19:01, Richard Sandiford wrote: > > Iain Buclaw writes: > > diff --git a/libphobos/d_rules.am b/libphobos/d_rules.am > > new file mode 100644 > > index 000..b16cf5052d2 > > --- /dev/null > > +++ b/libphobos/d_rules.am > >

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

2018-10-19 Thread Iain Buclaw
On Tue, 16 Oct 2018 at 17:28, Richard Sandiford wrote: > > Iain Buclaw writes: > > diff --git a/gcc/Makefile.in b/gcc/Makefile.in > > index 4b7cec82382..0b2daa320c3 100644 > > --- a/gcc/Makefile.in > > +++ b/gcc/Makefile.in > > @@ -2496,6 +2525,7 @@ s-t

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

2018-10-20 Thread Iain Buclaw
On Sat, 20 Oct 2018 at 10:34, Richard Sandiford wrote: > > Iain Buclaw writes: > > On Tue, 16 Oct 2018 at 17:28, Richard Sandiford > > wrote: > >> > >> Iain Buclaw writes: > >> > diff --git a/gcc/Makefile.in b/gcc/Makefile.in > >>

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

2018-10-20 Thread Iain Buclaw
On Sat, 20 Oct 2018 at 11:03, Richard Sandiford wrote: > > Iain Buclaw writes: > > On 14 October 2018 at 17:29, Richard Sandiford > > wrote: > >> [Sorry if this turns out to do be a dup] > >> > >> Iain Buclaw writes: > >>> +/* Hel

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

2018-10-20 Thread Iain Buclaw
On Sat, 20 Oct 2018 at 11:03, Richard Sandiford wrote: > > Iain Buclaw writes: > > On 14 October 2018 at 17:29, Richard Sandiford > > wrote: > >> [Sorry if this turns out to do be a dup] > >> > >> Iain Buclaw writes: > >>> +/* Clea

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

2018-10-20 Thread Iain Buclaw
On Tue, 16 Oct 2018 at 11:48, Richard Sandiford wrote: > > Iain Buclaw writes: > > +/* The LHS expression could be an assignment, to which it's operation > > gets > > + lost during gimplification. */ > > +if (TREE_CODE (lhs) == MODIFY

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

2018-10-21 Thread Iain Buclaw
On Wed, 19 Sep 2018 at 20:46, Iain Buclaw wrote: > > On 18 September 2018 at 02:31, Iain Buclaw wrote: > > This patch adds the DMD front-end proper and license (Boost) files, > > comprised of a lexer, parser, and semantic analyzer. > > > > ftp://ftp.gdcproject.o

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

2018-10-21 Thread Iain Buclaw
On Sat, 20 Oct 2018 at 11:03, Richard Sandiford wrote: > > Iain Buclaw writes: > > On 14 October 2018 at 17:29, Richard Sandiford > > wrote: > >> [Sorry if this turns out to do be a dup] > >> > >> Iain Buclaw writes: > >>> +/* Build no

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

2018-10-21 Thread Iain Buclaw
On Tue, 16 Oct 2018 at 11:31, Richard Sandiford wrote: > > I'll pretend to be a doc reviewer... > > Iain Buclaw writes: > > +@page > > +@vskip 0pt plus 1filll > > +Published by the Free Software Foundation @* > > +51 Franklin Street, Fifth Floor@* >

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

2018-10-21 Thread Iain Buclaw
On Wed, 19 Sep 2018 at 22:21, Iain Buclaw wrote: > > On 18 September 2018 at 02:35, Iain Buclaw wrote: > > > > This patch adds D language support to GCC itself. > > > > Likewise, this was approved so long as all prerequisites have been > approved also. > >

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

2018-10-21 Thread Iain Buclaw
On Tue, 16 Oct 2018 at 17:28, Richard Sandiford wrote: > > Iain Buclaw writes: > > diff --git a/gcc/Makefile.in b/gcc/Makefile.in > > index 4b7cec82382..0b2daa320c3 100644 > > --- a/gcc/Makefile.in > > +++ b/gcc/Makefile.in > > @@ -2496,6 +2525,7 @@ s-t

Re: [PATCH 08/14] Add D2 Testsuite files.

2018-10-21 Thread Iain Buclaw
On Tue, 25 Sep 2018 at 00:58, Iain Buclaw wrote: > > On 24 September 2018 at 20:28, Mike Stump wrote: > > On Sep 21, 2018, at 2:38 PM, Iain Buclaw wrote: > >> > >> On 21 September 2018 at 22:54, Mike Stump wrote: > >>> On Sep 17, 2018, at 5:36 PM, Ia

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

2018-10-21 Thread Iain Buclaw
On Fri, 21 Sep 2018 at 21:59, Mike Stump wrote: > > Ok. Richard requested that all tests use issue links rather than numbers so as not to confuse with gcc's bugzilla tracker. Posting just the patch overlay to original that applies just that. Regards -- Iain --- 09-v4v5-d-testsuite-dejagnu.pa

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

2018-10-21 Thread Iain Buclaw
On Wed, 19 Sep 2018 at 22:45, Iain Buclaw wrote: > > On 18 September 2018 at 02:37, Iain Buclaw wrote: > > This patch adds GCC builtins and runtime support for GDC compiled code. > > > > - module __entrypoint defines the C main function. Its contents are > >

Re: [PATCH 10/14] Add GDC Testsuite files.

2018-10-21 Thread Iain Buclaw
On Fri, 21 Sep 2018 at 22:47, Mike Stump wrote: > > On Sep 17, 2018, at 5:37 PM, Iain Buclaw wrote: > > > > This patch adds a further number of tests, but were added as part of > > fixing gdc-specific bugs. > > Ok. Trivial, and self-review applicable. Attaching D

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