Re: [PATCH] gcov: Add -fprofile-update=force-atomic

2021-08-09 Thread Sebastian Huber
On 09/08/2021 10:00, Sebastian Huber wrote: If get_gcov_type() returns a 64-bit type, then 64-bit atomic operations in hardware are required for the "atomic" method. Add a new method to force atomic operations even if a library implementation (libatomic) must be used. gcc/ *

Re: [PATCH] gcov: Add -fprofile-update=force-atomic

2021-08-09 Thread Sebastian Huber
On 09/08/2021 12:19, Richard Biener wrote: On Mon, Aug 9, 2021 at 10:01 AM Sebastian Huber wrote: If get_gcov_type() returns a 64-bit type, then 64-bit atomic operations in hardware are required for the "atomic" method. Add a new method to force atomic operations even if a library

Re: [PATCH] gcov: Add -fprofile-update=force-atomic

2021-08-09 Thread Richard Biener via Gcc-patches
On Mon, Aug 9, 2021 at 10:01 AM Sebastian Huber wrote: > > If get_gcov_type() returns a 64-bit type, then 64-bit atomic operations in > hardware are required for the "atomic" method. Add a new method to force > atomic operations even if a library implementation (libatomic) must be used. I do

[PATCH] gcov: Add -fprofile-update=force-atomic

2021-08-09 Thread Sebastian Huber
If get_gcov_type() returns a 64-bit type, then 64-bit atomic operations in hardware are required for the "atomic" method. Add a new method to force atomic operations even if a library implementation (libatomic) must be used. gcc/ * common.opt (fprofile-update): Add force-atomic method.