This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [PATCH] Fix unresolved symbols on non-C99 platforms
- From: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- To: Eric Botcazou <ebotcazou at libertysurf dot fr>
- Cc: fortran at gcc dot gnu dot org
- Date: Sun, 22 May 2005 20:12:57 +0200
- Subject: Re: [PATCH] Fix unresolved symbols on non-C99 platforms
- References: <200505202139.36166.ebotcazou@libertysurf.fr>
Eric Botcazou wrote:
> 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?
Sorry for the breakage. I don't understand how using a compiler built-in can
put requirements on target libraries, but I'll try to be more careful.
- Tobi