X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2Fsom.c;h=f9aed1628bd31720aa3a559282935b23ea7320a0;hb=d68aa3e6e8a649be28be43c7a80740b281cc4da6;hp=006af8cae2a914eabaf00b2316d40fcbdb7a9bd2;hpb=06dcabb0579335e3db3825385d41de58e529c7c0;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/som.c b/bfd/som.c index 006af8cae2..f9aed1628b 100644 --- a/bfd/som.c +++ b/bfd/som.c @@ -23,7 +23,6 @@ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ -#include "alloca-conf.h" #include "sysdep.h" #include "bfd.h" @@ -38,6 +37,32 @@ #include #include +/* This is the code recommended in the autoconf documentation, almost + verbatim. */ + +#ifndef __GNUC__ +# if HAVE_ALLOCA_H +# include +# else +# ifdef _AIX +/* Indented so that pre-ansi C compilers will ignore it, rather than + choke on it. Some versions of AIX require this to be the first + thing in the file. */ + #pragma alloca +# else +# ifndef alloca /* predefined by HP cc +Olibcalls */ +# if !defined (__STDC__) && !defined (__hpux) +extern char *alloca (); +# else +extern void *alloca (); +# endif /* __STDC__, __hpux */ +# endif /* alloca */ +# endif /* _AIX */ +# endif /* HAVE_ALLOCA_H */ +#else +extern void *alloca (size_t); +#endif /* __GNUC__ */ + static bfd_reloc_status_type hppa_som_reloc (bfd *, arelent *, asymbol *, void *, asection *, bfd *, char **); static bfd_boolean som_mkobject (bfd *);