code-coverage of GCC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



HI !

 GCC Version for compiling gcc 4.7.2 (Debian 4.7.2-5)
 GCC Version being compiled 4.7.2 
 Distribution Debian wheezy
 Host/Target amd64 

 For the qualification of GCC we wanted to compile gcc with code coverage 
 support so that we could get information about test-coverage of gcc itself
 Unfortunately this did not work out yet. Just setting the CFLAGS in the
 environment to include -fprofile-arcs -ftest-coverage does not work - the
 build system removes them - looking at:

 in src/Makefile.tpl:
 ...
 # * Likewise, we force-disable coverage flags, since the installed
 #   compiler probably has never heard of them.
 ...
 STAGE1_CONFIGURE_FLAGS = --disable-intermodule $(STAGE1_CHECKING) \
          --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"

 adding -fprofile-arcs -ftest-coverage and/or removing the --disable-coverage 
 did not resolve the issue either.

 passing CFLAGS_FOR_TARGET=" -O2 -g -fprofile-arcs -ftest-coverage " on the 
 command-line also did not do it (even when --disable-coverage was removed) .
 
 so I was just wondering if it is in principle possible to compile gcc with
 gcc and enable coverage or if there is some principle problem with that ?

 And if anyone has a hint how/where to enable coverage if it is possible I
 would be thankful - have been trying to unravel the build but have not
 been too succesful up to now...:)

thx!
hofrat




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux