This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/11381] [regression] volatile memory access optimized away
- From: "tori at unhappy dot mine dot nu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jun 2003 16:26:14 -0000
- Subject: [Bug optimization/11381] [regression] volatile memory access optimized away
- References: <20030630162521.11381.tori@unhappy.mine.nu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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