Landing: 36ced277bcc3
Project / Subsystem
binutils / gprof
Date
2026-05-07
Author
H.J. Lu <hjl@sourceware.org>
Commit
36ced277bcc331c14c1fe38f3f9a6b25b12c7118
Source
public_inbox
Perf win
No
Breaking
No
All attributes
- project
- binutils
- subsystem
- gprof
- patch_id
- —
- commit_hash
- 36ced277bcc331c14c1fe38f3f9a6b25b12c7118
- source_type
- public_inbox
- headline
- Gprof: Fix strchr discarded qualifier call
- tldr
- Fixes a const qualifier issue in gprof's annotate_source function.
- author
- H.J. Lu <hjl@sourceware.org>
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • gprof
- • type safety
- • const qualifier
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-07T00:00:00.000Z
The annotate_source function in gprof now correctly handles const char * types when calling strrchr. This resolves a discarded qualifier warning. It ensures type safety when processing source code annotations.