[Ada] Info. gathering in preparation for more efficiency improvements
authorBob Duff <duff@adacore.com>
Mon, 9 Aug 2021 23:06:18 +0000 (19:06 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 1 Oct 2021 06:13:36 +0000 (06:13 +0000)
commita6fe12b0a9a375e655945ff385810661d8bb494c
tree56f4b101a3296d6c88ae641309ba536ebbd728be
parente0ab2003576fd34f37afbf5cd39d714b261f3f05
[Ada] Info. gathering in preparation for more efficiency improvements

gcc/ada/

* atree.adb: Gather and print statistics about frequency of
getter and setter calls.
* atree.ads (Print_Statistics): New procedure for printing
statistics.
* debug.adb: Document -gnatd.A switch.
* gen_il-gen.adb: Generate code for statistics gathering.
Choose the offset of Homonym early.  Misc cleanup.  Put more
comments in the generated code.
* gen_il-internals.ads (Unknown_Offset): New value to indicate
that the offset has not yet been chosen.
* gnat1drv.adb: Call Print_Statistics.
* libgnat/s-imglli.ads: Minor comment fix.
* output.ads (Write_Int_64): New procedure to write a 64-bit
value.  Needed for new statistics, and could come in handy
elsewhere.
* output.adb (Write_Int_64): Likewise.
* sinfo.ads: Remove obsolete comment. The xtreeprs program no
longer exists.
* types.ads: New 64-bit types needed for new statistics.
gcc/ada/atree.adb
gcc/ada/atree.ads
gcc/ada/debug.adb
gcc/ada/gen_il-gen.adb
gcc/ada/gen_il-internals.ads
gcc/ada/gnat1drv.adb
gcc/ada/libgnat/s-imglli.ads
gcc/ada/output.adb
gcc/ada/output.ads
gcc/ada/sinfo.ads
gcc/ada/types.ads