Re: While optimization and gshared data

2012-12-06 Thread Alex Rønne Petersen
On 06-12-2012 19:38, Iain Buclaw wrote: On 6 December 2012 18:30, Alex Rønne Petersen wrote: On 06-12-2012 19:28, Timo Sintonen wrote: I have some memory mapped hardware in my arm controller. I define struct regs to describe the registers and __gshared regs* p to point to the actual address.

Re: While optimization and gshared data

2012-12-06 Thread Iain Buclaw
On 6 December 2012 18:30, Alex Rønne Petersen wrote: > On 06-12-2012 19:28, Timo Sintonen wrote: >> >> I have some memory mapped hardware in my arm controller. >> I define struct regs to describe the registers and __gshared regs* p to >> point to the actual address. >> I have a loop like: while (p

Re: While optimization and gshared data

2012-12-06 Thread Alex Rønne Petersen
On 06-12-2012 19:28, Timo Sintonen wrote: I have some memory mapped hardware in my arm controller. I define struct regs to describe the registers and __gshared regs* p to point to the actual address. I have a loop like: while (p.status==0) {...} The body of the loop does not touch status and so

While optimization and gshared data

2012-12-06 Thread Timo Sintonen
I have some memory mapped hardware in my arm controller. I define struct regs to describe the registers and __gshared regs* p to point to the actual address. I have a loop like: while (p.status==0) {...} The body of the loop does not touch status and so gdc optimizer does not evaluate status a