This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/25477] builtin functions should use $LDBL128 suffix on darwin when appropriate
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Feb 2008 11:00:38 -0000
- Subject: [Bug target/25477] builtin functions should use $LDBL128 suffix on darwin when appropriate
- References: <bug-25477-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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