aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2016-01-07 13:02:25 -0500
committerSandra Loosemore <sandra@gcc.gnu.org>2016-01-07 13:02:25 -0500
commit365db8e0e5b7994e1a41fd13b58d230b5df84ae3 (patch)
tree3f08f7cda32a2b9077e6f1be37052103cb389199 /gcc
parentc8e62a9df15d4e16cca367057530a7847eeb943c (diff)
downloadgcc-365db8e0e5b7994e1a41fd13b58d230b5df84ae3.zip
gcc-365db8e0e5b7994e1a41fd13b58d230b5df84ae3.tar.gz
gcc-365db8e0e5b7994e1a41fd13b58d230b5df84ae3.tar.bz2
re PR target/1078 (Problems with attributes documentation)
2016-01-07 Sandra Loosemore <sandra@codesourcery.com> PR 1078 gcc/ * doc/extend.texi (Nvidia PDX Function Attributes): New section. From-SVN: r232136
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/doc/extend.texi17
2 files changed, 22 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 619bae6..215a366 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
+
+ PR 1078
+ * doc/extend.texi (Nvidia PDX Function Attributes): New section.
+
2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
PR target/69171
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index f6f561f..35d7e57 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -2271,6 +2271,7 @@ GCC plugins may provide their own attributes.
* MSP430 Function Attributes::
* NDS32 Function Attributes::
* Nios II Function Attributes::
+* Nvidia PTX Function Attributes::
* PowerPC Function Attributes::
* RL78 Function Attributes::
* RX Function Attributes::
@@ -4633,6 +4634,22 @@ named @var{name}.
@end table
@end table
+@node Nvidia PTX Function Attributes
+@subsection Nvidia PTX Function Attributes
+
+These function attributes are supported by the Nvidia PTX back end:
+
+@table @code
+@item kernel
+@cindex @code{kernel} attribute, Nvidia PTX
+This attribute indicates that the corresponding function should be compiled
+as a kernel function, which can be invoked from the host via the CUDA RT
+library.
+By default functions are only callable only from other PTX functions.
+
+Kernel functions must have @code{void} return type.
+@end table
+
@node PowerPC Function Attributes
@subsection PowerPC Function Attributes