Fwd: gfortran doesn't call targetm.init_builtins()

Steven Bosscher stevenb@suse.de
Wed Jan 12 15:42:00 GMT 2005


On Wednesday 12 January 2005 16:40, Andrew Pinski wrote:
> > Any reason why there is no call to targetm.init_builtins() for Fortran?
> > (For C/C++ it is called in c-common.c  c_common_nodes_and_builtins()
> > and
> > for Ada in  ada/utils.c gnat_install_builtins ()).
> >
> > Is it O.K. to add it as following in fortran/f95-lang.c:

If you test the patch and give it a ChangeLog, this is of course OK ;-)

Gr.
Steven



> > *************** gfc_init_builtin_functions (void)
> > *** 863,868 ****
> > --- 863,870 ----
> >     ftype = build_function_type (pvoid_type_node, tmp);
> >     gfc_define_builtin ("__builtin_alloca", ftype, BUILT_IN_ALLOCA,
> >                       "alloca", false);
> > +
> > +   targetm.init_builtins ();
> >   }
> >
> > Thanks,
> > Ira



More information about the Fortran mailing list