This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/82602] IRA considers volatile asm to be moveable
- From: "bernd.edlinger at hotmail dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 18 Oct 2017 16:32:19 +0000
- Subject: [Bug rtl-optimization/82602] IRA considers volatile asm to be moveable
- Auto-submitted: auto-generated
- References: <bug-82602-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82602
--- Comment #10 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
Yes, and moreover foo() could access non-volatile memory.
And only a memory clobber can prevent the compiler from
using cached values.