Re: CI: GCC no longer publishes .bz2 tarballs

2017-07-22 Thread Iain Buclaw via D.gnu
On 22 July 2017 at 12:23, Johannes Pfau via D.gnu wrote: > I just updated the gdc-6 branch in my repo to gcc 6.4.0 and the CI > started to fail downloading the tarball. Turns out that the .bz2 > tarball was replaced with a .tar.xz tarball for gcc 6.4.0 and I guess > it'll be similar for all new re

CI: GCC no longer publishes .bz2 tarballs

2017-07-22 Thread Johannes Pfau via D.gnu
I just updated the gdc-6 branch in my repo to gcc 6.4.0 and the CI started to fail downloading the tarball. Turns out that the .bz2 tarball was replaced with a .tar.xz tarball for gcc 6.4.0 and I guess it'll be similar for all new releases: ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/gcc/r

Re: ARM Cortex-M Broken Binaries with -O2 and -O3 (-fschedule-insns)

2017-07-22 Thread Iain Buclaw via D.gnu
On 22 July 2017 at 11:22, Mike via D.gnu wrote: > On Saturday, 22 July 2017 at 09:07:31 UTC, Iain Buclaw wrote: > >> >> https://github.com/JinShil/stm32f42_discovery_demo/search?utf8=%E2%9C%93&q=cast%28shared&type= >> >> Those should probably be volatileLoad, as they look to be used by >> setValue

Re: ARM Cortex-M Broken Binaries with -O2 and -O3 (-fschedule-insns)

2017-07-22 Thread Mike via D.gnu
On Saturday, 22 July 2017 at 09:07:31 UTC, Iain Buclaw wrote: https://github.com/JinShil/stm32f42_discovery_demo/search?utf8=%E2%9C%93&q=cast%28shared&type= Those should probably be volatileLoad, as they look to be used by setValue(). I am such an idiot. Problem solved. Thank you, and I'm t

Re: ARM Cortex-M Broken Binaries with -O2 and -O3 (-fschedule-insns)

2017-07-22 Thread Iain Buclaw via D.gnu
On 22 July 2017 at 10:09, Johannes Pfau via D.gnu wrote: > Am Sat, 22 Jul 2017 07:07:33 + > schrieb Timo Sintonen : > >> On Saturday, 22 July 2017 at 01:11:02 UTC, Mike wrote: >> > On Friday, 21 July 2017 at 23:44:53 UTC, Mike wrote: >> > >> >> I'm getting broken binaries with -O2 and -O3. I'

Re: ARM Cortex-M Broken Binaries with -O2 and -O3 (-fschedule-insns)

2017-07-22 Thread Iain Buclaw via D.gnu
On 22 July 2017 at 01:44, Mike via D.gnu wrote: > My stm32 demo has now been updated and working with GDC/GCC 7.1.0. Thanks > for all your improvements. > > However, I'm getting broken binaries with -O2 and -O3. I've nailed the > culprit down to -fschedule-insns (i.e. if I add -fno-schedule-insn

Re: ARM Cortex-M Broken Binaries with -O2 and -O3 (-fschedule-insns)

2017-07-22 Thread Johannes Pfau via D.gnu
Am Sat, 22 Jul 2017 08:11:28 + schrieb Mike : > On Friday, 21 July 2017 at 23:44:53 UTC, Mike wrote: > > > However, I'm getting broken binaries with -O2 and -O3. I've > > nailed the culprit down to -fschedule-insns (i.e. if I add > > -fno-schedule-insns to -O2 or -O3, the binary works fine

Re: ARM Cortex-M Broken Binaries with -O2 and -O3 (-fschedule-insns)

2017-07-22 Thread Johannes Pfau via D.gnu
Am Fri, 21 Jul 2017 23:44:53 + schrieb Mike : > My stm32 demo has now been updated and working with GDC/GCC > 7.1.0. Thanks for all your improvements. > > However, I'm getting broken binaries with -O2 and -O3. I've > nailed the culprit down to -fschedule-insns (i.e. if I add > -fno-sched

Re: ARM Cortex-M Broken Binaries with -O2 and -O3 (-fschedule-insns)

2017-07-22 Thread Mike via D.gnu
On Friday, 21 July 2017 at 23:44:53 UTC, Mike wrote: However, I'm getting broken binaries with -O2 and -O3. I've nailed the culprit down to -fschedule-insns (i.e. if I add -fno-schedule-insns to -O2 or -O3, the binary works fine). I've confirmed that -fschedule-insns is reordering register

Re: ARM Cortex-M Broken Binaries with -O2 and -O3 (-fschedule-insns)

2017-07-22 Thread Johannes Pfau via D.gnu
Am Sat, 22 Jul 2017 07:07:33 + schrieb Timo Sintonen : > On Saturday, 22 July 2017 at 01:11:02 UTC, Mike wrote: > > On Friday, 21 July 2017 at 23:44:53 UTC, Mike wrote: > > > >> I'm getting broken binaries with -O2 and -O3. I've nailed the > >> culprit down to -fschedule-insns (i.e. if I a

Re: ARM Cortex-M Broken Binaries with -O2 and -O3 (-fschedule-insns)

2017-07-22 Thread Timo Sintonen via D.gnu
On Saturday, 22 July 2017 at 01:11:02 UTC, Mike wrote: On Friday, 21 July 2017 at 23:44:53 UTC, Mike wrote: I'm getting broken binaries with -O2 and -O3. I've nailed the culprit down to -fschedule-insns (i.e. if I add -fno-schedule-insns to -O2 or -O3, the binary works fine). I disassembled