This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Document __builtin_trap


This patch adds documentation for __builtin_trap which was only
mentioned once in the documentation.

OK?

Thanks,
Andrew Pinski

ChangeLog:

	* doc/extend.texi (__builtin_trap): Document.


Index: extend.texi
===================================================================
--- extend.texi	(revision 118718)
+++ extend.texi	(working copy)
@@ -5897,6 +5897,11 @@ if (__builtin_expect (ptr != NULL, 1))
 when testing pointer or floating-point values.
 @end deftypefn
 
+@deftypefn {Built-in Function} void __builtin_trap (void)
+This function calls the target dependent trap instruction.  If the target
+does not have a trap instruction, this function will call the abort function.
+@end deftypefn
+
 @deftypefn {Built-in Function} void __builtin_prefetch (const void *@var{addr}, ...)
 This function is used to minimize cache-miss latency by moving data into
 a cache before it is accessed.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]