fix Issue 9720 - OSX wrong code with -O Illegal instruction