Landing: 56773f432d94
Project / Subsystem
gcc / ipa
Date
2026-08-24
Author
Josef Melcr
Commit
56773f432d94f5e2f1e3f2d5b106e4e60bbebcea
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ipa
- patch_id
- —
- commit_hash
- 56773f432d94f5e2f1e3f2d5b106e4e60bbebcea
- source_type
- github
- headline
- Recreate references with call statements in target clone pass
- tldr
- Fixes an ICE in the target clone pass by correctly creating references for call statements.
- author
- Josef Melcr
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ipa
- • optimization
- • compiler error
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-24T00:00:00.000Z
This commit addresses an ICE (Internal Compiler Error) in GCC’s target clone pass that occurred due to incorrect reference creation. When redirecting edges, the pass failed to associate references with their corresponding call statements. This patch modifies create_dispatcher_calls in multiple_target.cc to use the call statement variant of create_reference, ensuring that references are properly linked. A new test case pr127023.c is added to cover this specific scenario.