This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [gfortran] Builtin functions


On Sunday 31 August 2003 12:50 am, Diego Novillo wrote:
> On Sat, 2003-08-30 at 14:00, Paul Brook wrote:
> > The attached patch maked gfortran handle builtin functions that same
> > way as java and g77. It avoids having to deal with all the messy
> > c-specific mess associated with using builtins.def.
> >
> > Applied to tree-ssa branch.
>
> Paul,
>
> I get a libgfortran build failure on  alphaev67-unknown-linux-gnu with
> this patch:

I'd guess ABS_EXPR is getting expanded to __builtin_fabs. We never use this 
directly, so I didn't bother defining it.

Does the patch below fix things?

Paul

--- /home/paul/cases/clean/tree-ssa/gcc/fortran/f95-lang.c
+++ ./f95-lang.c
@@ -882,6 +882,7 @@ gfc_init_builtin_functions (void)
 
 #include "mathbuiltins.def"
 
+  DEFINE_MATH_BUILTIN (FABS, "fabs", 1);
   /* We define there seperately as the fortran versions have different
      semantics (they return an integer type) */
   gfc_define_builtin ("__builtin_floor", mfunc_double[1], 


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