llvm-project/flang/docs
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
..
_static
_templates
_themes/llvm-theme
ArrayComposition.md
BijectiveInternalNameUniquing.md
C++17.md
C++style.md
CMakeLists.txt
Calls.md
Character.md
ControlFlowGraph.md
Directives.md
DoConcurrent.md
Extensions.md [flang][docs] Document non-supported VMS extensions 2022-06-15 14:55:47 -07:00
FIRArrayOperations.md [fir] Add array operations documentation 2022-01-21 09:56:54 +01:00
FlangDriver.md [flang][driver] Remove references to the `flang` bash script 2022-06-06 13:05:18 +00:00
FortranFeatureHistory.md
FortranForCProgrammers.md
FortranIR.md
FortranLLVMTestSuite.md [flang][test-suite] Document need for NO_STOP_MESSAGE environment variable. NFC 2022-06-03 08:19:10 +00:00
GettingInvolved.md [flang] Update Google Doc link for Flang Biweekly Sync call notes 2022-04-29 12:35:01 -06:00
IORuntimeInternals.md
ImplementingASemanticCheck.md
Intrinsics.md [flang] Add failed_images to list of intrinsics and add test 2022-06-14 14:13:33 -07:00
LabelResolution.md
ModFiles.md
OpenMP-4.5-grammar.md
OpenMP-semantics.md
OptionComparison.md
Overview.md
ParserCombinators.md
Parsing.md [flang] Add nonfatal message classes 2022-03-08 11:40:45 -08:00
Preprocessing.md
PullRequestChecklist.md
ReleaseNotes.md [clang][flang] Disable defaulting to `-fpie` for LLVM Flang 2022-06-29 07:53:06 +00:00
RuntimeDescriptor.md
RuntimeTypeInfo.md
Semantics.md
compiler_driver.png
conf.py
doxygen-mainpage.dox
doxygen.cfg.in
f2018-grammar.md
flang-c-style.el
frontend_driver.png
index.md [flang][docs] Update the top "doc" page 2022-02-24 10:41:53 +00:00