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] | |
7sosprim.adb is not 64-bit clean, tv_usec and time_t are of type "long
int" on Linux.
The appended patch has been tested on x86_64-linux-gnu and
i686-linux-gnu. Ok to commit to mainline?
Andreas
2003-11-10 Andreas Jaeger <aj@suse.de>
* 7sosprim.adb: tv_usec of struct_timeval and time_t are long
integer.
============================================================
Index: gcc/ada/7sosprim.adb
--- ada/7sosprim.adb 21 Oct 2003 13:41:53 -0000 1.5
+++ ada/7sosprim.adb 10 Nov 2003 14:52:34 -0000
@@ -6,7 +6,7 @@
-- --
-- B o d y --
-- --
--- Copyright 1998-2002 Free Software Foundation, Inc. --
+-- Copyright (C) 1998-2003 Free Software Foundation, Inc. --
-- --
-- GNARL is free software; you can redistribute it and/or modify it under --
-- terms of the GNU General Public License as published by the Free Soft- --
@@ -47,11 +47,11 @@ package body System.OS_Primitives is
pragma Convention (C, struct_timezone);
type struct_timezone_ptr is access all struct_timezone;
- type time_t is new Integer;
+ type time_t is new Long_Integer;
type struct_timeval is record
tv_sec : time_t;
- tv_usec : Integer;
+ tv_usec : Long_Integer;
end record;
pragma Convention (C, struct_timeval);
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
Attachment:
pgp00000.pgp
Description: PGP signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |