Warning/error mechanism in libgfortran

FX Coudert fxcoudert@gmail.com
Sat Jun 18 11:18:00 GMT 2005


Hi all,

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.

FX
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: compile_options.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20050618/783b23c3/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: compile_options.c
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20050618/783b23c3/attachment.c>


More information about the Fortran mailing list