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, > >> > > >> > > My first suspect here would be 'struct UnionExp', see > >> > >

Re: Fix D compilation on Solaris

2018-11-04 Thread Rainer Orth
nupLoadedLibraries): New functions. * src/std/datetime/systime.d (class Clock) [Solaris] (clock_gettime): Import. * src/std/math.d [SPARC, SPARC64]: Set SPARC_Any. (struct FloatingPointControl): Use SPARC_Any for ExceptionMask, ControlState. # HG changeset patch # Parent 0f6ccc9cfd024f705876c70a640

Re: Fix D compilation on Solaris

2018-11-04 Thread Rainer Orth
Hi Iain, > 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. >> > >> > //

Re: Fix D compilation on Solaris

2018-11-04 Thread Rainer Orth
Hi Iain, > 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. >> > >> > //

Re: Fix D compilation on Solaris

2018-11-04 Thread Rainer Orth
Hi Iain, > 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. >> >> >> >>

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 > > > > > > Upstream dmd use a poor man's alignment, from what I recall to be > > >

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

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

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

Re: Fix D compilation on Solaris

2018-10-31 Thread Rainer Orth
: Use SPARC_Any for ExceptionMask, ControlState. # HG changeset patch # Parent feb1bc98079b57185692621c744578b658d1fc1a Fix D compilation on Solaris diff --git a/gcc/config.gcc b/gcc/config.gcc --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -918,6 +918,7 @@ case ${target} in target_gtfiles="$target_gtfil

Re: Fix D compilation on Solaris

2018-10-31 Thread Rainer Orth
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 suitably aligned. > real_t for_alignment_only; > > What

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

Re: Fix D compilation on Solaris

2018-10-30 Thread Rainer Orth
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/11.5-gcc/build/./gcc/ > -B/vol/gcc/sparc-sun-solaris2.11/bin/

Fix D compilation on Solaris

2018-10-30 Thread Rainer Orth
ttime): Import. # HG changeset patch # Parent 21c0e7e50f9c14ddadbc6c3102da8956fb19e01f Fix D compilation on Solaris diff --git a/gcc/config.gcc b/gcc/config.gcc --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -918,6 +918,7 @@ case ${target} in target_gtfiles="$target_gtfiles \$(srcdir)/config/