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]

A patch for testsuite


In glibc 2.1, malloc () has a different prototype in <stdlib.h>.
Here is a patch.


-- 
H.J. Lu (hjl@gnu.org)
---
Index: gcc/testsuite/g++.old-deja/g++.law/arm13.C
===================================================================
RCS file: /home/work/cvs/gnu/egcs/gcc/testsuite/g++.old-deja/g++.law/arm13.C,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 arm13.C
--- arm13.C	1997/08/26 00:21:16	1.1.1.1
+++ arm13.C	1998/08/22 23:46:06
@@ -1,10 +1,11 @@
 // GROUPS passed ARM-compliance
 #include <stdio.h>
-#include <stdlib.h>
 
 inline void *operator new(size_t, void *place) { return place; }
+extern "C" {
 void*     malloc(size_t);
 void      free(void*);
+};
 
 main()
 {


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