]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[Ada] Remove VMS specific routine that is no longer referenced
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 1 Aug 2022 08:51:46 +0000 (10:51 +0200)
committerMarc Poulhiès <poulhies@adacore.com>
Mon, 5 Sep 2022 07:21:06 +0000 (09:21 +0200)
Code cleanup related to resctrition No_Local_Allocators.

gcc/ada/

* exp_util.ads (Entry_Names_OK): Remove spec.
* exp_util.adb (Entry_Names_OK): Remove body.

gcc/ada/exp_util.adb
gcc/ada/exp_util.ads

index 2be81a544a8b845d870d5a1d2f7eea1e3183043c..0bc22a4b5a10e19f5098a2ddd2e4bad3ff67c5e6 100644 (file)
@@ -5187,19 +5187,6 @@ package body Exp_Util is
       end if;
    end Ensure_Defined;
 
-   --------------------
-   -- Entry_Names_OK --
-   --------------------
-
-   function Entry_Names_OK return Boolean is
-   begin
-      return
-        not Restricted_Profile
-          and then not Global_Discard_Names
-          and then not Restriction_Active (No_Implicit_Heap_Allocations)
-          and then not Restriction_Active (No_Local_Allocators);
-   end Entry_Names_OK;
-
    -------------------
    -- Evaluate_Name --
    -------------------
index d854672ccd8eb0aae7f92d9fea3a392cb64870e6..a21fb8b5c2a7c66ca34a2387abfadebf68a29aba 100644 (file)
@@ -509,11 +509,6 @@ package Exp_Util is
    --  used to ensure that an Itype is properly defined outside a conditional
    --  construct when it is referenced in more than one branch.
 
-   function Entry_Names_OK return Boolean;
-   --  Determine whether it is appropriate to dynamically allocate strings
-   --  which represent entry [family member] names. These strings are created
-   --  by the compiler and used by GDB.
-
    procedure Evaluate_Name (Nam : Node_Id);
    --  Remove all side effects from a name which appears as part of an object
    --  renaming declaration. Similarly to Force_Evaluation, it removes the