This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Ada runtime 64 bit fixes
- From: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 06 Dec 2001 12:55:38 +0100
- Subject: Re: Ada runtime 64 bit fixes
- References: <je4rn5clu1.fsf@sykes.suse.de>
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