A number of library calls that set errno were not behaving correctly with -fmath-errno. Specifically, they were being lowered to native instruction and not setting errno. The changes are based on grepping through the man pages. Please have a look and let me know if I've missed something.
Chad
This is wrong. We lower these to an frem instruction, which does not set errno.