Skip to content

Commit

Permalink
[flang] Keep PURE in IEEE functions
Browse files Browse the repository at this point in the history
PURE keyword should be kept in `__fortran_ieee_exceptions.f90`
and `ieee_arithmetic.f90` and not removed as done in
https://reviews.llvm.org/D128431

Reviewed By: vdonaldson

Differential Revision: https://reviews.llvm.org/D128498
  • Loading branch information
clementval committed Jun 24, 2022
1 parent 753b766 commit aeb2cd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions flang/module/__fortran_ieee_exceptions.f90
Expand Up @@ -124,13 +124,13 @@ end subroutine ieee_set_status
end interface

#define IEEE_SUPPORT_FLAG_R(XKIND) \
logical function ieee_support_flag_a##XKIND(flag, x); \
pure logical function ieee_support_flag_a##XKIND(flag, x); \
import ieee_flag_type; \
type(ieee_flag_type), intent(in) :: flag; \
real(XKIND), intent(in) :: x(..); \
end function ieee_support_flag_a##XKIND;
interface ieee_support_flag
logical function ieee_support_flag(flag)
pure logical function ieee_support_flag(flag)
import ieee_flag_type
type(ieee_flag_type), intent(in) :: flag
end function ieee_support_flag
Expand Down
2 changes: 1 addition & 1 deletion flang/module/ieee_arithmetic.f90
Expand Up @@ -514,7 +514,7 @@ pure logical function ieee_support_rounding_a##XKIND(round_value, x); \
real(XKIND), intent(in) :: x(..); \
end function ieee_support_rounding_a##XKIND;
interface ieee_support_rounding
logical function ieee_support_rounding(round_value)
pure logical function ieee_support_rounding(round_value)
import ieee_round_type
type(ieee_round_type), intent(in) :: round_value
end function ieee_support_rounding
Expand Down

0 comments on commit aeb2cd3

Please sign in to comment.