forked from OSchip/llvm-project
[flang] Fixed the declarations of IEEE_SUPPORT_FLAG and IEEE_SUPPORT_HALTING to
be functions rather than subroutines. Note that Table 17.3 in the standard summarizes the contents of IEEE_EXCEPTIONS with the details specified in section 17.11. Original-commit: flang-compiler/f18@fca58d479d Reviewed-on: https://github.com/flang-compiler/f18/pull/730
This commit is contained in:
parent
4fd8ef1a16
commit
f8cfc7cdf9
|
@ -78,13 +78,13 @@ module ieee_exceptions
|
||||||
type(ieee_status_type), intent(in) :: status
|
type(ieee_status_type), intent(in) :: status
|
||||||
end subroutine ieee_set_status
|
end subroutine ieee_set_status
|
||||||
|
|
||||||
subroutine ieee_support_flag(flag, x)
|
pure logical function ieee_support_flag(flag, x)
|
||||||
type(ieee_flag_type), intent(in) :: flag
|
type(ieee_flag_type), intent(in) :: flag
|
||||||
real, intent(in), optional :: x
|
real, intent(in), optional :: x
|
||||||
end subroutine ieee_support_flag
|
end function ieee_support_flag
|
||||||
|
|
||||||
subroutine ieee_support_halting(flag)
|
pure logical function ieee_support_halting(flag)
|
||||||
type(ieee_flag_type), intent(in) :: flag
|
type(ieee_flag_type), intent(in) :: flag
|
||||||
end subroutine ieee_support_halting
|
end function ieee_support_halting
|
||||||
|
|
||||||
end module ieee_exceptions
|
end module ieee_exceptions
|
||||||
|
|
Loading…
Reference in New Issue