GDC optimizations bug ?

2014-11-09 Thread Maor via D.gnu
Hi, I'm trying to compile a program using inline asm with optimizations and I got my inline asm functions thrown out by the optimizer although I declared them as having side effects (by stating a memory clobber). I wrote the following toy program to demonstrate the problem: -

Re: GDC optimizations bug ?

2014-11-09 Thread Maor via D.gnu
On Sunday, 9 November 2014 at 11:50:24 UTC, Iain Buclaw via D.gnu wrote: On 9 November 2014 08:54, Iain Buclaw wrote: On 9 Nov 2014 08:40, "Maor via D.gnu" wrote: Hi, I'm trying to compile a program using inline asm with optimizations and I got my inline asm functions th