Skip to content

Commit

Permalink
build: remove interface in m4 check that causes false negatives with …
Browse files Browse the repository at this point in the history
…intel -warn flag (#1583)
  • Loading branch information
rem1776 authored Oct 9, 2024
1 parent 2b05550 commit 3401f60
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions m4/gx_fortran_options.m4
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,12 @@ for ac_flag in none \
'-qrealsize=8'; do
test "x$ac_flag" != xnone && FCFLAGS="$gx_fc_default_real_kind8_flag_FCFLAGS_save ${ac_flag}"
AC_COMPILE_IFELSE([[ program test
interface
real :: b=1.0
call test_sub(b)
contains
subroutine test_sub(a)
real(kind=selected_real_kind(15,307)) :: a
end subroutine test_sub
end interface
real :: b=1.0
call test_sub(b)
end program test]],
[gx_cv_fc_default_real_kind8_flag=$ac_flag; break])
done
Expand Down Expand Up @@ -148,13 +147,12 @@ for ac_flag in none \
'-qrealsize=4'; do
test "x$ac_flag" != xnone && FCFLAGS="$gx_fc_default_real_kind4_flag_FCFLAGS_save ${ac_flag}"
AC_COMPILE_IFELSE([[ program test
interface
real :: b=1.0
call test_sub(b)
contains
subroutine test_sub(a)
real(kind=selected_real_kind(6, 37)) :: a
end subroutine test_sub
end interface
real :: b=1.0
call test_sub(b)
end program test]],
[gx_cv_fc_default_real_kind4_flag=$ac_flag; break])
done
Expand Down

0 comments on commit 3401f60

Please sign in to comment.