This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix unresolved symbols on non-C99 platforms


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]