From cfb7dc734f7d330182647c5c1bec5a411a5f95f1 Mon Sep 17 00:00:00 2001 From: Zanhua Huang Date: Wed, 10 Jan 2024 15:17:43 -0600 Subject: [PATCH] type-mismatch compiler flag in flash-io Add -fallow-argument-mismatch as a new choice to allow type mismatch. --- benchmarks/FLASH-IO/m4/check_fortran.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/benchmarks/FLASH-IO/m4/check_fortran.m4 b/benchmarks/FLASH-IO/m4/check_fortran.m4 index 88ca63ded..191562d15 100644 --- a/benchmarks/FLASH-IO/m4/check_fortran.m4 +++ b/benchmarks/FLASH-IO/m4/check_fortran.m4 @@ -186,6 +186,7 @@ esac])dnl # # Known flags: # NAGWare: -mismatch +# gfortran: -fallow-argument-mismatch # AC_DEFUN([_ACX_FC_MISMATCH], [_AC_FORTRAN_ASSERT()dnl @@ -202,7 +203,7 @@ be called with different argument types]) call foo1(a) call foo1(b) call foo1(c)]])]) - for acx_flag in '' -mismatch; do + for acx_flag in '' -mismatch -fallow-argument-mismatch; do _AC_LANG_PREFIX[]FLAGS="${acx_save_[]_AC_LANG_PREFIX[]FLAGS} $acx_flag" AC_COMPILE_IFELSE([], [acx_cache_var=$acx_flag]) test "x$acx_cache_var" != xunknown && break