Article View: gnu.gcc.help
Article #50370Using gcc with tcov(1)
From: SG/EBC/N/TG Lennart Preuss
Date: Mon, 04 Oct 1993 09:51
Date: Mon, 04 Oct 1993 09:51
43 lines
2675 bytes
2675 bytes
I'm trying to do statement coverage of C sources using gcc -a and tcov(1). This
works fine with then SUN acc-compiler, but programs compiled by gcc persistently
claim they can't find the corresponding .d-file -- Which is hardly surprising,
considering it ain't there.
What i'd like to know is: Is this a known gcc problem (and if so, is there a fix ?),
have i bungled the installation of gcc, or is there some other magic required to make
this work ?
-------------------------------Source for a.c----------------------------------
void main(void)
{
printf("Hello World!\n");
}
------------------------------Compiling a.c------------------------------------
gcc -a -v a.c
Reading specs from /usr/local/GCC/lib/gcc-lib/sparc-sun-sunos4.1.1/2.4.5/specs
gcc version 2.4.5
/usr/local/GCC/lib/gcc-lib/sparc-sun-sunos4.1.1/2.4.5/cpp -lang-c -v -undef -D__GNUC__=2 -Dsparc -Dsun -Dunix -D__GCC_NEW_VARARGS__ -D__sparc__ -D__sun__ -D__unix__ -D__GCC_NEW_VARARGS__ -D__sparc -D__sun -D__unix -D__GCC_NEW_VARARGS__ a.c /usr/tmp/cca00829.i
GNU CPP version 2.4.5 (sparc)
/usr/local/GCC/lib/gcc-lib/sparc-sun-sunos4.1.1/2.4.5/cc1 /usr/tmp/cca00829.i -quiet -dumpbase a.c -a -version -o /usr/tmp/cca00829.s
GNU C version 2.4.5 (sparc) compiled by GNU C version 2.4.5.
as -o /usr/tmp/cca008291.o /usr/tmp/cca00829.s
/usr/local/GCC/lib/gcc-lib/sparc-sun-sunos4.1.1/2.4.5/ld -e start -dc -dp /lib/crt0.o -L/usr/local/GCC/lib/gcc-lib/sparc-sun-sunos4.1.1/2.4.5 -L/usr/local/GCC/lib /usr/tmp/cca008291.o -lgcc -lc /usr/lib/bb_link.o -lgcc
------------------------------Running a.out----------------------------------
a.out
Hello World!
count: Could not open a.d, errno 2
------------------------------Output of ls-------------------------------------
ls *.d
ls: No match.
ls a.*
-rw-r--r-- 1 qbclepr 49 Sep 30 08:51 a.c
-rwxr-xr-x 1 qbclepr 24576 Oct 1 10:12 a.out*
-------------------------------------------------------------------------------
Technical Details
Message-ID:
<1993Oct4.095152.12647@ericsson.se>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!pipex!sunic!ericom!newsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,a343ca3e0c5f59d5,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-10-04 02:56:40 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!pipex!sunic!ericom!news From: qbclepr@ebc.ericsson.se (SG/EBC/N/TG Lennart Preuss) Subject: Using gcc with tcov(1) Message-ID: <1993Oct4.095152.12647@ericsson.se> Keywords: -a, SunOS 4.1.3, gcc 2.4.5, tcov(1), SUN SPARC XPC Sender: news@ericsson.se Nntp-Posting-Host: ebcw519.ebc.ericsson.se Reply-To: qbclepr@ebc.ericsson.se Organization: Ericsson Business Networks AB Date: Mon, 4 Oct 1993 09:51:52 GMT Lines: 47