unless you use gcc inline asm, when using inline asm with -gen gcc it's not safe to use optimization, I suggest -O0 or at most -O1.deltarho[1859] wrote: It seems that the -O3 optimisation is a little aggressive and we have to pull back a little with some code
I could never understand the weird syntax of gcc inline asm, you can find some examples on the web but most are too simple to give an understanding of how to write more complex code.
it would be nice if we had #pragma GCC optimize ("O0")
Code: Select all
#pragma GCC push_options
#pragma GCC optimize ("O0")
your code
#pragma GCC pop_options