Comment 24 for bug 1418073

Revision history for this message
Jérémie Faucher-Goulet (jeremfg) wrote :

I just ran into this myself, using "-O1" as optimization level and GCC 4.9.3 20150529 (release) [ARM/embedded-4_9-branch revision 227977]

Thankfully I didn't have to look very long. In my case this was triggering the Cortex-M4 MPU. I use the "section" attribute especially to move a function to a region of memory where it can be executed with unprivileged access. Since it was inlined inside privileged memory, I could no longer jump to my function.

I've solved it using noinline as well, but I feel this is a very odd behavior for GCC to ignore an explicit requirement stated in the code.

Does anyone have a link towards the GCC community or anywhere else where this is already discussed?