[RFC] Fortran search path for intrinsic includes and modules

Steve Kargl sgk@troutmask.apl.washington.edu
Fri Nov 18 18:58:00 GMT 2005


On Fri, Nov 18, 2005 at 01:25:27PM -0500, Jakub Jelinek wrote:
> 
> Fortran by default doesn't use any search paths for
> INCLUDE and USE lookups.  With -fopenmp,
> INCLUDE 'omp_lib.h'
> as well as
> USE OMP_LIB
> should work automatically and I think we shouldn't harass users
> to provide -I options all the time.  I believe there were discussions
> about the need for other intrinsic modules.
> 
> Would something like this be acceptable?
> 
> For GOMP would need some corresponding changes to install the needed
> files (omp_lib.f90 omp_lib.h omp_lib.mod omp_lib_kinds.mod)
> to /usr/lib/gcc/*/*/finclude/ (though not sure how to do that in
> automake).
> 

I like this options, which is similar to how NAG
handles their modules.  NAG places everything
in /usr/local/lib/NAGWare.

I must admit I don't understand why you need to install
omp_lib.f90 and omp_lib.h.  I would have thought that all
you need is omp_lib.o, omp_lib.mod, and omp_lib_kinds.mod.
Shouldn't -fopenmp simply add omp_lib.o to the link command
and USE OMP_LIB look for a omp_lib.mod?

BTW, what are your merge plans once 4.1 is branched?  I can
help with limited code review and testing on weekends.

-- 
Steve



More information about the Fortran mailing list