aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2000-05-22 04:02:14 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2000-05-22 04:02:14 +0000
commit93a718f6b4cef864a08c0ba0c59349e67680f4c6 (patch)
tree5623589d7648581e550b93ae97f819dd80986d8a
parentf5f67fb58c56c5e4d19524a91fcad3472789316d (diff)
downloadgcc-93a718f6b4cef864a08c0ba0c59349e67680f4c6.zip
gcc-93a718f6b4cef864a08c0ba0c59349e67680f4c6.tar.gz
gcc-93a718f6b4cef864a08c0ba0c59349e67680f4c6.tar.bz2
inclhack.def (sun_malloc): Handle `calloc'.
* fixinc/inclhack.def (sun_malloc): Handle `calloc'. (sun_malloc, sysz_stdtypes_for_sun): Add test_text. From-SVN: r34071
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/fixinc/fixincl.x1
-rw-r--r--gcc/fixinc/inclhack.def6
3 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 360127e..a53a42b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/fixinc/fixincl.x b/gcc/fixinc/fixincl.x
index 912a159..ab5a38c 100644
--- a/gcc/fixinc/fixincl.x
+++ b/gcc/fixinc/fixincl.x
@@ -3736,6 +3736,7 @@ const char* apzSun_MallocPatch[] = { "sed",
"-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 };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
diff --git a/gcc/fixinc/inclhack.def b/gcc/fixinc/inclhack.def
index f8d7191..c952ad7 100644
--- a/gcc/fixinc/inclhack.def
+++ b/gcc/fixinc/inclhack.def
@@ -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";
};