Paolo Bonzini wrote: > > - In math.h, do a "#define floorl rpl_floorl", in order to avoid > > possible undesired compiler optimizations. > > No problem, but I wonder what's the rationale for the last item.
It's that I've seen gcc transform some trunc() calls into truncf() calls or similar. If gnulib provides a trunc() substitute, it will set TRUNC_LIBM to empty, thus a program should be able to use trunc() and not link with libm. If gcc has turned the trunc() into truncf() in some special cases, the user will get a link error. Bruno