------- Comment #29 from fxcoudert at gcc dot gnu dot org 2008-02-22 11:00 ------- >> but the Fortran front-end apparently doesn't benefit from it: > > From what I understand, you have to rebuild libgfortran. Did you do so?
It doesn't need to, the calls are emitted directly by the front-end (otherwise, we'd be OK, as the library is in C and we do include <math.h>). (As a sidenote, there is one minor thing for which recompiling libgfortran is needed, and that's specific functions; I'm not using them here. Specific functions are Fortran wrappers to math builtins that are compiled into libgfortran and used when a Fortran intrinsic math function is passed as an argument to another function.) > No, only variadic functions like fprintf should be affected by > -mmacosx-version-min. Of course, you're right, I got confused. It works: $ ./bin/gcc -c s.c -mmacosx-version-min=10.3.9 $ nm s.o | grep printf U _printf$LDBL128 $ ./bin/gcc -c s.c -mmacosx-version-min=10.3.8 $ nm s.o | grep printf U _printf -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25477