Landing: 177b84bd12e0

Project / Subsystem

gcc / gcc/gcov

Date

2025-07-09

Author

Sebastian Huber

Commit

177b84bd12e00f6f3c0f43aa8e8e101264119201

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
gcc/gcov
patch_id
—
commit_hash
177b84bd12e00f6f3c0f43aa8e8e101264119201
source_type
github
headline
gcov: Split atomic bitwise-or for 64-bit counters on targets with 32-bit atomics
tldr
gcc: Gcov updates 64-bit atomic bitwise-or for condition/decision coverage on targets with only 32-bit atomics.
author
Sebastian Huber
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • gcc
  • • gcov
  • • risc-v
  • • optimization
  • • atomic
discussion_id_link
—
bugzilla_pr
—
date
2025-07-09T00:00:00.000Z

For targets that only support 32-bit atomic operations, such as 32-bit RISC-V, the 64-bit atomic bitwise-or operation for updating gcov counters is now split into two 32-bit operations. This change optimizes counter updates by avoiding calls to libatomic and folding away compile-time zero halves, while maintaining the existing behavior for targets with 64-bit atomic instructions.