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 to inclhack.def, ommisions from previous checkin


Hi Bruce,

I installed the following patch.  It contains stuff of mine you
approved.  You ended up checking in my changes yourself, but omitted
the following bits.

		--Kaveh


Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/egcs/gcc/ChangeLog,v
retrieving revision 1.6681
diff -u -p -r1.6681 ChangeLog
--- ChangeLog	2000/05/21 21:50:46	1.6681
+++ ChangeLog	2000/05/22 04:00:53
@@ -1,3 +1,8 @@
+2000-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+	* fixinc/inclhack.def (sun_malloc): Handle `calloc'.
+	(sun_malloc, sysz_stdtypes_for_sun): Add test_text.
+
 Sun May 21 16:42:31 2000  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
 	* combine.c (try_combine): Handle i3_subst_into_i2 case when I2 is
Index: fixinc/inclhack.def
===================================================================
RCS file: /cvs/gcc/egcs/gcc/fixinc/inclhack.def,v
retrieving revision 1.71
diff -u -p -r1.71 inclhack.def
--- inclhack.def	2000/05/20 21:32:16	1.71
+++ inclhack.def	2000/05/22 04:00:54
@@ -2039,11 +2039,13 @@ fix = {
     sed   = "s/int[ \t][ \t]*free/void\tfree/g";
     sed   = "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g";
     sed   = "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g";
+    sed   = "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g";
 
     test_text =
     "typedef char *\tmalloc_t;\n"
     "int \tfree();\n"
     "char*\tmalloc();\n"
+    "char*\tcalloc();\n"
     "char*\trealloc();";
 };
 
@@ -2597,6 +2599,10 @@ fix = {
 
     sed   = "/[\t ]wchar_t.*;/a\\\n"
               "#endif\n";
+
+    test_text = "typedef int size_t; /* ??? */\n"
+     "typedef int ptrdiff_t; /* result of subtracting two pointers */\n"
+     "typedef unsigned short wchar_t; /* big enough for biggest char set */\n";
 };
 
 
Index: fixinc/fixincl.x
===================================================================
RCS file: /cvs/gcc/egcs/gcc/fixinc/fixincl.x,v
retrieving revision 1.71
diff -u -p -r1.71 fixincl.x
--- fixincl.x	2000/05/20 21:32:42	1.71
+++ fixincl.x	2000/05/22 04:00:57
@@ -3736,6 +3736,7 @@ const char* apzSun_MallocPatch[] = { "se
     "-e", "s/int[ \t][ \t]*free/void\tfree/g",
     "-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
     "-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
+    "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
     (char*)NULL };
 
 /* * * * * * * * * * * * * * * * * * * * * * * * * *

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