This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


-- 

===================================================
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): Use configure test.

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	Tue Feb 23 20:09:49 1999
+++ egcs.source/gcc/config/alpha/xm-alpha.h	Wed Feb 24 20:42:06 1999
@@ -46,7 +46,7 @@
 #if defined(__GNUC__) && !defined(USE_C_ALLOCA)
 #define alloca __builtin_alloca
 #else
-#if !defined(_WIN32) && !defined(USE_C_ALLOCA) && !defined(OPEN_VMS)
+#if defined(HAVE_ALLOCA_H)
 #include <alloca.h>
 #else
 extern void *alloca ();

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]