https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103676
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Try the following two object files: /home/patrick/src/apex-examples/apex/sys/kern/timer.cpp /home/patrick/src/apex-examples/apex/sys/arch/arm/v7em/atomic.cpp At least attach the preprocessed source for these two. I might be able to help with a testcase. I am thinking the function in atomic.cpp is being inlined into timer.cpp and the inline-asm with the volatile memory location is causing issues.