This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] nvptx per-warp compiler-defined stacks (-msoft-stack)
- From: Sandra Loosemore <sandra at codesourcery dot com>
- To: Alexander Monakov <amonakov at ispras dot ru>, Nathan Sidwell <nathan at acm dot org>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 20 May 2016 10:36:10 -0600
- Subject: Re: [PATCH] nvptx per-warp compiler-defined stacks (-msoft-stack)
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot LNX dot 2 dot 20 dot 1604201958390 dot 14803 at monopod dot intra dot ispras dot ru> <5718DED6 dot 60308 at acm dot org> <alpine dot LNX dot 2 dot 20 dot 1605201747400 dot 7578 at monopod dot intra dot ispras dot ru>
On 05/20/2016 09:09 AM, Alexander Monakov wrote:
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi
index d281975..f0331e2 100644
--- a/gcc/doc/invoke.texi
+++ b/gcc/doc/invoke.texi
@@ -19341,6 +19341,18 @@ offloading execution.
Apply partitioned execution optimizations. This is the default when any
level of optimization is selected.
+@item -msoft-stack
+@opindex msoft-stack
+Switch to code generation variant that does not use @code{.local} memory
s/Switch to code generation variant/Generate code/
+directly for stack storage. Instead, a per-warp stack pointer is
+maintained explicitely. This enables variable-length stack allocation (with
s/explicitely/explicitly/
+variable-length arrays or @code{alloca}), and when global memory is used for
+underlying storage, makes possible to access automatic variables from other
s/makes possible/makes it possible/
+threads, or with atomic instructions. This code generation variant is used
+for OpenMP offloading, but the option is exposed on its own for the purpose
+of testing the compiler; to generate code suitable for linking into programs
+using OpenMP offloading, use option @option{-mgomp}.
+
@end table
@node PDP-11 Options
The documentation bits are OK with those changes.
-Sandra