From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EE303384A02C; Wed, 3 Mar 2021 09:16:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EE303384A02C From: "nickpapior at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/99355] -freal-X-real-Y -freal-Z-real-X promotes Z to Y Date: Wed, 03 Mar 2021 09:16:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 10.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nickpapior at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2021 09:16:43 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99355 --- Comment #3 from Nick --- Yes, real*4 -> real*16.=20 I agree that the option semantics are not clear. However, the documentation says: Promote all REAL(KIND=3DM) entities to REAL(KIND=3DN) entities. If REAL(KIN= D=3DN) is unavailable, then an error will be issued. All other real kind types are unaffected by this option. These options should be used with care and may n= ot be suitable for your codes. Areas of possible concern include calls to exte= rnal procedures, alignment in EQUIVALENCE and/or COMMON, generic interfaces, BOZ literal constant conversion, and I/O. Inspection of the intermediate representation of the translated Fortran code, produced by -fdump-tree-original, is suggested. >>From this I read that no *double* promotions are done. However, the text is= n't clear either. I would just not assume that *everything* gets promoted, especially since t= here is a -freal-4-real-16 option, so users can already be explicit. I guess this also applies to the -finteger-4-integer-8 and friends (unteste= d)=