[PATCH] Include alloca.h for bfd

Thiemo Seufer ica2_ts@csv.ica.uni-stuttgart.de
Tue Aug 21 12:09:00 GMT 2001


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



More information about the Binutils mailing list