[Bug 638749] Bug in GCC: generates wrong Code whem optimizing