[gcc/devel/omp/gcc-9] s-osinte__kfreebsd-gnu.ads (clockid_t): Make type definition public.

Tobias Burnus burnus@gcc.gnu.org
Thu Mar 5 14:07:00 GMT 2020


https://gcc.gnu.org/g:678cb3594903cd4ae99a70c7b071f38b7c5f8e4e

commit 678cb3594903cd4ae99a70c7b071f38b7c5f8e4e
Author: James Clarke <jrtc27@debian.org>
Date:   Thu Jul 4 13:36:08 2019 +0000

    s-osinte__kfreebsd-gnu.ads (clockid_t): Make type definition public.
    
    2019-07-04  James Clarke <jrtc27@debian.org>
    
            * libgnarl/s-osinte__kfreebsd-gnu.ads (clockid_t): Make type
            definition public.
            (CLOCK_REALTIME): Make value public.
    
    From-SVN: r273081

Diff:
---
 gcc/ada/ChangeLog                           | 6 ++++++
 gcc/ada/libgnarl/s-osinte__kfreebsd-gnu.ads | 8 ++------
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index 1b9140b..5d37746 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -1,3 +1,9 @@
+2019-07-04  James Clarke <jrtc27@debian.org>
+
+	* libgnarl/s-osinte__kfreebsd-gnu.ads (clockid_t): Make type
+	definition public.
+	(CLOCK_REALTIME): Make value public.
+
 2019-06-29  Eric Botcazou  <ebotcazou@adacore.com>
 
 	* gcc-interface/decl.c (gnat_to_gnu_entity): Beep up comment on SAVED,
diff --git a/gcc/ada/libgnarl/s-osinte__kfreebsd-gnu.ads b/gcc/ada/libgnarl/s-osinte__kfreebsd-gnu.ads
index f46bbda..aa6c1a8 100644
--- a/gcc/ada/libgnarl/s-osinte__kfreebsd-gnu.ads
+++ b/gcc/ada/libgnarl/s-osinte__kfreebsd-gnu.ads
@@ -206,9 +206,8 @@ package System.OS_Interface is
    function nanosleep (rqtp, rmtp : access timespec) return int;
    pragma Import (C, nanosleep, "nanosleep");
 
-   type clockid_t is private;
-
-   CLOCK_REALTIME : constant clockid_t;
+   type clockid_t is new int;
+   CLOCK_REALTIME : constant clockid_t := 0;
 
    function clock_gettime
      (clock_id : clockid_t;
@@ -607,9 +606,6 @@ private
    end record;
    pragma Convention (C, timespec);
 
-   type clockid_t is new int;
-   CLOCK_REALTIME : constant clockid_t := 0;
-
    type pthread_attr_t is record
       detachstate   : int;
       schedpolicy   : int;



More information about the Gcc-cvs mailing list