Created attachment 42338 [details] compile with "gcc -O0 log-bug.c" - it should print 2.5 when run. When I define my own "log" function in a C program the one defined in math.h is used, even when I don't include math.h.
Use -fno-builtins as log as an identifier is reserved.