This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Please revert the patches in bug #54040 and #59346 and special case x32


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]