Landing: f62f68e7c4bd

Project / Subsystem

gcc / gcc/driver

Date

2026-06-13

Author

John Ericson

Commit

f62f68e7c4bde0385fbd2dba3e926586dd2f1281

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/driver
patch_id
commit_hash
f62f68e7c4bde0385fbd2dba3e926586dd2f1281
source_type
github
headline
Callback for `for_each_path` now indicates machine-disambiguation.
tldr
The `for_each_path` function in GCC's driver now passes a boolean flag to its callback, indicating whether the current directory in the search path is machine-…
author
John Ericson
outcome
committed
performance_win
false
breaking_change
false
series_id
gcc:for_each_path: pass to callback whether dir is machine-disambiguated
series_parts
[]
tags
  • driver
  • internal-api
  • refactoring
  • search-paths
discussion_id_link
bugzilla_pr
date
2026-06-13T00:00:00.000Z

This change modifies the for_each_path function in GCC’s driver to include a new boolean argument in its callback. This argument signifies whether the directory being processed is machine-disambiguated, meaning it’s intended for a specific target architecture. This added context allows subsequent logic, such as find_a_program, to make more informed decisions about which filenames to search for, paving the way for improved tool discovery in cross-compilation scenarios.