Warning/error mechanism in libgfortran

FX Coudert fxcoudert@gmail.com
Sun Jul 3 01:05:00 GMT 2005


[http://gcc.gnu.org/ml/fortran/2005-06/msg00330.html]

> attached patch and new file compile_options.c is the basis of a 
> mechanism for issuing warnings and errors about standard conformance.
> 
> The interface between the library and the generated is the set_std 
> function (exported as _gfortran_set_std). This function should be called 
> by the generated code to tell the library what standard is used. Two 
> questions are not yet answered:
> 
>   1. Whether this function call should be done for each subroutine 
> (since there can be a F77 subroutine and a F95 one), or only once for 
> the whole program.
> 
>   2. What code should be added to the front-end so that it issues the 
> generated code for this function call? The prototype is:
>           void _gfortran_set_std (const int, const int)
> the first argument should be gfc_option.warn_std and the second one 
> gfc_option.allow_std.
> 
> 
> I'd say that once question 2 is answered, I can do some profiling on 
> point 1.

Can someone help me?

FX



More information about the Fortran mailing list