public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/30658]  New: Optionally, generate .mod files with the interface for files containing only procedures
@ 2007-01-31 19:47 burnus at gcc dot gnu dot org
  2007-01-31 19:54 ` [Bug fortran/30658] " burnus at gcc dot gnu dot org
  2007-08-15 12:56 ` fxcoudert at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-01-31 19:47 UTC (permalink / raw)
  To: gcc-bugs

Currently, there the interface of procedure calls is only checked if they are
use or host associated. It would be useful as error check, if optionally for
all procedures which are neither part of a module nor of the program, a .MOD
file could be created which contains their interface.

Example (put in one or two files, compile together or separately):
-----------------------
program main
  real(8) :: number
  number = run_u()
end program main

function run_u()
 implicit none
 real(4) :: run_u
 run_u = 42.0
end function run_u
-----------------------

The Intel compiler supports such an option:
   -gen-interface -warn interface
this creates:
  run_u_mod.mod
and 
  run_u_mod.f90
------------------------------------
        !COMPILER-GENERATED INTERFACE MODULE: Wed Jan 31 20:46:20 2007
        MODULE RUN_U_mod
          INTERFACE
            FUNCTION RUN_U RESULT(RUN_U_0)
              REAL(KIND=4) :: RUN_U_0
            END FUNCTION RUN_U
          END INTERFACE
        END MODULE RUN_U_mod
------------------------------------
which are then used. (Actually, ifort remains silent about the problem above.
It probably converts the real(4) into a real(8), but does not warn!)

Expected:
- gfortran has a similar option, which creates a .MOD file
- Maybe gfortran should also have another option to create a .f90 file
(Don't unify these options; as the .f90 files clutter only the directory.)


-- 
           Summary: Optionally, generate .mod files with the interface for
                    files containing only procedures
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30658


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug fortran/30658] Optionally, generate .mod files with the interface for files containing only procedures
  2007-01-31 19:47 [Bug fortran/30658] New: Optionally, generate .mod files with the interface for files containing only procedures burnus at gcc dot gnu dot org
@ 2007-01-31 19:54 ` burnus at gcc dot gnu dot org
  2007-08-15 12:56 ` fxcoudert at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-01-31 19:54 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from burnus at gcc dot gnu dot org  2007-01-31 19:54 -------
For completeness, it came up here:
http://gcc.gnu.org/ml/fortran/2006-09/msg00381.html

It came up again
http://gcc.gnu.org/ml/fortran/2007-01/msg00716.html
The c.l.fortran thread mentioned there is
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/4bdd3181137c0c14/


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30658


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug fortran/30658] Optionally, generate .mod files with the interface for files containing only procedures
  2007-01-31 19:47 [Bug fortran/30658] New: Optionally, generate .mod files with the interface for files containing only procedures burnus at gcc dot gnu dot org
  2007-01-31 19:54 ` [Bug fortran/30658] " burnus at gcc dot gnu dot org
@ 2007-08-15 12:56 ` fxcoudert at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-08-15 12:56 UTC (permalink / raw)
  To: gcc-bugs



-- 

fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-08-15 12:56:32
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30658


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-08-15 12:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-31 19:47 [Bug fortran/30658] New: Optionally, generate .mod files with the interface for files containing only procedures burnus at gcc dot gnu dot org
2007-01-31 19:54 ` [Bug fortran/30658] " burnus at gcc dot gnu dot org
2007-08-15 12:56 ` fxcoudert at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).