]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: update Ada_Version_Type in fe.h to match opt.ads
authorBob Duff <duff@adacore.com>
Mon, 30 Jan 2023 21:56:08 +0000 (16:56 -0500)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 22 May 2023 08:44:07 +0000 (10:44 +0200)
commite7f7018c2a5f07e6e8a045b6ba18c023daed7010
tree79dac7fea3ae46595901287f9d423bc8fa9de58f
parentdf0ac6e158727064dd089be9051a82c26bd66880
ada: update Ada_Version_Type in fe.h to match opt.ads

Remove Ada_With_Extensions, which is not used on the C side.
Do not add Ada_With_Core_Extensions and Ada_With_All_Extensions,
which are also not used on the C side, and on the Ada side
are always used via functions All_Extensions_Allowed and
Core_Extensions_Allowed. Explain this in comments.

Move the functions closer to the type declaration,
so the usage style is clearer.

Cleanup only -- no change in compiler behavior.

gcc/ada/

* fe.h: Remove Ada_With_Extensions and add commentary.
* opt.ads: Rearrange code and add commentary.
gcc/ada/fe.h
gcc/ada/opt.ads