xref: /minix3/external/gpl3/gcc/lib/libbacktrace/arch/powerpc/backtrace-supported.h (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc /* This file is automatically generated.  DO NOT EDIT! */
2*0a6a1f1dSLionel Sambuc /* Generated from: NetBSD: mknative-gcc,v 1.79 2014/05/29 16:27:50 skrll Exp  */
3*0a6a1f1dSLionel Sambuc /* Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp  */
4*0a6a1f1dSLionel Sambuc 
5*0a6a1f1dSLionel Sambuc /* backtrace-supported.h.in -- Whether stack backtrace is supported.
6*0a6a1f1dSLionel Sambuc    Copyright (C) 2012-2013 Free Software Foundation, Inc.
7*0a6a1f1dSLionel Sambuc    Written by Ian Lance Taylor, Google.
8*0a6a1f1dSLionel Sambuc 
9*0a6a1f1dSLionel Sambuc Redistribution and use in source and binary forms, with or without
10*0a6a1f1dSLionel Sambuc modification, are permitted provided that the following conditions are
11*0a6a1f1dSLionel Sambuc met:
12*0a6a1f1dSLionel Sambuc 
13*0a6a1f1dSLionel Sambuc     (1) Redistributions of source code must retain the above copyright
14*0a6a1f1dSLionel Sambuc     notice, this list of conditions and the following disclaimer.
15*0a6a1f1dSLionel Sambuc 
16*0a6a1f1dSLionel Sambuc     (2) Redistributions in binary form must reproduce the above copyright
17*0a6a1f1dSLionel Sambuc     notice, this list of conditions and the following disclaimer in
18*0a6a1f1dSLionel Sambuc     the documentation and/or other materials provided with the
19*0a6a1f1dSLionel Sambuc     distribution.
20*0a6a1f1dSLionel Sambuc 
21*0a6a1f1dSLionel Sambuc     (3) The name of the author may not be used to
22*0a6a1f1dSLionel Sambuc     endorse or promote products derived from this software without
23*0a6a1f1dSLionel Sambuc     specific prior written permission.
24*0a6a1f1dSLionel Sambuc 
25*0a6a1f1dSLionel Sambuc THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
26*0a6a1f1dSLionel Sambuc IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
27*0a6a1f1dSLionel Sambuc WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
28*0a6a1f1dSLionel Sambuc DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
29*0a6a1f1dSLionel Sambuc INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
30*0a6a1f1dSLionel Sambuc (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
31*0a6a1f1dSLionel Sambuc SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32*0a6a1f1dSLionel Sambuc HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
33*0a6a1f1dSLionel Sambuc STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
34*0a6a1f1dSLionel Sambuc IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
35*0a6a1f1dSLionel Sambuc POSSIBILITY OF SUCH DAMAGE.  */
36*0a6a1f1dSLionel Sambuc 
37*0a6a1f1dSLionel Sambuc /* The file backtrace-supported.h.in is used by configure to generate
38*0a6a1f1dSLionel Sambuc    the file backtrace-supported.h.  The file backtrace-supported.h may
39*0a6a1f1dSLionel Sambuc    be #include'd to see whether the backtrace library will be able to
40*0a6a1f1dSLionel Sambuc    get a backtrace and produce symbolic information.  */
41*0a6a1f1dSLionel Sambuc 
42*0a6a1f1dSLionel Sambuc 
43*0a6a1f1dSLionel Sambuc /* BACKTRACE_SUPPORTED will be #define'd as 1 if the backtrace library
44*0a6a1f1dSLionel Sambuc    should work, 0 if it will not.  Libraries may #include this to make
45*0a6a1f1dSLionel Sambuc    other arrangements.  */
46*0a6a1f1dSLionel Sambuc 
47*0a6a1f1dSLionel Sambuc #define BACKTRACE_SUPPORTED 1
48*0a6a1f1dSLionel Sambuc 
49*0a6a1f1dSLionel Sambuc /* BACKTRACE_USES_MALLOC will be #define'd as 1 if the backtrace
50*0a6a1f1dSLionel Sambuc    library will call malloc as it works, 0 if it will call mmap
51*0a6a1f1dSLionel Sambuc    instead.  This may be used to determine whether it is safe to call
52*0a6a1f1dSLionel Sambuc    the backtrace functions from a signal handler.  In general this
53*0a6a1f1dSLionel Sambuc    only applies to calls like backtrace and backtrace_pcinfo.  It does
54*0a6a1f1dSLionel Sambuc    not apply to backtrace_simple, which never calls malloc.  It does
55*0a6a1f1dSLionel Sambuc    not apply to backtrace_print, which always calls fprintf and
56*0a6a1f1dSLionel Sambuc    therefore malloc.  */
57*0a6a1f1dSLionel Sambuc 
58*0a6a1f1dSLionel Sambuc #define BACKTRACE_USES_MALLOC 0
59*0a6a1f1dSLionel Sambuc 
60*0a6a1f1dSLionel Sambuc /* BACKTRACE_SUPPORTS_THREADS will be #define'd as 1 if the backtrace
61*0a6a1f1dSLionel Sambuc    library is configured with threading support, 0 if not.  If this is
62*0a6a1f1dSLionel Sambuc    0, the threaded parameter to backtrace_create_state must be passed
63*0a6a1f1dSLionel Sambuc    as 0.  */
64*0a6a1f1dSLionel Sambuc 
65*0a6a1f1dSLionel Sambuc #define BACKTRACE_SUPPORTS_THREADS 1
66