diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-04-15 17:18:46 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-04-15 17:18:46 +0000 |
commit | c1b2683f4c78df394286d812708b3dbf3fbdaf3e (patch) | |
tree | e012cf3e62c54e708814d05870f24bffae25fc24 /4.4.5 | |
parent | Drop applied patches. (diff) | |
download | gcc-patches-c1b2683f4c78df394286d812708b3dbf3fbdaf3e.tar.gz gcc-patches-c1b2683f4c78df394286d812708b3dbf3fbdaf3e.tar.bz2 gcc-patches-c1b2683f4c78df394286d812708b3dbf3fbdaf3e.zip |
add fix from upstream for building gcj with newer glibc pr50888
Diffstat (limited to '4.4.5')
-rw-r--r-- | 4.4.5/gentoo/27_all_gcj-glibc-2.15-pr50888.patch | 79 | ||||
-rw-r--r-- | 4.4.5/gentoo/README.history | 3 |
2 files changed, 82 insertions, 0 deletions
diff --git a/4.4.5/gentoo/27_all_gcj-glibc-2.15-pr50888.patch b/4.4.5/gentoo/27_all_gcj-glibc-2.15-pr50888.patch new file mode 100644 index 0000000..fb43c23 --- /dev/null +++ b/4.4.5/gentoo/27_all_gcj-glibc-2.15-pr50888.patch @@ -0,0 +1,79 @@ +http://gcc.gnu.org/PR50888 + +fix building of gcj with glibc-2.15+ + +applied to gcc-4.6 branch: + http://gcc.gnu.org/viewcvs?view=revision&revision=181686 +and to gcc-4.5 branch: + http://gcc.gnu.org/viewcvs?view=revision&revision=181687 +and to gcc-4.4 branch: + http://gcc.gnu.org/viewcvs?view=revision&revision=181688 + +2011-11-24 Jakub Jelinek <jakub@redhat.com> + + PR bootstrap/50888 + * prims.cc: Don't include ctype.h. + (c_isspace): Define. + (next_property_key, next_property_value): Use it instead + of isspace. + +--- branches/gcc-4_5-branch/libjava/prims.cc 2011/11/24 07:21:39 181686 ++++ branches/gcc-4_5-branch/libjava/prims.cc 2011/11/24 07:23:16 181687 +@@ -38,7 +38,6 @@ + #endif + + #ifndef DISABLE_GETENV_PROPERTIES +-#include <ctype.h> + #include <java-props.h> + #define PROCESS_GCJ_PROPERTIES process_gcj_properties() + #else +@@ -985,6 +984,8 @@ + + #ifndef DISABLE_GETENV_PROPERTIES + ++#define c_isspace(c) (memchr (" \t\n\r\v\f", c, 6) != NULL) ++ + static char * + next_property_key (char *s, size_t *length) + { +@@ -993,7 +994,7 @@ + JvAssert (s); + + // Skip over whitespace +- while (isspace (*s)) ++ while (c_isspace (*s)) + s++; + + // If we've reached the end, return NULL. Also return NULL if for +@@ -1005,7 +1006,7 @@ + + // Determine the length of the property key. + while (s[l] != 0 +- && ! isspace (s[l]) ++ && ! c_isspace (s[l]) + && s[l] != ':' + && s[l] != '=') + { +@@ -1027,19 +1028,19 @@ + + JvAssert (s); + +- while (isspace (*s)) ++ while (c_isspace (*s)) + s++; + + if (*s == ':' + || *s == '=') + s++; + +- while (isspace (*s)) ++ while (c_isspace (*s)) + s++; + + // Determine the length of the property value. + while (s[l] != 0 +- && ! isspace (s[l]) ++ && ! c_isspace (s[l]) + && s[l] != ':' + && s[l] != '=') + { diff --git a/4.4.5/gentoo/README.history b/4.4.5/gentoo/README.history index c757c16..0ea58c6 100644 --- a/4.4.5/gentoo/README.history +++ b/4.4.5/gentoo/README.history @@ -1,3 +1,6 @@ +1.4 [pending] + + 27_all_gcj-glibc-2.15-pr50888.patch + 1.3 02 Jul 2011 + 30_all_gcc-4.4-ppc-msingle-pic-base.patch + 31_all_gcc-4.4-ppc-fpic-mrelocatable.patch |