[Ada] Add note about gnatcov reliance on thunk names
authorThomas Quinot <quinot@adacore.com>
Thu, 6 Feb 2020 18:03:24 +0000 (19:03 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 5 Jun 2020 12:17:54 +0000 (08:17 -0400)
2020-06-05  Thomas Quinot  <quinot@adacore.com>

gcc/ada/

* exp_disp.adb (Expand_Interface_Thunk): Add comment about
gnatcov reliance on specific name used for thunks.

gcc/ada/exp_disp.adb

index 69c536f..a812556 100644 (file)
@@ -2137,6 +2137,11 @@ package body Exp_Disp is
       end loop;
 
       Thunk_Id := Make_Temporary (Loc, 'T');
+
+      --  Note: any change to this symbol name needs to be coordinated
+      --  with GNATcoverage, as that tool relies on it to identify
+      --  thunks and exclude them from source coverage analysis.
+
       Set_Ekind (Thunk_Id, Ekind (Prim));
       Set_Is_Thunk (Thunk_Id);
       Set_Convention (Thunk_Id, Convention (Prim));