Landing: a1731c149c74
Project / Subsystem
gcc / ada
Date
2026-03-09
Author
Viljar Indus
Commit
a1731c149c745be72ed3465f699936cd31f27cf9
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- a1731c149c745be72ed3465f699936cd31f27cf9
- source_type
- github
- headline
- Ada: Calculate the sloc adjustment for inlined static functions
- tldr
- The Ada compiler now correctly calculates source location when inlining static functions, improving error message accuracy.
- author
- Viljar Indus
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • inlining
- • debugging
- • error messages
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-03-09T00:00:00.000Z
This commit enhances the Ada compiler’s inlining of static functions by accurately calculating source location adjustments. This ensures that error messages point to the correct location in the source code, even after inlining, improving the debugging experience. It achieves this by adding a Source File Index entry for the inlined call and applying necessary source location adjustments.