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

2018-10-21 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 02/14] Add D frontend (GDC) implementation.

2018-10-23 Thread Iain Buclaw
On Tue, 23 Oct 2018 at 15:48, Richard Sandiford wrote: > > Iain Buclaw writes: > > I'm just going to post the diff since the original here, just to show > > what's been done since review comments. > > > > I think I've covered all that's been a

[PATCH, committed] Add self as maintainer of D front-end and libphobos

2018-10-23 Thread Iain Buclaw
David Edelsohn wrote: > > I am pleased to announce that the GCC Steering Committee has > accepted the D Language front-end and runtime for inclusion in GCC > and appointed Iain Buclaw as maintainer. > > The patches still require approval by a Global Reviewer.

[PATCH, committed] Remove self from write after approval

2018-10-23 Thread Iain Buclaw
As I'm now listed under Language Front Ends Maintainers. Regards -- Iain --- ChangeLog: 2018-10-23 Iain Buclaw * MAINTAINERS (Write After Approval): Remove myself. --- diff --git a/MAINTAINERS b/MAINTAINERS index 55c4663f4d2..d9ecc9f5580 100644 --- a/MAINTAINERS +++ b/MAINTA

Re: Is the D frontend good to go? (was Re: [PATCH 02/14] Add D frontend (GDC) implementation.)

2018-10-25 Thread Iain Buclaw
On Thu, 25 Oct 2018 at 15:06, David Malcolm wrote: > > On Tue, 2018-10-23 at 19:21 +0200, Iain Buclaw wrote: > > On Tue, 23 Oct 2018 at 15:48, Richard Sandiford > > wrote: > > > > > > Iain Buclaw writes: > > > > I'm just going to post t

Re: Is the D frontend good to go? (was Re: [PATCH 02/14] Add D frontend (GDC) implementation.)

2018-10-28 Thread Iain Buclaw
On Fri, 26 Oct 2018 at 11:02, Richard Biener wrote: > > On Thu, Oct 25, 2018 at 4:13 PM Iain Buclaw wrote: > > > > On Thu, 25 Oct 2018 at 15:06, David Malcolm wrote: > > > > > > On Tue, 2018-10-23 at 19:21 +0200, Iain Buclaw wrote: > > > >

[PATCH] xstormy: Set tm_d_file in config.gcc

2018-10-29 Thread Iain Buclaw
G_TYPE when building with --enable-languages=d. There is no library support, but the compiler works well enough. OK for trunk? -- Iain --- gcc/ChangeLog: 2018-10-29 Iain Buclaw * config.gcc (xstormy16-*-elf): Set tm_d_file. --- diff --git a/gcc/config.gcc b/gcc/config.gcc index 93dc

Re: Fix build of the D frontend on the Hurd and KFreeBSD

2018-10-29 Thread Iain Buclaw
On Mon, 29 Oct 2018 at 12:51, Matthias Klose wrote: > > Fix build of the D frontend on the Hurd and KFreeBSD. Where should these > changes go, when they are not yet applied upstream? > > Ok to commit? > > Matthias > Thanks, I can send a patch to the github repository upstream. I'll do a sync o

Re: Fix D compilation on Solaris

2018-10-30 Thread Iain Buclaw
On Tue, 30 Oct 2018 at 14:13, Rainer Orth wrote: > > Rainer Orth writes: > > > * On sparc, I didn't get that far, unfortunately: as I mentioned, many > > compilations die with SIGBUS: > > > > libtool: compile: /var/gcc/regression/trunk/11.5-gcc/build/./gcc/gdc > > -B/var/gcc/regression/trunk/

[PATCH, d] Disable D on systems where it is known not to work.

2018-10-30 Thread Iain Buclaw
his can be overridden if either D or libphobos was explicitly requested by configure. The guards will be loosened as I go through each target configuration. -- Iain --- ChangeLog: 2018-10-30 Iain Buclaw PR bootstrap/87788 PR d/87799 * configure: Rebuild. * configure.ac: Disable D

Re: [PATCH, d] Disable D on systems where it is known not to work.

2018-10-30 Thread Iain Buclaw
On Tue, 30 Oct 2018 at 20:50, Andreas Schwab wrote: > > On Okt 30 2018, Iain Buclaw wrote: > > > This turns off D front-end where there's been reported bootstrap > > problems that need further investigation. Also added a configure.tgt > > for libphobos to

Re: [PATCH, d] Disable D on systems where it is known not to work.

2018-10-31 Thread Iain Buclaw
On Wed, 31 Oct 2018 at 05:38, Alan Modra wrote: > > On Tue, Oct 30, 2018 at 09:07:30PM +0100, Iain Buclaw wrote: > > On Tue, 30 Oct 2018 at 20:50, Andreas Schwab wrote: > > > > > > On Okt 30 2018, Iain Buclaw wrote: > > > > > > > This turns of

Re: Fix D compilation on Solaris

2018-10-31 Thread Iain Buclaw
On Wed, 31 Oct 2018 at 10:40, Rainer Orth wrote: > > Hi Iain, > > > My first suspect here would be 'struct UnionExp', see d/dmd/expression.h > > > > Upstream dmd use a poor man's alignment, from what I recall to be > > compatible with the dmc compiler. > > > > // Ensure that the union is s

Re: Fix D compilation on Solaris

2018-10-31 Thread Iain Buclaw
On Wed, 31 Oct 2018 at 10:43, Rainer Orth wrote: > > Hi Iain, > > >> My first suspect here would be 'struct UnionExp', see d/dmd/expression.h > >> > >> Upstream dmd use a poor man's alignment, from what I recall to be > >> compatible with the dmc compiler. > >> > >> // Ensure that the unio

[PATCH, d] Commited fix for PR 87825

2018-10-31 Thread Iain Buclaw
Hi, This fixes build for profiledbootstrap when D is enabled. Commited as obvious. -- Iain --- gcc/d/ChangeLog: 2018-10-31 Iain Buclaw PR d/87825 * Make-lang.in (d/idgen) Link with BUILD_LINKERFLAGS. (d/impcvgen): Likewise. --- diff --git a/gcc/d/Make-lang.in b/gcc/d/Make

[PATCH, libphobos] Fix libgphobos.spec in the wrong place with --enable-version-specific-runtime-libs

2018-10-31 Thread Iain Buclaw
Hi, This adds --enable-version-specific-runtime-libs configure option to libphbos. Also uncovered that MULTISUBDIR wasn't being set correctly when this option was enabled. Built and checked with make install-target-libphobos. Ok for trunk? -- Iain --- libphobos/ChangeLog: 2018-11-01

Re: [PATCH, d] Disable D on systems where it is known not to work.

2018-10-31 Thread Iain Buclaw
On Wed, 31 Oct 2018 at 22:56, Joseph Myers wrote: > > On Wed, 31 Oct 2018, Iain Sandoe wrote: > > > maybe if building D .. then libphobos should be automatic > > (i.e. the opt-in/out for the targets under development is to choose to > > build/not build D explicitly)? > > > > [ that would avoid hav

Re: [PATCH] Fix simd.d/compilable.d tests on i686-linux (PR d/87824)

2018-11-01 Thread Iain Buclaw
On Thu, 1 Nov 2018 at 11:37, Jakub Jelinek wrote: > > Hi! > > These two tests FAIL on i686-linux, because of extra warnings: > /home/jakub/src/gcc/gcc/testsuite/gdc.dg/compilable.d:441:6: warning: MMX > vector return without MMX enabled changes the ABI [-Wpsabi] > /home/jakub/src/gcc/gcc/testsuit

Re: Fix D compilation on Solaris

2018-11-03 Thread Iain Buclaw
On Wed, 31 Oct 2018 at 10:40, Rainer Orth wrote: > > Hi Iain, > > > My first suspect here would be 'struct UnionExp', see d/dmd/expression.h > > > > Upstream dmd use a poor man's alignment, from what I recall to be > > compatible with the dmc compiler. > > > > // Ensure that the union is s

Re: Fix D compilation on Solaris

2018-11-03 Thread Iain Buclaw
On Sat, 3 Nov 2018 at 23:23, Iain Buclaw wrote: > > On Wed, 31 Oct 2018 at 10:40, Rainer Orth > wrote: > > > > Hi Iain, > > > > > My first suspect here would be 'struct UnionExp', see d/dmd/expression.h > > > > > > U

Re: Fix D compilation on Solaris

2018-11-04 Thread Iain Buclaw
On Sun, 4 Nov 2018 at 17:50, Rainer Orth wrote: > > Hi Iain, > > > On Sat, 3 Nov 2018 at 23:23, Iain Buclaw wrote: > >> > >> On Wed, 31 Oct 2018 at 10:40, Rainer Orth > >> wrote: > >> > > >> > Hi Iain, > >> >

[PATCH, d] Committed merge with upstream dmd

2018-11-04 Thread Iain Buclaw
https://github.com/dlang/dmd/pull/8914 Don't pass NULL pointer as format parameter to errorSupplemental. https://github.com/dlang/dmd/pull/8916 -- Iain --- gcc/d/ChangeLog: 2018-11-05 Iain Buclaw PR d/87865 * d-system.h: New file. --- diff

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

2018-11-12 Thread Iain Buclaw
This front end was contributed by Iain Buclaw. + GCC 6.5 released [2018-10-26] Index: htdocs/readings.html === RCS file: /cvs/gcc/wwwdocs/htdocs/readings.html,v retrieving revision 1.306 diff -U 3 -r1.306 readings

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

2018-11-13 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-copyrig

[PATCH, libphobos] Committed IEEE quadruple support to core.internal.convert

2018-11-16 Thread Iain Buclaw
This patch is backported from druntime 2.083, primarily for beginning to finish off AArch64 library support, but should apply to any targets that use 128-bit IEEE long doubles. Bootstrapped and ran D2 testsuite on x86_64-linux-gnu. Commited to trunk as r266222. -- Iain --- diff --git a/libphobo

[PATCH, PR d/87824] Committed return min_align_of_type from alignsize hook.

2018-11-17 Thread Iain Buclaw
The D language expects the minimum alignment from .alignof, so on -m32 alignof should return 4 instead of 8. Bootstrapped and ran D2 testsuite on x86_64-linux-gnu with {-m64,-m32/-mno-sse/-mno-mmx,-mx32} runtest flags. Committed to trunk as r266234. --- gcc/d/ChangeLog: 2018-11-17 Iain Buclaw

[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 127849d0131..76ac5321382

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

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 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 https://bugzilla.gdcproj

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

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

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

[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

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

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 comp

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 https://github.com/dlang/druntime/pu

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

Re: [PATCH, RFC] Avoid the -D option which is not available install-sh

2019-02-18 Thread Iain Buclaw
On Sat, 16 Feb 2019 at 13:58, Bernd Edlinger wrote: > > On 2/9/19 7:21 PM, Bernd Edlinger wrote: > > On 2/9/19 7:18 PM, Jakub Jelinek wrote: > >> On Sat, Feb 09, 2019 at 06:11:00PM +, Bernd Edlinger wrote: > >>> --- libphobos/libdruntime/Makefile.am (revision 268614) > >>> +++ libphobos/

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 ad

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

2019-02-18 Thread Iain Buclaw
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 does. > > * It uses a LIBPHOBOS_SUPPORTED variable both in toplevel configure and >

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 te

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 pa

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 com

[PATCH, d] Committed merge with upstream dmd

2019-03-01 Thread Iain Buclaw
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

[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

[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 --- a/gcc

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 produce

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

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

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

2019-03-12 Thread Iain Buclaw
o 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

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 (gdc_include_flags):

[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, 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/88990] Committed fix for ICE in get_symbol_decl

2019-03-15 Thread Iain Buclaw
Hi, The patch merges the D front-end implementation with dmd upstream 8d4c876c6. Backports fix where the extern storage class flag was wrongly propagated to function scope when starting the semantic pass on the body. Bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk as

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 b

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

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 are also

[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

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

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

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

2019-03-29 Thread Iain Buclaw
is 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

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

[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] 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-0

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

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

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

Re: [PATCH] D support for RISC-V

2019-04-09 Thread Iain Buclaw
On Tue, 9 Apr 2019 at 11:53, David Abdurachmanov wrote: > > This patch has been in Fedora/RISCV for the last couple of months. > I have tested simple applications (e.g. word count example), which > worked without a problem. > > I believe Iain Buclaw did run GCC testsuite

Re: [PATCH] D support for RISC-V

2019-04-10 Thread Iain Buclaw
On Wed, 10 Apr 2019 at 01:58, Jim Wilson wrote: > > On Tue, Apr 9, 2019 at 10:36 AM Iain Buclaw wrote: > > Any objection if I upstream the non-asm bits? > > Doesn't all of it, except maybe the configure.tgt patch need to go > upstream first? And do you need some pape

Re: [RFC] D support for S/390

2019-04-11 Thread Iain Buclaw
On Thu, 11 Apr 2019 at 17:43, Robin Dapp wrote: > > Hi Rainer, > > > This will occur on any 32-bit target. The following patch (using > > ssize_t instead) allowed the code to compile: > > thanks, included your fix and attempted a more generic version of the > 186 test. > > I also continued debugg

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

2019-04-11 Thread Iain Buclaw
On Sat, 6 Apr 2019 at 19:05, Iain Buclaw wrote: > > 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: > > >> > > >> > > &g

[PATCH, d] Committed merge with upstream dmd

2019-04-11 Thread Iain Buclaw
Hi, This patch merges the D front-end implementation with dmd upstream d7ed327ed. Backports fix for an ICE that occurred when accessing empty array in CTFE. Bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r270294. -- Iain --- diff --git a/gcc/d/dmd/MERGE b/gcc/d/

[PATCH, libphobos] Committed merge with upstream druntime

2019-04-11 Thread Iain Buclaw
Hi, This patch merges the libdruntime sub-library with upstream druntime 175bf5fc. Backports extern(C) bindings from upstream druntime that have been committed since the last sync. Notably, the Solaris port has been undergoing a some testing to get it all passing. Bootstrapped and regression tes

[PATCH, libphobos] Committed merge with upstream phobos

2019-04-11 Thread Iain Buclaw
Hi, This patch merges the libphobos library with upstream phobos cf95639ff. Backports port fixes from upstream that have been committed since last sync. Bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r270296. -- Iain diff --git a/libphobos/src/MERGE b/libphobos/

[PATCH, d] Committed merge with upstream dmd

2019-04-11 Thread Iain Buclaw
Hi, This patch merges the D front-end implementation with dmd upstream c185f9df1. Adds new virtual isVersionCondition, this is so that in the code generation pass, a ConditionDeclaration's condition can be identified without requiring a Visitor function. Bootstrapped and regression tested on x86

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

2019-04-11 Thread Iain Buclaw
Patch updated and committed to trunk as r270301. -- Iain --- 2019-04-12 Iain Buclaw * d-tree.h (DECL_IN_UNITTEST_CONDITION_P): Define. * decl.cc (DeclVisitor): Add in_version_unittest_ field. (DeclVisitor::visit(ConditionalDeclaration)): New override

[PATCH, libphobos] Committed add subdir-objects to configure script.

2019-04-12 Thread Iain Buclaw
Hi, Now that libz_convenience.a is used, it's possible to add subdir-objects. Running autoreconf regenerates all files cleanly with autoconf2.69. Bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r270330. -- Iain --- libphobos/ChangeLog: 2019-04-12 Iain B

[PATCH, libphobos] Committed move rt.sections modules to gcc.sections

2019-04-13 Thread Iain Buclaw
regression tested on x86_64-linux-gnu. Committed to trunk as r270341. -- Iain --- libphobos/ChangeLog: 2019-04-13 Iain Buclaw * libdruntime/Makefile.am (DRUNTIME_CSOURCES): Remove bss_sections.c. (DRUNTIME_DSOURCES): Rename rt/sections_* modules to gcc/sections

Re: [libphobos] Work around lack of dlpi_tls_modid before Solaris 11.5

2019-04-13 Thread Iain Buclaw
On Tue, 9 Apr 2019 at 21:27, Rainer Orth wrote: > > Rainer Orth writes: > > > Before Solaris 11.5, struct dl_phdr_info lacked the dlpi_tls_modid > > member. While the support might be backported to Solaris 11.4, it > > certainly won't to previous Solaris releases. To work around this, I've > >

Re: [libphobos] Use sections_elf_shared.d on Solaris 11.5 (PR d/88150)

2019-04-13 Thread Iain Buclaw
On Tue, 29 Jan 2019 at 11:25, Rainer Orth wrote: > > I've successfully been using a late prototype of an implementation of > the dlpi_tls_modid field of struct dl_phdr_info on Solaris 11.5 Beta. > This allowed me to get pretty reasonable test results using > sections_elf_shared.d on Solaris. > > T

Re: [PATCH] D support for RISC-V

2019-04-13 Thread Iain Buclaw
On Tue, 9 Apr 2019 at 11:53, David Abdurachmanov wrote: > > diff --git a/libphobos/libdruntime/rt/sections_elf_shared.d > b/libphobos/libdruntime/rt/sections_elf_shared.d > index d4e1ff07699..45c1dcbc7f3 100644 > --- a/libphobos/libdruntime/rt/sections_elf_shared.d > +++ b/libphobos/libdruntime/r

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

2019-04-13 Thread Iain Buclaw
On Mon, 25 Mar 2019 at 20:04, Johannes Pfau wrote: > > diff --git a/gcc/d/d-system.h b/gcc/d/d-system.h > index efece15f3bc..6c18b69d4df 100644 > --- a/gcc/d/d-system.h > +++ b/gcc/d/d-system.h > @@ -55,4 +55,10 @@ > #undef tolower > #define tolower(c) TOLOWER(c) > > +/* We do not include direct

Re: [libphobos] Work around Solaris ld bug linking __tls_get_addr on 64-bit x86

2019-04-13 Thread Iain Buclaw
On Tue, 9 Apr 2019 at 21:36, Rainer Orth wrote: > > Rainer Orth writes: > > > Here's the patch I mentioned in > > > > https://gcc.gnu.org/ml/gcc-patches/2019-01/msg01661.html > > > > to work around an amd64 Solaris ld bug. I'm just posting it for > > reference now: until it's clear if a fi

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

2019-04-14 Thread Iain Buclaw
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) > >> https://gcc.gnu.org/ml/gcc-patches/2019-01/msg01661.html > > > > I'll make a fork of sections s

[PATCH, libphobos] Committed merge with upstream druntime

2019-04-15 Thread Iain Buclaw
Hi, This patch merges the libdruntime library with upstream druntime 70b9fea6. Backports fixes in the extern(C) bindings for the Solaris/SPARC port. Bootstrapped and regression tested on x86_64-linux-gnu and i386-pc-solaris2.11. Committed to trunk as r270372. -- Iain --- diff --git a/libphobo

[PATCH, libphobos] Committed fix configure test for backtrace-supported.h

2019-04-15 Thread Iain Buclaw
x-gnu and x86_64-freebsd11.2. Committed to trunk as r270377. -- Iain --- libphobos/ChangeLog: 2019-04-16 Iain Buclaw * config.h.in: Regenerate. * configure: Regenerate. * m4/druntime/libraries.m4 (DRUNTIME_LIBRARIES_BACKTRACE): Set CPPFLAGS correctly for back

[PATCH, d] Committed use build_exeext suffix for D generator programs.

2019-04-16 Thread Iain Buclaw
. Bootstrapped and regression tested on x86_64-linux-gnu. Committed to trunk as r270397. -- Iain --- gcc/d/ChangeLog: 2019-04-16 Iain Buclaw * Make-lang.in (d.mostyclean): Clean idgen and impcnvgen. (d/idgen): Rename to d/idgen$(build_exeext), add BUILD_LIBDEPS. (d

[PATCH, d] Committed fix building on hosts missing _MIN and MAX macros

2019-04-16 Thread Iain Buclaw
--- 2019-04-17 Iain Buclaw * d-system.h (POSIX): Define unix as POSIX. (INT32_MAX, INT32_MIN, INT64_MIN, UINT32_MAX, UINT64_MAX): Provide fallback definitions. --- diff --git a/gcc/d/d-system.h b/gcc/d/d-system.h index 142b03dc80f..b6f4ee5302a 100644 --- a/gcc/d/d-system.h

[PATCH, PR d/89293] Committed core.atomic should have fallback when there's no libatomic

2019-04-20 Thread Iain Buclaw
ssion tested on x86_64-linux-gnu, where all libatomic configurables in libphobos were set to false to force testing the new code. Committed to trunk as r270470. -- Iain --- libphobos/ChangeLog: 2019-04-20 Iain Buclaw PR d/89293 * libdruntime/core/atomic.d (casImpl): Remove s

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