Files
clang-p2996/flang/docs/ReleaseNotes.md
Andrzej Warzynski b405407a48 [clang][flang] Disable defaulting to -fpie for LLVM Flang
In, https://reviews.llvm.org/D120305, CLANG_DEFAULT_PIE_ON_LINUX was set
to `On` by default. However, neither `-fpie` nor `-fpic` are currently
supported in LLVM Flang. Hence, in this patch the behaviour controlled
with CLANG_DEFAULT_PIE_ON_LINUX is refined not to apply to Flang.

Another way to look at this is that CLANG_DEFAULT_PIE_ON_LINUX is
currently affecting both Clang and Flang. IIUC, the intention for this
CMake variable has always been to only affect Clang. This patch makes
sure that that's the case.

Without this change, you might see errors like this on X86_64:
```
/usr/bin/ld: main.o: relocation R_X86_64_32 against `.bss' can not be used when making a PIE object; recompile with -fPIC
```
I've not experienced any issues on AArch64. That's probably because on
AArch64 some object files happen to be position independent without
needing -fpie or -fpic.

Differential Revision: https://reviews.llvm.org/D128333
2022-06-29 07:53:06 +00:00

65 lines
2.5 KiB
Markdown

# Flang 15.0.0 (In-Progress) Release Notes
> **warning**
>
> These are in-progress notes for the upcoming LLVM 15.0.0 release.
> Release notes for previous releases can be found on [the Download
> Page](https://releases.llvm.org/download.html).
## Introduction
This document contains the release notes for the Flang Fortran frontend,
part of the LLVM Compiler Infrastructure, release 15.0.0. Here we
describe the status of Flang in some detail, including major
improvements from the previous release and new feature work. For the
general LLVM release notes, see [the LLVM
documentation](https://llvm.org/docs/ReleaseNotes.html). All LLVM
releases may be downloaded from the [LLVM releases web
site](https://llvm.org/releases/).
Note that if you are reading this file from a Git checkout, this
document applies to the *next* release, not the current one. To see the
release notes for a specific release, please see the [releases
page](https://llvm.org/releases/).
## Major New Features
## Bug Fixes
## Non-comprehensive list of changes in this release
* The bash wrapper script, `flang`, is renamed as `flang-to-external-fc`.
* In contrast to Clang, Flang will not default to using `-fpie` when linking
executables. This is only a temporary solution and the goal is to align with
Clang in the near future. First, however, the frontend driver needs to be
extended so that it can generate position independent code (that requires
adding support for e.g. `-fpic` and `-mrelocation-model` in `flang-new
-fc1`). Once that is available, support for the `-fpie` can officially be
added and the default behaviour updated.
## New Compiler Flags
* Refined how `-f{no-}color-diagnostics` is treated to better align with Clang.
In particular, both `-fcolor-diagnostics` and `-fno-color-diagnostics` are
now available in `flang-new` (the diagnostics are formatted by default). In
the frontend driver, `flang-new -fc1`, only `-fcolor-diagnostics` is
available (by default, the diagnostics are not formatted). Note that this
will only affect the diagnostics printed by driver (scanning, parsing and
semantic diagnostics are not affected).
## Windows Support
## Fortran Language Changes in Flang
## Build System Changes
## New Issues Found
## Additional Information
Flang's documentation is located in the `flang/docs/` directory in the
LLVM monorepo.
If you have any questions or comments about Flang, please feel free to
contact us via the [mailing
list](https://lists.llvm.org/mailman/listinfo/flang-dev).