diff options
author | Koen Kooi <koen@openembedded.org> | 2007-08-28 03:06:24 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2007-08-28 03:06:24 +0000 |
commit | 6d2c8ffba73f38f1f57e01e6387ac9ba848e5dd6 (patch) | |
tree | fa4b020b5cee4987b46427eb5a22cbf3eb70df95 /packages/gcc/gcc-4.2.1/305-libmudflap-susv3-legacy.patch | |
parent | 315c290fd97bd98617bea6df56ceeec51041a2d9 (diff) | |
parent | 8fd855f2919e2e33163d38af0c4602cee1240422 (diff) |
merge of '7f7e2abbafbc78c693195ccd3ecbc44742312157'
and 'a3a33729f3f0c0ad0c71c9872010fc1d7dd4f9ee'
Diffstat (limited to 'packages/gcc/gcc-4.2.1/305-libmudflap-susv3-legacy.patch')
-rw-r--r-- | packages/gcc/gcc-4.2.1/305-libmudflap-susv3-legacy.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/packages/gcc/gcc-4.2.1/305-libmudflap-susv3-legacy.patch b/packages/gcc/gcc-4.2.1/305-libmudflap-susv3-legacy.patch new file mode 100644 index 0000000000..374b1f8659 --- /dev/null +++ b/packages/gcc/gcc-4.2.1/305-libmudflap-susv3-legacy.patch @@ -0,0 +1,49 @@ +Index: gcc-4.2/libmudflap/mf-hooks2.c +=================================================================== +--- gcc-4.2/libmudflap/mf-hooks2.c (revision 119834) ++++ gcc-4.2/libmudflap/mf-hooks2.c (working copy) +@@ -427,7 +427,7 @@ + { + TRACE ("%s\n", __PRETTY_FUNCTION__); + MF_VALIDATE_EXTENT(s, n, __MF_CHECK_WRITE, "bzero region"); +- bzero (s, n); ++ memset (s, 0, n); + } + + +@@ -437,7 +437,7 @@ + TRACE ("%s\n", __PRETTY_FUNCTION__); + MF_VALIDATE_EXTENT(src, n, __MF_CHECK_READ, "bcopy src"); + MF_VALIDATE_EXTENT(dest, n, __MF_CHECK_WRITE, "bcopy dest"); +- bcopy (src, dest, n); ++ memmove (dest, src, n); + } + + +@@ -447,7 +447,7 @@ + TRACE ("%s\n", __PRETTY_FUNCTION__); + MF_VALIDATE_EXTENT(s1, n, __MF_CHECK_READ, "bcmp 1st arg"); + MF_VALIDATE_EXTENT(s2, n, __MF_CHECK_READ, "bcmp 2nd arg"); +- return bcmp (s1, s2, n); ++ return n == 0 ? 0 : memcmp (s1, s2, n); + } + + +@@ -456,7 +456,7 @@ + size_t n = strlen (s); + TRACE ("%s\n", __PRETTY_FUNCTION__); + MF_VALIDATE_EXTENT(s, CLAMPADD(n, 1), __MF_CHECK_READ, "index region"); +- return index (s, c); ++ return strchr (s, c); + } + + +@@ -465,7 +465,7 @@ + size_t n = strlen (s); + TRACE ("%s\n", __PRETTY_FUNCTION__); + MF_VALIDATE_EXTENT(s, CLAMPADD(n, 1), __MF_CHECK_READ, "rindex region"); +- return rindex (s, c); ++ return strrchr (s, c); + } + + /* XXX: stpcpy, memccpy */ |