]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Revert to old pretty-printing of internal entities for CodePeer
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 14 Feb 2023 16:05:59 +0000 (17:05 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 23 May 2023 07:50:59 +0000 (09:50 +0200)
commit35a035c210e57ea2172078ff59b76bb75baf3b6d
treeb3de4d88a534c6d4740fb967ccee2b399b1f5bbe
parente32c1944bbad9e3dad86a3f1a010fab671953130
ada: Revert to old pretty-printing of internal entities for CodePeer

Add some defensive code to get pretty-printed CodePeer outputs for ACATS
back to shape. At least some of this code appears to be redundant and
perhaps unnecessary, but we can this up later.

Expression pretty-printer should not be called with
N_Defining_Identifier nodes at all, since they are not expressions.
However, for those that come not from source, CodePeer expects that the
Ident_Image routine will convert the internal names like "xL" to their
corresponding human-readable representation like "x'Accesibility_Level".

gcc/ada/

* pprint.adb (Expression_Image): Restore some of the old pretty-printing
for CodePeer.
gcc/ada/pprint.adb