]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Cleanups related to front-end SJLJ
authorBob Duff <duff@adacore.com>
Fri, 25 Mar 2022 14:23:08 +0000 (10:23 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 17 May 2022 08:25:48 +0000 (08:25 +0000)
commitf2ef7a0545d1c17dd7e0ec8eb85b286d445dcc3f
treefafdf0f50b48b01d8c1f1c00e3619949916282a7
parent26b0b2ddf4ab777dda4e70c7cef4b16b0493509b
[Ada] Cleanups related to front-end SJLJ

This patch cleans up some code that is left over from the front-end SJLJ
exception handling mechanism, which has been removed.
This is in preparation for fixing a finalization-related bug.

Most importantly:

    The documentation is changed: a Handled_Sequence_Of_Statements node
    CAN contain both Exception_Handlers and an At_End_Proc.

    The assertion contradicting that is removed from
    Expand_At_End_Handler.

    The From_At_End field is removed.

gcc/ada/

* sinfo.ads: Remove From_At_End.  Update comments.
* gen_il-fields.ads, gen_il-gen-gen_nodes.adb, sem_ch11.adb:
Remove From_At_End.
* exp_ch11.adb (Expand_At_End_Handler): Remove assertion.
* fe.h (Exception_Mechanism, Exception_Mechanism_Type, Has_DIC,
Has_Invariants, Is_List_Member, List_Containing): Remove
declarations that are not used in gigi.
* opt.ads (Exception_Mechanism): This is not used in gigi.
* exp_util.ads: Minor comment fix.
gcc/ada/exp_ch11.adb
gcc/ada/exp_util.ads
gcc/ada/fe.h
gcc/ada/gen_il-fields.ads
gcc/ada/gen_il-gen-gen_nodes.adb
gcc/ada/opt.ads
gcc/ada/sem_ch11.adb
gcc/ada/sinfo.ads