]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Tech debt: Remove exception handling from aspects
authorBob Duff <duff@adacore.com>
Sun, 1 Feb 2026 17:47:23 +0000 (12:47 -0500)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 26 May 2026 08:38:19 +0000 (10:38 +0200)
commitca2de7fa08fe4ecc7e874a95a3e2a547f053e114
treed3988c7533acde8655c1e028884fcaa3a00b9baf
parent5822a843ce51c6af030311af4f2de66727d480dd
ada: Tech debt: Remove exception handling from aspects

Remove the Aspect_Exit exception and related code.
The big hammer of exceptions is not needed here,
and it gets in the way of future refactoring.
Some comments were slightly wrong; remove them instead of fixing
them.

gcc/ada/ChangeLog:

* sem_ch13.adb (Analyze_One_Aspect): Remove the exception
declaration, raises, and handler. Inline the code in
Check_Expr_Is_OK_Static_Expression, which was called only once.
gcc/ada/sem_ch13.adb