Skip to content

Commit

Permalink
type-mismatch compiler flag in flash-io
Browse files Browse the repository at this point in the history
Add -fallow-argument-mismatch as a new choice to allow type mismatch.
  • Loading branch information
yzanhua committed Jan 10, 2024
1 parent b516491 commit cfb7dc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion benchmarks/FLASH-IO/m4/check_fortran.m4
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ esac])dnl
#
# Known flags:
# NAGWare: -mismatch
# gfortran: -fallow-argument-mismatch
#
AC_DEFUN([_ACX_FC_MISMATCH],
[_AC_FORTRAN_ASSERT()dnl
Expand All @@ -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
Expand Down

0 comments on commit cfb7dc7

Please sign in to comment.