diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-04-19 21:27:09 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-04-28 10:44:21 +0100 |
commit | 3669de7f96100a5d4fbfc9b4e2ebc16851ba98ea (patch) | |
tree | 66743557d4203b019988970a6fa3ac603c06c991 /meta/recipes-devtools/gcc/gcc-4.6.0/305-libmudflap-susv3-legacy.patch | |
parent | 07a6bec75c59fec06d0947ada708482900bf067a (diff) | |
download | poky-3669de7f96100a5d4fbfc9b4e2ebc16851ba98ea.tar.gz |
gcc: Add recipes for 4.6.0
This is initial set of patches for testing them out
The patches need documentation is pending
Some patches especially uclibc related are not
needed they must be dropped.
(From OE-Core rev: 26858099bc104efc3b3d15d9298018285c551b9a)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/305-libmudflap-susv3-legacy.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6.0/305-libmudflap-susv3-legacy.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/305-libmudflap-susv3-legacy.patch b/meta/recipes-devtools/gcc/gcc-4.6.0/305-libmudflap-susv3-legacy.patch new file mode 100644 index 0000000000..4cabb36a3a --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6.0/305-libmudflap-susv3-legacy.patch | |||
@@ -0,0 +1,49 @@ | |||
1 | Index: gcc-4.6.0/libmudflap/mf-hooks2.c | ||
2 | =================================================================== | ||
3 | --- gcc-4.6.0.orig/libmudflap/mf-hooks2.c | ||
4 | +++ gcc-4.6.0/libmudflap/mf-hooks2.c | ||
5 | @@ -421,7 +421,7 @@ WRAPPER2(void, bzero, void *s, size_t n) | ||
6 | { | ||
7 | TRACE ("%s\n", __PRETTY_FUNCTION__); | ||
8 | MF_VALIDATE_EXTENT(s, n, __MF_CHECK_WRITE, "bzero region"); | ||
9 | - bzero (s, n); | ||
10 | + memset (s, 0, n); | ||
11 | } | ||
12 | |||
13 | |||
14 | @@ -431,7 +431,7 @@ WRAPPER2(void, bcopy, const void *src, v | ||
15 | TRACE ("%s\n", __PRETTY_FUNCTION__); | ||
16 | MF_VALIDATE_EXTENT(src, n, __MF_CHECK_READ, "bcopy src"); | ||
17 | MF_VALIDATE_EXTENT(dest, n, __MF_CHECK_WRITE, "bcopy dest"); | ||
18 | - bcopy (src, dest, n); | ||
19 | + memmove (dest, src, n); | ||
20 | } | ||
21 | |||
22 | |||
23 | @@ -441,7 +441,7 @@ WRAPPER2(int, bcmp, const void *s1, cons | ||
24 | TRACE ("%s\n", __PRETTY_FUNCTION__); | ||
25 | MF_VALIDATE_EXTENT(s1, n, __MF_CHECK_READ, "bcmp 1st arg"); | ||
26 | MF_VALIDATE_EXTENT(s2, n, __MF_CHECK_READ, "bcmp 2nd arg"); | ||
27 | - return bcmp (s1, s2, n); | ||
28 | + return n == 0 ? 0 : memcmp (s1, s2, n); | ||
29 | } | ||
30 | |||
31 | |||
32 | @@ -450,7 +450,7 @@ WRAPPER2(char *, index, const char *s, i | ||
33 | size_t n = strlen (s); | ||
34 | TRACE ("%s\n", __PRETTY_FUNCTION__); | ||
35 | MF_VALIDATE_EXTENT(s, CLAMPADD(n, 1), __MF_CHECK_READ, "index region"); | ||
36 | - return index (s, c); | ||
37 | + return strchr (s, c); | ||
38 | } | ||
39 | |||
40 | |||
41 | @@ -459,7 +459,7 @@ WRAPPER2(char *, rindex, const char *s, | ||
42 | size_t n = strlen (s); | ||
43 | TRACE ("%s\n", __PRETTY_FUNCTION__); | ||
44 | MF_VALIDATE_EXTENT(s, CLAMPADD(n, 1), __MF_CHECK_READ, "rindex region"); | ||
45 | - return rindex (s, c); | ||
46 | + return strrchr (s, c); | ||
47 | } | ||
48 | |||
49 | /* XXX: stpcpy, memccpy */ | ||