[flang-commits] [flang] f2ee0a3 - [flang][NFC] Document intentional non-support for an extension

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Wed Jun 1 13:50:40 PDT 2022


Author: Peter Klausler
Date: 2022-06-01T13:50:26-07:00
New Revision: f2ee0a3f2c5c6f1fd25b0cb9b52745dd368827e9

URL: https://github.com/llvm/llvm-project/commit/f2ee0a3f2c5c6f1fd25b0cb9b52745dd368827e9
DIFF: https://github.com/llvm/llvm-project/commit/f2ee0a3f2c5c6f1fd25b0cb9b52745dd368827e9.diff

LOG: [flang][NFC] Document intentional non-support for an extension

F18 doesn't accept INTEGER operands to the intrinsic LOGICAL operations;
some compilers do.  This usage is not portable, and not just because it's
non-conforming -- the bit representations of LOGICAL also vary between
compilers and options.  The "MIL-STD" bit intrinsics IAND() & al. have been
avaiable since the late 70's and should be used instead.

Differential Revision: https://reviews.llvm.org/D126798

Added: 
    

Modified: 
    flang/docs/Extensions.md

Removed: 
    


################################################################################
diff  --git a/flang/docs/Extensions.md b/flang/docs/Extensions.md
index 484aee5cfcc20..63001c4379b58 100644
--- a/flang/docs/Extensions.md
+++ b/flang/docs/Extensions.md
@@ -282,6 +282,8 @@ end
 * USE association of a procedure interface within that same procedure's definition
 * NULL() as a structure constructor expression for an ALLOCATABLE component (PGI).
 * Conversion of LOGICAL to INTEGER in expressions.
+* Use of INTEGER data with the intrinsic logical operators `.NOT.`, `.AND.`, `.OR.`,
+  and `.XOR.`.
 * IF (integer expression) THEN ... END IF  (PGI/Intel)
 * Comparsion of LOGICAL with ==/.EQ. rather than .EQV. (also .NEQV.) (PGI/Intel)
 * Procedure pointers in COMMON blocks (PGI/Intel)


        


More information about the flang-commits mailing list