log(10.0) can compile but log(0.0) cannot with undefined reference?
gcc can use builtin functions in many cases, their documentation says: Many of these functions are only optimized in certain cases; if they are not optimized in a particular case, a call to the library function is emitted. so therefore gcc will not need to link against the math library when using the builtin function … Read more