[Bug optimization/11381] [regression] volatile memory access optimized away
tori at unhappy dot mine dot nu
gcc-bugzilla@gcc.gnu.org
Mon Jun 30 16:26:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11381
------- Additional Comments From tori at unhappy dot mine dot nu 2003-06-30 16:26 -------
Info from Andrew Pinski:
Please file a bug report but I still see it on the mainline ().
Also Here is a workaround:
void flash_wait_ready(volatile unsigned *vaddr)
{
while(1)
{
unsigned temp = *vaddr;
if (temp != *vaddr)
break;
}
}
Thanks,
Andrew Pinski
More information about the Gcc-bugs
mailing list