public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Include alloca.h for bfd
@ 2001-08-21 12:09 Thiemo Seufer
  2001-08-21 13:20 ` Ian Lance Taylor
  0 siblings, 1 reply; 13+ messages in thread
From: Thiemo Seufer @ 2001-08-21 12:09 UTC (permalink / raw)
  To: binutils

Hi All,

this checks for inclusion of alloca.h, which is required on IRIX6.5
to compile e.g. linker.c.


Thiemo


2001-08-21  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>

	/bfd/ChangeLog
	* sysdep.h (HAVE_ALLOCA): Check for inclusion of alloca.h, needed
	on irix6.


diff -BurpNX /bigdisk/src/binutils-exclude src-orig/bfd/sysdep.h src/bfd/sysdep.h
--- src-orig/bfd/sysdep.h	Wed Mar 14 17:02:30 2001
+++ src/bfd/sysdep.h	Mon Aug 20 23:31:03 2001
@@ -26,6 +26,18 @@ Foundation, Inc., 59 Temple Place - Suit
 
 #include "config.h"
 
+#ifdef HAVE_ALLOCA
+#ifdef HAVE_ALLOCA_H
+#include <alloca.h>
+#else
+#ifdef NEED_DECLARATION_ALLOCA
+extern PTR alloca ();
+#endif
+#endif
+#else
+#error "alloca() is required but not available."
+#endif
+
 #ifdef HAVE_STDDEF_H
 #include <stddef.h>
 #endif

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2001-08-23 11:49 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-21 12:09 [PATCH] Include alloca.h for bfd Thiemo Seufer
2001-08-21 13:20 ` Ian Lance Taylor
2001-08-21 14:46   ` Thiemo Seufer
2001-08-21 14:56     ` Ian Lance Taylor
2001-08-23  7:42     ` Nick Clifton
2001-08-23  8:48       ` Thiemo Seufer
2001-08-23  9:02         ` Jakub Jelinek
2001-08-23  9:15           ` Thiemo Seufer
2001-08-23 10:13             ` Andrew Cagney
2001-08-23 10:29               ` Ian Lance Taylor
2001-08-23 11:42                 ` Andrew Cagney
2001-08-23 11:49                   ` Jakub Jelinek
2001-08-23 10:16             ` Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).