[flang-commits] [flang] [flang][docs] Add an FAQ about an executable stack (PR #171241)
David Spickett via flang-commits
flang-commits at lists.llvm.org
Wed Dec 10 07:53:29 PST 2025
================
@@ -0,0 +1,53 @@
+<!--===- docs/FAQ.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
+
+-->
+
+<!-- TODO: remove this after adding this page to ToC -->
+```{eval-rst}
+:orphan:
+```
+
+# Frequently Asked Questions (FAQ)
+
+```{contents}
+---
+local:
+---
+```
+
+## Driver
+
+### Why do I get a warning or error about an executable stack?
+
+This occurs because Flang's implementation of pointers to internal procedures requires an executable stack.
+
+When an internal procedure is referenced from outside its host scope (e.g., via a procedure pointer), the implementation must ensure that it can still access its host-associated variables.
----------------
DavidSpickett wrote:
Could you rephrase so that you explain "host-associated variables" in the process? Like:
the implementation must ensure that the internal procedure can still access variables from that host scope
Maybe you want to say "host-associated" because it's a term from the standard, so fine to still include it if so.
I just thought at first that this referred to offloading like host as in host machine.
https://github.com/llvm/llvm-project/pull/171241
More information about the flang-commits
mailing list