This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/11381] [regression] volatile memory access optimized away


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]