aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@gmail.com>2008-01-31 17:41:27 -0800
committerBen Elliston <bje@gcc.gnu.org>2008-02-01 12:41:27 +1100
commita18c20ec9a1a6da58096040a1c1a423344993e8d (patch)
tree136f02279e9d3761090743d6ab8a4ea371c53867
parente529992b9ca0d980521701ffdb3d93ff65f73061 (diff)
downloadgcc-a18c20ec9a1a6da58096040a1c1a423344993e8d.zip
gcc-a18c20ec9a1a6da58096040a1c1a423344993e8d.tar.gz
gcc-a18c20ec9a1a6da58096040a1c1a423344993e8d.tar.bz2
re PR c/29326 (__builtin_trap is not documented)
PR c/29326 * doc/extend.texi (Other Builtins): Document. Co-Authored-By: Ben Elliston <bje@au.ibm.com> Co-Authored-By: Mark Mitchell <mark@codesourcery.com> From-SVN: r131996
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/doc/extend.texi8
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 301df26..647797e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2008-02-01 Andrew Pinski <pinskia@gmail.com>
+ Mark Mitchell <mark@codesourcery.com>
+ Ben Elliston <bje@au.ibm.com>
+
+ PR c/29326
+ * doc/extend.texi (Other Builtins): Document.
+
2008-01-31 Tom Browder <tom.browder@gmail.com>
* doc/c-tree.texi (Types): Fix grammar.
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 73c823f..0bf8811 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -6423,6 +6423,14 @@ 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 causes the program to exit abnormally. GCC implements
+this function by using a target-dependent mechanism (such as
+intentionally executing an illegal instruction) or by calling
+@code{abort}. The mechanism used may vary from release to release so
+you should not rely on any particular implementation.
+@end deftypefn
+
@deftypefn {Built-in Function} void __builtin___clear_cache (char *@var{begin}, char *@var{end})
This function is used to flush the processor's instruction cache for
the region of memory between @var{begin} inclusive and @var{end}