Some methods in compiler-rt builtins (divdc3, divsc3, and __divxc3, and maybe others) have dependencies on libm. Therefore building with -rtlib=compiler-rt is completely broken if those symbols are used and users don't include -lm themselves.
Fixes PR32279 and PR28652.