Comment 23 for bug 1418073

Revision history for this message
Ben (bsschwar) wrote :

I just ran into this exact issue yesterday. Was quite the headache debugging. In the end, my workaround was to add the noinline attribute to my function.

This definitely seems like it should be considered a bug. There is no information in the GNU spec about the compiler selectively ignoring the section attribute, which is essentially what is happening. If the process of inlining a function would violate the section attribute that the programmer has specified, then that function should not be inlined.