]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Tweak handling of Parent field in Print_Node
authorRonan Desplanques <desplanques@adacore.com>
Thu, 17 Apr 2025 08:02:01 +0000 (10:02 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Mon, 30 Jun 2025 13:47:19 +0000 (15:47 +0200)
commit1666d00bfbfe226948d147b6d561e6294227070e
tree47651d8f6f636e1e8bdd4dee4d85a5b9f8f37217
parent66ef410fa3a36bcf95785c7794b1a18687de245b
ada: Tweak handling of Parent field in Print_Node

Before this patch, Print_Node failed to honor its Prefix_Char formal
parameter when printing the Parent field. This had no consequences
because Prefix_Char was only used to print members of Nlists, and those
don't have a parent in the tree. But this patch fixes it anyway in
preparation for new debug printing features.

gcc/ada/ChangeLog:

* treepr.adb (Print_Node): Tweak Parent field printing.
gcc/ada/treepr.adb