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 installed for alloca declaration in system.h


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__ */



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