https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114720
--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by J?rgen Kvalsvik <j...@gcc.gnu.org>: https://gcc.gnu.org/g:18e881ebd9f4b9429c652a81b8ceee84275bdade commit r14-9973-g18e881ebd9f4b9429c652a81b8ceee84275bdade Author: Jørgen Kvalsvik <j...@lambda.is> Date: Mon Apr 15 14:14:26 2024 +0200 Guard longjmp in test to not inf loop [PR114720] Guard the longjmp to not infinitely loop. The longjmp (jump) function is called unconditionally to make test flow simpler, but the jump destination would return to a point in main that would call longjmp again. The longjmp is really there to exercise the then-branch of setjmp, to verify coverage is accurately counted in the presence of complex edges. PR gcov-profile/114720 gcc/testsuite/ChangeLog: * gcc.misc-tests/gcov-22.c: Guard longjmp to not loop.