summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-10-02 03:35:55 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-10-02 03:35:55 -0700
commit8dc137228f4c97dbd03084270720731e7f037cc4 (patch)
tree559d80f629e4aad30206d7cfb25320f92f0af42d
parent3ff28a9d44de84d2cc3925fd84ea206b323f9169 (diff)
downloadgcc-hjl/pr82384.tar.gz
Fix x32 Adahjl/pr82384
-rw-r--r--gcc/ada/libgnarl/s-linux__x32.ads2
-rw-r--r--gcc/ada/libgnarl/s-osinte__x32.adb1
2 files changed, 1 insertions, 2 deletions
diff --git a/gcc/ada/libgnarl/s-linux__x32.ads b/gcc/ada/libgnarl/s-linux__x32.ads
index 823d806ea84..25407392e07 100644
--- a/gcc/ada/libgnarl/s-linux__x32.ads
+++ b/gcc/ada/libgnarl/s-linux__x32.ads
@@ -45,7 +45,7 @@ package System.Linux is
-- Time --
----------
- type time_t is new Long_Long_Integer;
+ subtype time_t is Long_Long_Integer;
subtype clockid_t is Interfaces.C.int;
type timespec is record
diff --git a/gcc/ada/libgnarl/s-osinte__x32.adb b/gcc/ada/libgnarl/s-osinte__x32.adb
index a2874be3d69..6bb80cd6d0f 100644
--- a/gcc/ada/libgnarl/s-osinte__x32.adb
+++ b/gcc/ada/libgnarl/s-osinte__x32.adb
@@ -90,7 +90,6 @@ package body System.OS_Interface is
S : time_t;
F : Duration;
- use type System.Linux.time_t;
begin
S := time_t (Long_Long_Integer (D));
F := D - Duration (S);