This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch installed for alloca declaration in system.h
- To: gcc-patches at gcc dot gnu dot org
- Subject: Patch installed for alloca declaration in system.h
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Thu, 13 Jul 2000 15:09:44 -0400 (EDT)
We now get implicit decl warnings about builtins, so we need to
prototype alloca. This patch fixes ~60 implicit decl warnings on
solaris2.7.
Installed.
2000-07-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* system.h (alloca): Prototype if __GNUC__ && __SIZE_TYPE__.
--- ../egcs-CVS20000712/gcc/system.h Fri Jul 7 10:17:50 2000
+++ egcs-CVS20000712/gcc/system.h Wed Jul 12 14:08:21 2000
@@ -610,4 +610,9 @@ extern void abort PARAMS ((void));
#define UNION_INIT_ZERO
#endif
+/* GCC now gives implicit declaration warnings for undeclared builtins. */
+#if defined(__GNUC__) && defined (__SIZE_TYPE__)
+extern void *alloca (__SIZE_TYPE__);
+#endif
+
#endif /* __GCC_SYSTEM_H__ */