-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[flang][runtime] Let FORT_CHECK_POINTER_DEALLOCATION=0 disable runtime … #84956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<!--===- docs/RuntimeEnvironment.md | ||
|
||
Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
See https://llvm.org/LICENSE.txt for license information. | ||
SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
||
--> | ||
|
||
```{contents} | ||
--- | ||
local: | ||
--- | ||
``` | ||
|
||
# Environment variables of significance to Fortran execution | ||
|
||
A few environment variables are queried by the Fortran runtime support | ||
library. | ||
|
||
The following environment variables can affect the behavior of | ||
Fortran programs during execution. | ||
|
||
## `DEFAULT_UTF8=1` | ||
|
||
Set `DEFAULT_UTF8` to cause formatted external input to assume UTF-8 | ||
encoding on input and use UTF-8 encoding on formatted external output. | ||
|
||
## `FORT_CONVERT` | ||
|
||
Determines data conversions applied to unformatted I/O. | ||
|
||
* `NATIVE`: no conversions (default) | ||
* `LITTLE_ENDIAN`: assume input is little-endian; emit little-endian output | ||
* `BIG_ENDIAN`: assume input is big-endian; emit big-endian output | ||
* `SWAP`: reverse endianness (always convert) | ||
|
||
## `FORT_CHECK_POINTER_DEALLOCATION` | ||
|
||
Fortran requires that a pointer that appears in a `DEALLOCATE` statement | ||
must have been allocated in an `ALLOCATE` statement with the same declared | ||
type. | ||
The runtime support library validates this requirement by checking the | ||
size of the allocated data, and will fail with an error message if | ||
the deallocated pointer is not valid. | ||
Set `FORT_CHECK_POINTER_DEALLOCATION=0` to disable this check. | ||
|
||
## `FORT_FMT_RECL` | ||
|
||
Set to an integer value to specify the record length for list-directed | ||
and `NAMELIST` output. | ||
The default is 72. | ||
|
||
## `NO_STOP_MESSAGE` | ||
|
||
Set `NO_STOP_MESSAGE=1` to disable the extra information about | ||
IEEE floating-point exception flags that the Fortran language | ||
standard requires for `STOP` and `ERROR STOP` statements. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the document!