Landing: eb3a3996851e

Project / Subsystem

gcc / ada

Date

2026-03-25

Author

Viljar Indus

Commit

eb3a3996851e4272f1e672eca9d0e76f92291434

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ada
patch_id
commit_hash
eb3a3996851e4272f1e672eca9d0e76f92291434
source_type
github
headline
Improve Ada error message insertion methods
tldr
This commit refactors Ada's error message insertion logic to improve code organization and remove redundancy.
author
Viljar Indus
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • ada
  • error handling
  • refactoring
discussion_id_link
bugzilla_pr
date
2026-03-25T00:00:00.000Z

This commit reorganizes the error message insertion logic within the Ada compiler, extracting it into dedicated subprograms for inserting new messages and determining the correct insertion point. This change simplifies the Error_Msg_Internal function, removes the need for a separate Set_Prev_Pointers pass, and improves the overall structure and maintainability of the error handling code.