Hi,
PR23282 is a wrong code generation bug that shows up in trivial C code (see comment 2) at -O1. Since a few weeks, there has been a small patch attached to the PR (tested on mainline/4.1 since june see PR22442) that also fixes the problem for 4.0 (I tested _4_0_1_release). I think that that patch should go in the 4.0 branch before 4.0.3 is released....
Is there anybody with svn write permission and a few spare minutes ?? Thanks, Joost