Patch: Problem: Alpha miscompile when figuring out if alloca.h is present. -- take 2

Donn Terry donn@interix.com
Thu Apr 15 16:01:00 GMT 1999


===================================================
Donn Terry                  mailto:donn@interix.com
Softway Systems, Inc.        http://www.interix.com
2850 McClelland Dr, Ste. 1800   Ft.Collins CO 80525
Tel: +1-970-204-9900           Fax: +1-970-204-9951
===================================================
Problem: Alpha miscompile when figuring out if alloca.h is present.
This shows up on Alpha32 (Interix).

Fix: Test for whether alloca.h is used should take results of configure
(in auto-host.h).  The prior code was getting it wrong in my case.

Thu Feb 25 17:00:02 1999  Donn Terry (donn@interix.com)

	* xm-alpha.h(alloca.h): Add Interix to list of special machines 
	that don't like alloca.h, pending using autoconf results.

diff -urP egcs.source.old/gcc/config/alpha/xm-alpha.h egcs.source/gcc/config/alpha/xm-alpha.h
--- egcs.source.old/gcc/config/alpha/xm-alpha.h	Thu Apr 15 09:14:24 1999
+++ egcs.source/gcc/config/alpha/xm-alpha.h	Thu Apr 15 10:31:47 1999
@@ -46,7 +46,7 @@ Boston, MA 02111-1307, USA.  */
 #if defined(__GNUC__) && !defined(USE_C_ALLOCA)
 #define alloca __builtin_alloca
 #else
-#if !defined(_WIN32) && !defined(USE_C_ALLOCA) && !defined(OPEN_VMS)
+#if !defined(_WIN32) && !defined(USE_C_ALLOCA) && !defined(OPEN_VMS) && !defined(__INTERIX)
 #include <alloca.h>
 #else
 extern void *alloca ();


More information about the Gcc-patches mailing list