This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Please revert the patches in bug #54040 and #59346 and special case x32
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Arnaud Charlet <charlet at adacore dot com>, svante dot signell at gmail dot com, debian-ada <debian-ada at lists dot debian dot org>
- Date: Wed, 09 Apr 2014 23:59:58 +0200
- Subject: Re: Please revert the patches in bug #54040 and #59346 and special case x32
- Authentication-results: sourceware.org; auth=none
- References: <1395668239 dot 5365 dot 43 dot camel at G3620 dot my dot own dot domain> <2840082 dot UenIYZzbyB at polaris> <CAMe9rOqPbuZu2eePeTzy0VU_hsZ3YNdcx1gid01ipNHYYg92cQ at mail dot gmail dot com>
> Now I got
>
> /export/build/gnu/gcc-x32/build-x86_64-linux/./gcc/xgcc
> -B/export/build/gnu/gcc-x32/build-x86_64-linux/./gcc/
> -B/usr/gcc-4.9.0-x32/x86_64-unknown-linux-gnu/bin/
> -B/usr/gcc-4.9.0-x32/x86_64-unknown-linux-gnu/lib/ -isystem
> /usr/gcc-4.9.0-x32/x86_64-unknown-linux-gnu/include -isystem
> /usr/gcc-4.9.0-x32/x86_64-unknown-linux-gnu/sys-include -c -g -O2
> -mx32 -fpic -W -Wall -gnatpg -nostdinc -mx32 s-osinte.adb -o
> s-osinte.o
>
> s-osinte.adb:101:17: operator for type "System.Linux.time_t" is not
> directly visible
> s-osinte.adb:101:17: use clause would make operation legal
> make[11]: *** [s-osinte.o] Error 1
Probably:
Index: s-osinte-x32.adb
===================================================================
--- s-osinte-x32.adb (revision 209244)
+++ s-osinte-x32.adb (working copy)
@@ -90,6 +90,7 @@ 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);
--
Eric Botcazou