From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7EAC03858D33; Sat, 6 Apr 2024 11:37:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7EAC03858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712403432; bh=hs3NPquOxRZ0Le1lOvujx/GJ7uMiuwJwNEE4wB5Xt8k=; h=From:To:Subject:Date:In-Reply-To:References:From; b=c0eSgDj5kiDP/uwjmr9GmI+KnlQMAb41eGszeHEEz6uTCMkqkF2k74sn7SAlcCbeQ oFguNmkF4wejKwz5j8yFWjJzLYMwMvm7uRj/0FUZAcDBEE3ilzya0GQyBH0pOw2PA6 UuKVyu6YJly5DdG21MbUUDFWWQ1/fCSQLoyijZyI= From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/114065] gnat build with -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 fails on 32bit archs Date: Sat, 06 Apr 2024 11:37:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114065 --- Comment #17 from Eric Botcazou --- Nice work indeed, in an area that clearly needed it, thanks! Something potentially problematic though: +package body System.CRTL is + + -- In GNAT, Duration'Size =3D 64. + function Duration_To_int64 is new Ada.Unchecked_Conversion + (Duration, int64); That's not universal, see Targparm: --------------------- -- Duration Format -- --------------------- -- By default, type Duration is a 64-bit fixed-point type with a delta -- and small of 10**(-9) (i.e. it is a count in nanoseconds). This flag -- allows that standard format to be modified. Duration_32_Bits_On_Target : Boolean :=3D False; -- If True, then Duration is represented in 32 bits and the delta and -- small values are set to 20.0*(10**(-3)) (i.e. it is a count in units -- of 20 milliseconds). although Duration_32_Bit is indeed False in all the system-*.ads files.=