[flang] Document preprocessing of Fortran comments in macro actual args

Original-commit: flang-compiler/f18@f491b73636
Reviewed-on: https://github.com/flang-compiler/f18/pull/557
Tree-same-pre-rewrite: false
This commit is contained in:
peter klausler 2019-07-10 15:03:02 -07:00
parent 8ccd6b19c4
commit 5842409864
2 changed files with 10 additions and 1 deletions

View File

@ -125,3 +125,10 @@ Extensions and legacy features deliberately not supported
* Using non-integer expressions for array bounds (e.g., REAL A(3.14159)) (PGI/Intel)
* Mixing INTEGER types as operands to bit intrinsics (e.g., IAND); only two
compilers support it, and they disagree on sign extension.
Preprocessing behavior
======================
* The preprocessor is always run, whatever the filename extension may be.
* We respect Fortran comments in macro actual arguments (like GNU, Intel, NAG;
unlike PGI and XLF) on the principle that macro calls should be treated
like function references. Fortran's line continuation methods also work.

View File

@ -1,5 +1,5 @@
<!--
Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
-->
Fortran Preprocessing
@ -72,6 +72,8 @@ Judgement calls, where precedents are unclear:
* `#define c 1` does not allow a `c` in column 1 to be used as a label
in fixed form, rather than as a comment line indicator.
* IBM claims to be ISO C compliant and therefore recognizes trigraph sequences.
* Fortran comments in macro actual arguments should be respected, on
the principle that a macro call should work like a function reference.
Behavior that few compilers properly support (or none), but should:
-------------------------------------------------------------------