This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug preprocessor/49150] Preprocessing fortran code with the `-M` flag to automatically resolve dependencies and produce makefile rules rendered useless by requiring .mod files be present


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49150

Zaak <zbeekman at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Zaak <zbeekman at gmail dot com> ---
Somehow I seem to have duplicated 49149. Furthermore, at least for gfortran
4.9.2, the issue referenced in comment 13 concerning the intrinsic modules has
been fixed, and a helpful person on a different forum taught me how to include
rules to generate dependency info, and that make will reattempt updating any
included makefiles for which there are rules whenever any of them change. This
lets make recurse through the dependencies and find those files that have no
other dependencies. The dependency rule for these files gets included in the
makefile, then make reattempts to build all the outstanding dependencies. The
fortran files that only depend on those files for which we now have rules get
their rules resolved and included in the makefile, and so on and so forth until
all the dependencies have been resolved. While it would be more convenient and
efficient to process the dependency directly from the source, without needing
.mod files to be present, this is an acceptable work around for me, so I have
closed both issues.

*** This bug has been marked as a duplicate of bug 49149 ***


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]