Landing: aefe058f8699
Project / Subsystem
gcc / ipa
Date
2026-09-16
Author
Senthil Kumar Selvaraj
Commit
aefe058f869906315a7ba9c2638e258f13d65931
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ipa
- patch_id
- —
- commit_hash
- aefe058f869906315a7ba9c2638e258f13d65931
- source_type
- github
- headline
- IPA: Fix segfault when inlining fails due to target option mismatch
- tldr
- Fixes a segfault when target-specific inlining restrictions cause compilation to fail.
- author
- Senthil Kumar Selvaraj
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • optimization
- • ipa
- • inlining
- • bugfix
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-16T00:00:00.000Z
A bug in the IPA inliner caused a segfault when a target rejected inlining for reasons other than general optimization settings. This occurred because the compiler attempted to print details about the rejected inlining even when the relevant data was null. The fix adds a null check before calling the print function, preventing the crash and improving robustness for targets like MIPS with specific inlining constraints.