Landing: a514707ffd7d

Project / Subsystem

gcc / gcc/driver

Date

2026-06-13

Author

Jeff Law

Commit

a514707ffd7d58b140686036c2dece43ecb7d33c

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/driver
patch_id
commit_hash
a514707ffd7d58b140686036c2dece43ecb7d33c
source_type
github
headline
GCC now searches for machine-prefixed tools in additional locations.
tldr
GCC's `find_a_program` function now includes machine-prefixed program names (e.g., `x86_64-linux-gnu-as`) in its search paths for cross-compilation.
author
Jeff Law
outcome
committed
performance_win
false
breaking_change
false
series_id
gcc:find_a_program: search with machine prefix in some cases
series_parts
[]
tags
  • cross-compilation
  • toolchain
  • search-paths
  • driver
  • usability
discussion_id_link
bugzilla_pr
date
2026-06-13T00:00:00.000Z

The find_a_program utility in GCC now intelligently searches for machine-prefixed programs, such as x86_64-linux-gnu-as, alongside existing search patterns. This enhancement addresses a long-standing issue in cross-compilation environments where GCC’s previous search logic often led to confusion by prioritizing unprefixed tools or platform-specific directory structures. By aligning with common cross-compilation practices and similar behaviors in other toolchains like Clang/LLVM, GCC makes tool discovery more intuitive and reliable for developers working with multiple architectures.