<gcc-bugzi...@gcc.gnu.org>
Sent: Fri, 19 Apr 2024 09:55:38
To: gej...@rediffmail.com
Subject: [Bug gcov-profile/114735] Gcov not working with gcc version 11.4.0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114735
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I wil
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114735
--- Comment #8 from Andrew Pinski ---
I will try to add something to https://gcc.gnu.org/gcc-11/porting_to.html in
the next few weeks.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114735
--- Comment #7 from Gejoe ---
Thanks Andrew.
It would be better to document this change post gcc11 apart from a sample
example as generally it is understood that --coverage flag is enough for gcc to
get coverage enabled build done and then gco
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114735
--- Comment #6 from Andrew Pinski ---
(In reply to Gejoe from comment #4)
> Thanks Andrew for the info.
>
> So, does this mean that every program which was compiled earlier with one
> step (ie. gcc --coverage srcfile.c) of gcc/g++ will have to
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114735
--- Comment #5 from Gejoe ---
my previous message is after seeing this change :
https://gcc.gnu.org/git/?p=gcc.git;a=blobdiff;f=gcc/doc/gcov.texi;h=22e42da2ea66db568e6c563c4f2e619fe2c9ae92;hp=61250c9407e1d0e49a693d0fcc4e4c38d0e6afff;hb=452283bd0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114735
--- Comment #4 from Gejoe ---
Thanks Andrew for the info.
So, does this mean that every program which was compiled earlier with one step
(ie. gcc --coverage srcfile.c) of gcc/g++ will have to be split to 2 steps
using -c option first and then
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114735
--- Comment #3 from Andrew Pinski ---
The "fix" was to how to build to be able to use gcov. Basically you build to an
object file first and then link the object file to get the old behavior and the
behavior that gcov expects.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114735
--- Comment #2 from Gejoe ---
May I know where the fix has gone to , meaning the gcc version which will not
have this issue of gcov failure ?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114735
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---