We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
With 12.2 rel1, we are compiling the code with "-fprofile-arcs -ftest-coverage" to collect code coverage, but linker fails to link with error message "Undefined reference to __gcov_exit". By dumping libgcov, there is no __gcov_exit function in the lib at all. Seems this is different from previous version. Is there a new approach to collect code coverage by 12.2 rel1?
Thanks.
Guess this is the right approach to collect coverage on an embedded system.
gcc.gnu.org/.../Freestanding-Environments.html