------- Comment #17 from sebastian dot huber at embedded-brains dot de 2010-06-10 07:13 ------- Thank you for your investigations. A special case fix is better than nothing. I am not a GCC expert but it seems that this kind of bug appears quite regularly on different platforms and all use special case code to avoid the evil consequences. If it is a middle-end bug it should draw more attention by the middle-end developers. You cannot detect this bug through simple test cases like a flow control or math problem. With normal unit tests you will likely not find this bug in your application. You need at least two threads of execution and you have to do certain things in between a wee bit of machine instructions.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38644