Sorry, I am not able to make a simple test case as I don't know how to force gcc to inline the function that gets inlined in our product. Without the inlining everything looks to compile without problems. Is there any way to force inline?I certainly don't get that. Please post a complete test case, with assembly output. We also need to know exactly your version of gcc.
Martin