Landing: 948eb0280077
Project / Subsystem
gcc / gcc/driver
Date
2026-06-07
Author
John Ericson
Commit
948eb02800777d0318ee2a38bf32076afee739f2
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc/driver
- patch_id
- —
- commit_hash
- 948eb02800777d0318ee2a38bf32076afee739f2
- source_type
- github
- headline
- GCC driver separates `find_a_program` from `find_a_file`
- tldr
- GCC refactors its driver by creating separate functions for locating programs and files, improving code organization.
- author
- John Ericson
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- gcc:find_a_program: separate from find_a_file
- series_parts
- []
- tags
-
- • refactor
- • compiler-driver
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-06-07T00:00:00.000Z
This commit refactors the GCC driver by separating the find_a_program functionality from find_a_file. Previously, find_a_program was an overloaded version of find_a_file, leading to intertwined logic for finding executables versus general files. This change inlines a copy of find_a_file into find_a_program, creating two distinct functions. This improves the clarity and maintainability of the driver’s code by providing a cleaner separation of concerns.