binutils Newspaper
JUNE 15, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
gprof

Gprof Fixes Qualifier Discarded Call

The gprof now correctly calls strchr on a const char *.

In annotate_source, strrchr was called on a const char *. The result is now stored in a const char *. This prevents a discarded qualifier call.

In Details

This commit fixes a discarded qualifier call in gprof/source.c. The function annotate_source now stores the result of strrchr in a const char *. This is unlikely to conflict with other subsystems.

For Context

Gprof is the GNU profiler. It is used to profile programs and identify where they spend most of their time. This information can be used to optimize programs. This commit fixes a discarded qualifier call in gprof/source.c.

Filed Under: gprofbugfix