[PATCH] Fix unresolved symbols on non-C99 platforms
Eric Botcazou
ebotcazou@libertysurf.fr
Fri May 20 19:39:00 GMT 2005
Hi,
The patch
2005-05-18 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
* f95-lang.c (gfc_init_builtin_functions): Define BUILT_IN_TRUNC
and BUILT_IN_TRUNCF instead of BUILT_IN_FLOOR and BUILT_IN_FLOORF.
* trans-intrinsic.c (build_fix_expr): Change 'op' argument
to correct enum type.
(gfc_conv_intrinsic_aint): Likewise. Clarify comment in front of
function. Add default case to switch, deal with FIX_TRUNC_EXPR
instead of FIX_FLOOR_EXPR.
has broken the F95 compiler on non-C99 platforms because of the new
dependencies on C99's 'trunc' and 'truncf'.
The attached patch adds 'trunc' and 'truncf' to intrinsics/c99_functions.c and
tweak the configure machinery accordingly. Built and tested on SPARC/Solaris
2.5.1, 2.6, 7, 8, 9 (non-C99) and 10 (C99). OK for mainline?
2005-05-20 Eric Botcazou <ebotcazou@libertysurf.fr>
* configure.ac: Check for trunc and truncf in libm.
* configure: Regenerate.
* config.h.in: Likewise.
* intrinsics/c99_functions.c (trunc, truncf): New functions.
* c99_protos.h (trunc, truncf): Declare them.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgfortran_trunc.diff
Type: text/x-diff
Size: 2282 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20050520/c525f9d1/attachment.bin>
More information about the Fortran
mailing list