public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/42945] New: Gcov -a fails on Fortan generated object file (infinite loop?)
@ 2010-02-03 14:55 graeme dot parkin at btinternet dot com
2010-02-03 15:06 ` [Bug fortran/42945] " graeme dot parkin at btinternet dot com
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: graeme dot parkin at btinternet dot com @ 2010-02-03 14:55 UTC (permalink / raw)
To: gcc-bugs
On trying to do code coverage on set of Fortran files. After using gfortran-4
-fprofile-arcs -ftest-coverage, running test when you try to run gcov -a on one
of the Fortran files never ends (the rest are OK). The particular Fortran file
contains complex allocate commands. Can simplify and then it works.
The Fortran file is configure_arrays.f90 the modified one is
configure_arrays.modified.
--
Summary: Gcov -a fails on Fortan generated object file (infinite
loop?)
Product: gcc
Version: 4.3.4
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: graeme dot parkin at btinternet dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42945
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/42945] Gcov -a fails on Fortan generated object file (infinite loop?)
2010-02-03 14:55 [Bug fortran/42945] New: Gcov -a fails on Fortan generated object file (infinite loop?) graeme dot parkin at btinternet dot com
@ 2010-02-03 15:06 ` graeme dot parkin at btinternet dot com
2010-02-03 15:41 ` rguenth at gcc dot gnu dot org
2010-02-03 15:48 ` graeme dot parkin at btinternet dot com
2 siblings, 0 replies; 8+ messages in thread
From: graeme dot parkin at btinternet dot com @ 2010-02-03 15:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from graeme dot parkin at btinternet dot com 2010-02-03 15:06 -------
Created an attachment (id=19796)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19796&action=view)
Contains all Fortran files which give this gcov -a error
Note can use compile.sh to run compilation etc. Expects lcov in place but can
remove and replace with gcov -a. Only run under cygwin 1.7.1.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42945
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/42945] Gcov -a fails on Fortan generated object file (infinite loop?)
2010-02-03 14:55 [Bug fortran/42945] New: Gcov -a fails on Fortan generated object file (infinite loop?) graeme dot parkin at btinternet dot com
2010-02-03 15:06 ` [Bug fortran/42945] " graeme dot parkin at btinternet dot com
@ 2010-02-03 15:41 ` rguenth at gcc dot gnu dot org
2010-02-03 15:48 ` graeme dot parkin at btinternet dot com
2 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-03 15:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rguenth at gcc dot gnu dot org 2010-02-03 15:41 -------
-a is very expensive and prone to run into some endless cfg reduction, try
to avoid it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42945
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/42945] Gcov -a fails on Fortan generated object file (infinite loop?)
2010-02-03 14:55 [Bug fortran/42945] New: Gcov -a fails on Fortan generated object file (infinite loop?) graeme dot parkin at btinternet dot com
2010-02-03 15:06 ` [Bug fortran/42945] " graeme dot parkin at btinternet dot com
2010-02-03 15:41 ` rguenth at gcc dot gnu dot org
@ 2010-02-03 15:48 ` graeme dot parkin at btinternet dot com
2 siblings, 0 replies; 8+ messages in thread
From: graeme dot parkin at btinternet dot com @ 2010-02-03 15:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from graeme dot parkin at btinternet dot com 2010-02-03 15:47 -------
(In reply to comment #2)
> -a is very expensive and prone to run into some endless cfg reduction, try
> to avoid it.
>
I am actually using lcov (1.9) which uses it automatically (only by looking
into lcov discovered it used -a if available). I assume lcov uses it for some
analysis purpose. Not sure you can stop it and not sure what it does if I do.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42945
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/42945] Gcov -a fails on Fortan generated object file (infinite loop?)
[not found] <bug-42945-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2014-04-17 13:53 ` cleme051 at gmail dot com
@ 2014-04-17 15:15 ` kargl at gcc dot gnu.org
3 siblings, 0 replies; 8+ messages in thread
From: kargl at gcc dot gnu.org @ 2014-04-17 15:15 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42945
--- Comment #7 from kargl at gcc dot gnu.org ---
(In reply to OTIS from comment #6)
>
> gfortran-4.4.5
>
4.4.5 was released almost 4 years. There have numerous
releases since 4.4.5 came out. See comment #5.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/42945] Gcov -a fails on Fortan generated object file (infinite loop?)
[not found] <bug-42945-4@http.gcc.gnu.org/bugzilla/>
2013-06-23 18:13 ` dominiq at lps dot ens.fr
2014-03-23 0:13 ` dominiq at lps dot ens.fr
@ 2014-04-17 13:53 ` cleme051 at gmail dot com
2014-04-17 15:15 ` kargl at gcc dot gnu.org
3 siblings, 0 replies; 8+ messages in thread
From: cleme051 at gmail dot com @ 2014-04-17 13:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42945
--- Comment #6 from cleme051 at gmail dot com ---
Hello,
I'm trying to use lcov with a research code developed in Fortran (F77,F90) but
I have a similar problem than Graeme Parkin.
The code is structured as follow :
./CODE/
./CODE/bin
./CODE/src
./CODE/testcases
./CODE/tools
After compiling the code (gfortran-4.4.5) with the "-fprofile-arcs"
"-ftest-coverage" options, I launch the following command :
"lcov -c -z ."
Then, I run a test by using the executable located in ./CODE/bin where all the
".gda" and ".gcno" files are well generated.
The next command is the source of my problems
"lcov -b . -c -d . -o CODE.info"
More precisely, the problem comes from the following command (launched by lcov)
"gcov file-problem.gcda -o file -b -c -p -a "
and, more particularly, from the uses of the option '-a'. The ".gcov" file is
never generated and, by using "strace", I see that the process is waited (what?
I don't know).
Without the option "-a", gcov works well.
Richard Biener advices to avoid the use of '-a' but lcov uses it automatically.
My work is still in progress to understand the source of this problem but if
you have any ideas about it or advices....
Thanks you.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/42945] Gcov -a fails on Fortan generated object file (infinite loop?)
[not found] <bug-42945-4@http.gcc.gnu.org/bugzilla/>
2013-06-23 18:13 ` dominiq at lps dot ens.fr
@ 2014-03-23 0:13 ` dominiq at lps dot ens.fr
2014-04-17 13:53 ` cleme051 at gmail dot com
2014-04-17 15:15 ` kargl at gcc dot gnu.org
3 siblings, 0 replies; 8+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-03-23 0:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42945
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #5 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
No reply since 9 months, inactive since more than 4 years. Closing as
WORSFORME.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug fortran/42945] Gcov -a fails on Fortan generated object file (infinite loop?)
[not found] <bug-42945-4@http.gcc.gnu.org/bugzilla/>
@ 2013-06-23 18:13 ` dominiq at lps dot ens.fr
2014-03-23 0:13 ` dominiq at lps dot ens.fr
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: dominiq at lps dot ens.fr @ 2013-06-23 18:13 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42945
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2013-06-23
Ever confirmed|0 |1
--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Is the problem still there? I cannot reproduce it with trunk: 'gcov -abcfu
mdl.f90' executes in milliseconds (I don't have lcov).
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-04-17 15:15 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-03 14:55 [Bug fortran/42945] New: Gcov -a fails on Fortan generated object file (infinite loop?) graeme dot parkin at btinternet dot com
2010-02-03 15:06 ` [Bug fortran/42945] " graeme dot parkin at btinternet dot com
2010-02-03 15:41 ` rguenth at gcc dot gnu dot org
2010-02-03 15:48 ` graeme dot parkin at btinternet dot com
[not found] <bug-42945-4@http.gcc.gnu.org/bugzilla/>
2013-06-23 18:13 ` dominiq at lps dot ens.fr
2014-03-23 0:13 ` dominiq at lps dot ens.fr
2014-04-17 13:53 ` cleme051 at gmail dot com
2014-04-17 15:15 ` kargl at gcc dot gnu.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).