From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 993D1386000B; Sun, 10 Mar 2024 03:37:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 993D1386000B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1710041834; bh=M11ekBh6KZiEYwWgVnvf3Xf6mHkUgrN2VV8vUOipqNk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=B/z0vMxo75m0DsRaEC8J8TXroydr0EeYTqOKQALBkunZf2aWX5Oz51xLp9MJaPhmk K0BI5+JoH27Y279mFtxbpoNIQ+CwwR+jJ2whmQcOKr1hj+rsEBcA1YEkv36jKwR+7L QkQw73WxtKdLJ7bD5JQ5LXTL2jgX7iY2QoAEJ9U4= From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/93727] Fortran 2018: EX edit descriptor Date: Sun, 10 Mar 2024 03:37:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: jvdelisle 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=3D93727 --- Comment #5 from Jerry DeLisle --- I have been studying this a bit by looking at the 2023 std and functionalit= y of printf(). Specifically printf() provides the 'A' descriptor which can be used for flo= at (kind=3D4) and double (kind=3D8). It will accept a long double (80 bit aka kind=3D10). I am noticing that the results of double and long double are identical, no extra precision visible. It is very possible I am not doing t= hat correctly. I do not see anything related to quad precision floats. I am posting this = as i think we will have to do some of our own translating byte portions of floats ourselves. Portability may be an issue. For example IBM 360 128bit precisio= n or some other processor may not follow the same internal representations. Regardless I have preliminary code for the frontend that results in calling anew fucntion write_ex in transfer.c I think that kind=3D4 and kind=3D8 will be fine. Any thoughts on kind=3D10 = or kind=3D16 I would appreciate as I further explore this.=