Landing: 073b4656d07e

Project / Subsystem

gcc / gcc/driver

Date

2026-06-07

Author

John Ericson

Commit

073b4656d07e40f83a1db7f4462ab2d68b1875a2

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/driver
patch_id
commit_hash
073b4656d07e40f83a1db7f4462ab2d68b1875a2
source_type
github
headline
The GCC driver simplifies `find_a_program` and `find_a_file` functions
tldr
GCC refactors its driver code by streamlining file and program lookup functions, removing redundant parameters and logic.
author
John Ericson
outcome
committed
performance_win
false
breaking_change
false
series_id
gcc:driver: simplify `find_a_program` and `find_a_file`
series_parts
[]
tags
  • refactor
  • compiler-driver
discussion_id_link
bugzilla_pr
date
2026-06-07T00:00:00.000Z

This commit simplifies the find_a_program and find_a_file functions within the GCC driver. Previously, these functions shared a common mode parameter for access checks, but it was found that find_a_file always performed a read check (R_OK) and find_a_program always performed an execute check (X_OK). By removing this redundant parameter and other dead code, the driver’s codebase becomes cleaner and easier to maintain. This clarifies the intent of each function.