ada: Use Inline aspect instead of pragma in Einfo.Utils
commitd41df0366e6dfbdc3a5a50577462a9b6689ebbfb
authorBob Duff <duff@adacore.com>
Fri, 13 Jan 2023 19:48:46 +0000 (13 14:48 -0500)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 15 May 2023 09:36:43 +0000 (15 11:36 +0200)
treeb5926ac57eda5319d83d36786d3ffc79fe55bf52
parent0ec72fa3db193354264d8c092da21f29fd473d88
ada: Use Inline aspect instead of pragma in Einfo.Utils

This package was using the Ada 83 renaming idiom for inlining
Next_Component and other Next_... procedures without inlining the
same-named functions. Using the Inline aspect avoids that sort
of horsing around.

We change all the other pragmas Inline in this package to aspects
as well, which is a more-minor improvement. Fix too-long lines
without wrapping lines.

gcc/ada/

* einfo-utils.ads, einfo-utils.adb: Get rid of the Proc_Next_...
procedures. Use Inline aspect instead of pragma Inline.
Is_Discrete_Or_Fixed_Point_Type did not have pragma Inline, but
now has the aspect; this was probably an oversight
(which illustrates why aspects are better).
gcc/ada/einfo-utils.adb
gcc/ada/einfo-utils.ads