Re: [PATCH 4/4] gcov: Improve -fprofile-update=atomic

2023-11-21 Thread Jakub Jelinek
On Wed, Nov 15, 2023 at 06:51:10AM +0100, Sebastian Huber wrote: > sorry, in the patch I should use targetm.have_atomic instead of > TARGET_HAVE_LIBATOMIC. I've noticed the r14-5579 commit introduced some formatting issues, this patch fixes what I saw. In particular, operators don't go at the e

Re: [PATCH 4/4] gcov: Improve -fprofile-update=atomic

2023-11-14 Thread Sebastian Huber
Hello,   sorry, in the patch I should use targetm.have_atomic instead of TARGET_HAVE_LIBATOMIC.   --- embedded brains GmbH & Co. KG Herr Sebastian HUBER Dornierstr. 4 82178 Puchheim Germany email: sebastian.hu...@embedded-brains.de phone: +49-89-18 94 741 - 16 fax: +49-89-18 94 741 - 08

[PATCH 4/4] gcov: Improve -fprofile-update=atomic

2023-11-14 Thread Sebastian Huber
The code coverage support uses counters to determine which edges in the control flow graph were executed. If a counter overflows, then the code coverage information is invalid. Therefore the counter type should be a 64-bit integer. In multi-threaded applications, it is important that the counter