Re: GDC 9 and ARM Cortex-M

2019-07-07 Thread Iain Buclaw via D.gnu
On Sun, 7 Jul 2019 at 14:15, Timo Sintonen via D.gnu wrote: > > On Sunday, 7 July 2019 at 09:57:33 UTC, Iain Buclaw wrote: > > On Sun, 7 Jul 2019 at 08:25, Timo Sintonen via D.gnu > > wrote: > >> > >> My little test program is nearly working now. > >> Some funny things I have found: > >> > >> - W

Re: GDC 9 and ARM Cortex-M

2019-07-07 Thread Timo Sintonen via D.gnu
On Sunday, 7 July 2019 at 09:57:33 UTC, Iain Buclaw wrote: On Sun, 7 Jul 2019 at 08:25, Timo Sintonen via D.gnu wrote: My little test program is nearly working now. Some funny things I have found: - When not using -O2 4 extra bytes appear in front of tdata init values. With -O2 they disappea

Re: GDC 9 and ARM Cortex-M

2019-07-07 Thread Iain Buclaw via D.gnu
On Sun, 7 Jul 2019 at 08:25, Timo Sintonen via D.gnu wrote: > > My little test program is nearly working now. > Some funny things I have found: > > - When not using -O2 4 extra bytes appear in front of tdata init > values. With -O2 they disappear. Don't think that has anything to do with gdc. >

Re: GDC 9 and ARM Cortex-M

2019-07-06 Thread Timo Sintonen via D.gnu
My little test program is nearly working now. Some funny things I have found: - When not using -O2 4 extra bytes appear in front of tdata init values. With -O2 they disappear. - I have my own calloc where I first allocate a block with malloc and then use memset to zero it. GCC can see this and

Re: GDC 9 and ARM Cortex-M

2019-06-08 Thread Timo Sintonen via D.gnu
On Thursday, 23 May 2019 at 07:19:23 UTC, Iain Buclaw wrote: Given the nature of the segfault your getting, I would expect that you'd get the same problem even if the sources were in D. It is _not_ normal for a module->importedFrom to be NULL or an invalid pointer. Something must have gone

Re: GDC 9 and ARM Cortex-M

2019-05-23 Thread Iain Buclaw via D.gnu
On Thu, 23 May 2019 at 07:10, Timo Sintonen via D.gnu wrote: > > On Monday, 20 May 2019 at 19:12:54 UTC, Iain Buclaw wrote: > > On Mon, 20 May 2019 at 20:05, Timo Sintonen via D.gnu > > wrote: > >> > >> On Sunday, 19 May 2019 at 18:58:09 UTC, Iain Buclaw wrote: > >> > >> > > >> > What's the syste

Re: GDC 9 and ARM Cortex-M

2019-05-22 Thread Timo Sintonen via D.gnu
On Monday, 20 May 2019 at 19:12:54 UTC, Iain Buclaw wrote: On Mon, 20 May 2019 at 20:05, Timo Sintonen via D.gnu wrote: On Sunday, 19 May 2019 at 18:58:09 UTC, Iain Buclaw wrote: > > What's the system compiler version you are using? I've > tested with both gcc-9.1 and gcc-8.3, not able to r

Re: GDC 9 and ARM Cortex-M

2019-05-20 Thread Iain Buclaw via D.gnu
On Mon, 20 May 2019 at 20:05, Timo Sintonen via D.gnu wrote: > > On Sunday, 19 May 2019 at 18:58:09 UTC, Iain Buclaw wrote: > > > > > What's the system compiler version you are using? I've tested > > with both gcc-9.1 and gcc-8.3, not able to reproduce. > > It is in the dump above (even two times

Re: GDC 9 and ARM Cortex-M

2019-05-20 Thread Timo Sintonen via D.gnu
On Sunday, 19 May 2019 at 18:58:09 UTC, Iain Buclaw wrote: What's the system compiler version you are using? I've tested with both gcc-9.1 and gcc-8.3, not able to reproduce. It is in the dump above (even two times ;) GNU D (GCC) version 9.1.0 (arm-eabi) compiled by GNU C version

Re: GDC 9 and ARM Cortex-M

2019-05-19 Thread Iain Buclaw via D.gnu
On Sun, 19 May 2019 at 18:20, Timo Sintonen via D.gnu wrote: > > On Sunday, 19 May 2019 at 14:17:05 UTC, Iain Buclaw wrote: > > > > I don't really expect any part of druntime to build on bare > > metal. Too much depends on libc being available. > > I have done this several times so I mostly know w

Re: GDC 9 and ARM Cortex-M

2019-05-19 Thread Timo Sintonen via D.gnu
On Sunday, 19 May 2019 at 14:17:05 UTC, Iain Buclaw wrote: I don't really expect any part of druntime to build on bare metal. Too much depends on libc being available. I have done this several times so I mostly know what I am doing and I do understand that this may also be something in my lo

Re: GDC 9 and ARM Cortex-M

2019-05-19 Thread Iain Buclaw via D.gnu
On Sun, 19 May 2019 at 16:00, Timo Sintonen via D.gnu wrote: > > On Sunday, 19 May 2019 at 10:49:51 UTC, Mike Franklin wrote: > > On Sunday, 19 May 2019 at 06:54:14 UTC, Timo Sintonen wrote: > >> I am updating my toolset and libraries to GCC/GDC 9.1 release. > >> First impression is that druntime

Re: GDC 9 and ARM Cortex-M

2019-05-19 Thread Timo Sintonen via D.gnu
On Sunday, 19 May 2019 at 10:49:51 UTC, Mike Franklin wrote: On Sunday, 19 May 2019 at 06:54:14 UTC, Timo Sintonen wrote: I am updating my toolset and libraries to GCC/GDC 9.1 release. First impression is that druntime needs more work than with previous versions. Many places to change and even

Re: GDC 9 and ARM Cortex-M

2019-05-19 Thread Timo Sintonen via D.gnu
On Sunday, 19 May 2019 at 09:34:55 UTC, Johannes Pfau wrote: Am Sun, 19 May 2019 06:54:14 + schrieb Timo Sintonen: I am updating my toolset and libraries to GCC/GDC 9.1 release. First impression is that druntime needs more work than with previous versions. Many places to change and even co

Re: GDC 9 and ARM Cortex-M

2019-05-19 Thread Mike Franklin via D.gnu
On Sunday, 19 May 2019 at 06:54:14 UTC, Timo Sintonen wrote: I am updating my toolset and libraries to GCC/GDC 9.1 release. First impression is that druntime needs more work than with previous versions. Many places to change and even compiler crashes when compiling some files. Before I look f

Re: GDC 9 and ARM Cortex-M

2019-05-19 Thread Johannes Pfau via D.gnu
Am Sun, 19 May 2019 06:54:14 + schrieb Timo Sintonen: > I am updating my toolset and libraries to GCC/GDC 9.1 release. First > impression is that druntime needs more work than with previous versions. > Many places to change and even compiler crashes when compiling some > files. > > Before I l