https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114735
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (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 be split to 2 > steps using -c option first and then processing the '.o' file ? Is this > change documented in the GCC gcov manual well ? > https://gcc.gnu.org/onlinedocs/gcc/Invoking-Gcov.html > > I just happened to see that example today in the "Invoking Gcov" section and > was thinking if this has to be done going forward for all recent gcc > versions (post 11.0) or is just confined to version 11.x gcc. No it was changed for all versions post GCC 11+ (including GCC 11).