title: Coverage run with GCC does not produce data
body: <p>I have a Fortran program I would like to profile with GNU coverage. So I compiled the program with GCC 11.2 with these coverage options:</p>
  <pre><code>-fprofile-arcs -ftest-coverage
  </code></pre>
  <p>Also, I add flags to disallow compiler to inline the code:</p>
  <pre><code>-fno-inline -fno-inline-small-functions -fno-default-inline
  </code></pre>
  <p>I turned off <code>lto</code> and add <code>-lcgov</code> to linker. This setup worked well for a sample program I proved. But when I tried to use it for the program I am interested in it did not generate any *.gcno files, just nothing. Execution, however, exited well (0 exit code) producing correct results.</p>
  <p>My question is, how can I find where the problem is. Without an error message, I don't know where to start. It is a rather bigger program ~10 MB of source code, can that be a problem? Also, it heavily depends on <code>MKL</code>, can the external library be the problem? Once I accidentally mixed compile time and runtime environments and it complained about the version of <code>libgcov.so</code>, so something is working after all. Or do you have any other suggestions for coverage profiling?</p>