Hi Steve, > The attached patch re-arranges the code in gfc_simply_mod(). > This allows gfortran to test if the 2nd argument is zero. > Tested on i586-*-freebsd and x86_64-*-freebsd. OK to commit? OK. Thanks for the patch! Regards Thomas