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: Ada runtime 64 bit fixes


Andreas Schwab <schwab@suse.de> writes:

> The POSIX style System.OS_Primitives assumes that time_t == Integer.  This
> is wrong for 64 bit architectures, where time_t is a 64 bit integer.  The
> same is true for the tv_usec member of struct_timeval.  For 32 bit targets
> this should make no difference.

This is certainly not true for all 64-bit systems: e.g. Tru64 UNIX still has

typedef int             time_t;

in <time_t.h>.  Similarly on IRIX 6: the 32-bit ABIs use

typedef long            time_t;

while the N64 ABI (LP64) has

typedef int             time_t;

in <sys/types.h>.

Only Solaris 7 and up always has

typedef long            time_t;

i.e. time_t is different on 32-bit and 64-bit kernels.

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University

Email: ro@TechFak.Uni-Bielefeld.DE


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