[Bug tree-optimization/70848] [6/7 Regression] g++ arm-none-eabi ignores volatile qualifier
ktkachov at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 28 12:59:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70848
--- Comment #9 from ktkachov at gcc dot gnu.org ---
This also happens for:
volatile int *p;
void test()
{
(*(volatile int*)(p)) = 'a';
(*(volatile int*)(p)) = 'b';
(*(volatile int*)(p)) = 'c';
}
if you don't want to write to pointer literals
More information about the Gcc-bugs
mailing list