[Ada] Small cleanup in interface with GCC back-end
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 8 Jun 2020 19:21:39 +0000 (21:21 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 16 Jul 2020 09:18:04 +0000 (05:18 -0400)
gcc/ada/

* fe.h (Is_OK_Static_Expression): Delete.
* sem_eval.ads (Is_OK_Static_Expression): Remove WARNING note.

gcc/ada/fe.h
gcc/ada/sem_eval.ads

index 463a89c..8ad16c2 100644 (file)
@@ -280,10 +280,8 @@ extern Boolean Is_Derived_Type                     (Entity_Id);
 /* sem_eval: */
 
 #define Compile_Time_Known_Value       sem_eval__compile_time_known_value
-#define Is_OK_Static_Expression                sem_eval__is_ok_static_expression
 
 extern Boolean Compile_Time_Known_Value        (Node_Id);
-extern Boolean Is_OK_Static_Expression (Node_Id);
 
 /* sem_util: */
 
index 97160ee..76e4bdf 100644 (file)
@@ -427,8 +427,6 @@ package Sem_Eval is
    --  for compile time evaluation purposes. Use Compile_Time_Known_Value
    --  instead (see section on "Compile-Time Known Values" above).
 
-   --  WARNING: There is a matching C declaration of this subprogram in fe.h
-
    function Is_OK_Static_Range (N : Node_Id) return Boolean;
    --  Determines if range is static, as defined in RM 4.9(26), and also checks
    --  that neither bound of the range raises constraint error, thus ensuring