OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [include/] [alloca-conf.h] - Blame information for rev 840

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
#include "config.h"
2
 
3 225 jeremybenn
/* This is a merge of code recommended in the autoconf-2.61 documentation
4
   with that recommended in the autoconf-2.13 documentation, with added
5
   tweaks to heed C_ALLOCA.  */
6
 
7
#if defined HAVE_ALLOCA_H && !defined C_ALLOCA
8
# include <alloca.h>
9
#else
10
# if defined __GNUC__ && !defined C_ALLOCA
11
#  if !defined alloca
12
#   define alloca __builtin_alloca
13
#  endif
14
# else
15
#  if defined _AIX
16
/* Indented so that pre-ansi C compilers will ignore it, rather than
17
   choke on it.  Some versions of AIX require this to be the first
18
   thing in the file except for comments and preprocessor directives.  */
19
    #pragma alloca
20 24 jeremybenn
#  else
21 225 jeremybenn
#   if defined _MSC_VER && !defined C_ALLOCA
22
#    include <malloc.h>
23
#    define alloca _alloca
24
#   else
25
#    if !defined alloca
26
#     if defined __STDC__ || defined __hpux
27
#      if defined HAVE_STDDEF_H
28
#       include <stddef.h>
29
#       if defined  __cplusplus
30
extern "C" void *alloca (size_t);
31
#       else
32
extern void *alloca (size_t);
33
#       endif
34
#      else
35
extern void *alloca ();
36
#      endif
37
#     else
38
extern char *alloca ();
39
#     endif
40
#    endif
41
#   endif
42 24 jeremybenn
#  endif
43 225 jeremybenn
# endif
44
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.