https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88769
--- Comment #4 from joseph at codesourcery dot com <joseph at codesourcery dot com> --- Errors for infinite arguments to math.h functions are generally documented in Annex F; 7.12.1 just says "an implementation may define additional domain errors, provided that such errors are consistent with the mathematical definition of the function" with a footnote "In an implementation that supports infinities, this allows an infinity as an argument to be a domain error if the mathematical domain of the function does not include the infinity.".