[Bug target/96304] Possible mis-compile of SQLite for ARM using gcc 8.3.0 and -O2
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jul 24 06:53:01 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96304
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marxin at gcc dot gnu.org
--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
> But, are we violating aliasing rules here? What am I missing?
Likely you are, but I must admit it's sometimes quite difficult to find that.
>From quickly looking at the function, you may violate it here:
MemJournal *p = (MemJournal*)pJfd;
maybe
MemJournal *p = (MemJournal*)(char*)pJfd;
can solve it.
Unfortunately I can't reproduce it on my x86_64-linux box.
More information about the Gcc-bugs
mailing list