Richard Guenther wrote: >That works, if only code playing well (or failing with SIGILL) with >either locking scheme is ever inlined. I.e. for x86 you cannot inline >the i386 variant. > Indeed, we are in perfect agreement now. The point is exactly that: the i386 version cannot be inlined, can only be out of line inside libgcc, in this theoretical scheme.
Really, I think it can pretty much robust. > If such >simple rule is possible on other architectures affected is beyond my knowledge. >And of course currently libgcc is not clever enough in the sense of Uli. > Eh ;) Paolo.