From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7876) id DE50F395A060; Tue, 31 May 2022 14:45:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DE50F395A060 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Nils-Christian Kempke To: gdb-cvs@sourceware.org Subject: [binutils-gdb] testsuite, fortran: add required external keyword X-Act-Checkin: binutils-gdb X-Git-Author: Nils-Christian Kempke X-Git-Refname: refs/heads/master X-Git-Oldrev: 87364601b87da148b9c4b96aa164e329794c2959 X-Git-Newrev: 93bbd6c793f028afde22d6a6ad52edd812be8160 Message-Id: <20220531144548.DE50F395A060@sourceware.org> Date: Tue, 31 May 2022 14:45:48 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2022 14:45:49 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D93bbd6c793f0= 28afde22d6a6ad52edd812be8160 commit 93bbd6c793f028afde22d6a6ad52edd812be8160 Author: Nils-Christian Kempke Date: Tue May 31 16:43:44 2022 +0200 testsuite, fortran: add required external keyword =20 Currenlty, ifx/ifort cannot compile the given executable as it is not valid Fortran. It is missing the external keyword on the no_arg_subroutine. Gfortran compiles the example but this is actually a bug and there is an open gcc ticket for this here: =20 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D50377 =20 Adding the keyword does not change the gfortran compiling of the exampl= e. It will, however, prevent a future fail once 50377 has been addressed. Diff: --- gdb/testsuite/gdb.fortran/function-calls.f90 | 1 + 1 file changed, 1 insertion(+) diff --git a/gdb/testsuite/gdb.fortran/function-calls.f90 b/gdb/testsuite/g= db.fortran/function-calls.f90 index b56c5c97f7b..e9c8c44afd1 100644 --- a/gdb/testsuite/gdb.fortran/function-calls.f90 +++ b/gdb/testsuite/gdb.fortran/function-calls.f90 @@ -198,6 +198,7 @@ program function_calls type(cart_nd) :: c_nd type(nested_cart_3d) :: nested_c character(40) :: returned_string, returned_string_debugger + external no_arg_subroutine real8 =3D 3.00 real4 =3D 9.3 integer_array =3D 17