From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9600B3854802; Thu, 4 Mar 2021 14:13:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9600B3854802 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/99355] -freal-X-real-Y -freal-Z-real-X promotes Z to Y Date: Thu, 04 Mar 2021 14:13:55 +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: burnus at gcc dot gnu.org X-Bugzilla-Status: REOPENED 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: Thu, 04 Mar 2021 14:13:55 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99355 --- Comment #12 from Tobias Burnus --- Additional patch =E2=80=93 my need some cleanup & check whether the other flags agree with the description. However, it should match the implementation: --- a/gcc/fortran/invoke.texi +++ b/gcc/fortran/invoke.texi @@ -519,8 +519,13 @@ representation of the translated Fortran code, produce= d by @opindex @code{freal-8-real-16} @cindex options, real kind type promotion Promote all @code{REAL(KIND=3DM)} entities to @code{REAL(KIND=3DN)} entiti= es. -If @code{REAL(KIND=3DN)} is unavailable, then an error will be issued. -All other real kind types are unaffected by this option. +If @code{REAL(KIND=3DN)} is unavailable, then an error will be issued; +the real-4 flags also affect the default real kind, the real-8 flag also +the double-precision real kind. All other real kind types are +unaffected by this option. For real literal constants, the promoted +values are used for the default kinds and a specified kind value is +promoted to the new value. Note that when using @code{REAL(KIND=3DKIND(1.= 0))} +the literal is first promoted and then the result is promoted again. These options should be used with care and may not be suitable for your codes. Areas of possible concern include calls to external procedures, alignment in @code{EQUIVALENCE} and/or @code{COMMON}, generic interfaces,=