/* C Runtime Library Gnu compatibility Copyright (c) 2002-2013 Green Hills Software, Inc. This program is the property of Green Hills Software, Inc, its contents are proprietary information and no part of it is to be disclosed to anyone except employees of Green Hills Software, Inc., or as agreed in writing signed by the President of Green Hills Software, Inc. */ #ifndef _ALLOCA_H #ifdef __ghs__ #pragma ghs startnomisra #endif #define _ALLOCA_H #ifdef __ghs__ #if defined(__ppc) || defined(__i386) || defined(__x86_64__) \ || defined(__sparc__) || defined(__mc68000) \ || defined(__mips) && !defined(__mips16) \ || defined(__FireFly__) #ifdef __cplusplus extern "C" { #endif #include "ghs_null.h" /* size_t */ #define alloca(size) __builtin_alloca(size) #define __GHS_TARGET_IMPLEMENTS_ALLOCA #if defined(__STDC__) || defined(__PROTOTYPES__) # define __ARGS(x) x #else # define __ARGS(x) () #endif extern void *__builtin_alloca __ARGS((size_t)); extern void *__get_stack_pointer __ARGS((void)); extern void __set_stack_pointer __ARGS((void *)); #undef __ARGS #ifdef __cplusplus } #endif #endif /* __ppc */ #endif /* __ghs__ */ #ifdef __ghs__ #pragma ghs endnomisra #endif #endif /* _ALLOCA_H */