[PATCH 09/18] testsuite, fortran: add required external keyword
Nils-Christian Kempke
nils-christian.kempke@intel.com
Tue May 10 14:24:28 GMT 2022
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:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50377
Adding the keyword does not change the gfortran compiling of the example.
It will, however, prevent a future fail once 50377 has been addressed.
---
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/gdb.fortran/function-calls.f90
index b56c5c97f7..e9c8c44afd 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 = 3.00
real4 = 9.3
integer_array = 17
--
2.25.1
Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
More information about the Gdb-patches
mailing list