https://gcc.gnu.org/g:9334a4a2c5ecfb56997a38030a8963f4462e7436
commit r16-1309-g9334a4a2c5ecfb56997a38030a8963f4462e7436 Author: Ronan Desplanques <desplanq...@adacore.com> Date: Fri Feb 28 12:24:04 2025 +0100 ada: Remove incorrect comment This patchs removes a comment that was incorrect, as noted by a ??? comment that was right after and that this patch also removes. gcc/ada/ChangeLog: * atree.ads (Rewrite): Remove comment. Diff: --- gcc/ada/atree.ads | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gcc/ada/atree.ads b/gcc/ada/atree.ads index c8cc2bcf0c4f..142616921421 100644 --- a/gcc/ada/atree.ads +++ b/gcc/ada/atree.ads @@ -536,11 +536,7 @@ package Atree is procedure Rewrite (Old_Node, New_Node : Node_Id); -- This is used when a complete subtree is to be replaced. Old_Node is the -- root of the old subtree to be replaced, and New_Node is the root of the - -- newly constructed replacement subtree. The actual mechanism is to swap - -- the contents of these two nodes fixing up the parent pointers of the - -- replaced node (we do not attempt to preserve parent pointers for the - -- original node). - -- ??? The above explanation is incorrect, instead Copy_Node is called. + -- newly constructed replacement subtree. -- -- Note: New_Node may not contain references to Old_Node, for example as -- descendants, since the rewrite would make such references invalid. If