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: fix PR 29326


Andrew Pinski posted a patch for this PR that was discussed on
gcc-patches in November, 2006, but the patch was never committed.  Some
revised text was proposed by Mark Mitchell, which I have used instead.
There was a small grammatical error ("intentionally execution" =>
"intentionally executing"), so I have fixed that.  Tested with `make
info' and inspection.

Okay for mainline?  Any other branches?

Cheers, Ben


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.

Index: doc/extend.texi
===================================================================
--- doc/extend.texi     (revision 131994)
+++ doc/extend.texi     (working copy)
@@ -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}



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