Skip to content

Commit 2cd718a

Browse files
committed
more
1 parent 5da889e commit 2cd718a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

flang/docs/ModFiles.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,14 @@ names match module files in multiple search directories, as well as to
126126
detect dependent modules whose recompilation has rendered a module file
127127
obsolete.
128128

129+
The hash codes used in module files also serve as a means of protection from
130+
updates to code in other packages.
131+
If a project A uses module files from package B, and package B is updated in
132+
a way that causes its module files to be updated, then the modules in A that
133+
depend on those modules in B will no longer be accepted for use until they
134+
have also been regenerated.
135+
This feature can catch errors that other compilers cannot.
136+
129137
When processing `.mod` files we know they are valid Fortran with these properties:
130138
1. The input (without the header) is already in the "cooked input" format.
131139
2. No preprocessing is necessary.

0 commit comments

Comments
 (0)