From 7fef12faa505985b38df0ddb2616466abcf3f16b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20=C5=9Awi=C4=85tek?= Date: Sat, 20 Apr 2013 12:54:00 +0200 Subject: [PATCH] - rel 9; add patch 14 --- gcc-prism.patch | 60 +++++++++++++++++++++++++++++++++++++++++++++++++ gcc.spec | 4 +++- 2 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 gcc-prism.patch diff --git a/gcc-prism.patch b/gcc-prism.patch new file mode 100644 index 0000000..e780d03 --- /dev/null +++ b/gcc-prism.patch @@ -0,0 +1,60 @@ +--- gcc-4_5-branch/libjava/prims.cc 2010/04/06 11:07:48 157989 ++++ gcc-4_5-branch/libjava/prims.cc 2011/11/24 07:23:16 181687 +@@ -38,7 +38,6 @@ + #endif + + #ifndef DISABLE_GETENV_PROPERTIES +-#include + #include + #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/gcc.spec b/gcc.spec index 96ba4c0..e666931 100644 --- a/gcc.spec +++ b/gcc.spec @@ -68,7 +68,7 @@ Summary(pl.UTF-8): Kolekcja kompilatorów GNU: kompilator C i pliki współdziel Summary(pt_BR.UTF-8): Coleção dos compiladores GNU: o compilador C e arquivos compartilhados Name: gcc Version: %{major_ver}.%{minor_ver} -Release: 8 +Release: 9 Epoch: 6 License: GPL v3+ Group: Development/Languages @@ -89,6 +89,7 @@ Patch9: %{name}-hash-style-gnu.patch Patch11: %{name}-build-id.patch Patch12: %{name}-plugin-decl-hook.patch Patch13: %{name}-siginfo_t.patch +Patch14: %{name}-prism.patch URL: http://gcc.gnu.org/ BuildRequires: autoconf %{?with_tests:BuildRequires: autogen} @@ -1221,6 +1222,7 @@ Statyczna biblioteki Obiektowego C - wersja 32-bitowa. %patch11 -p0 %patch12 -p0 %patch13 -p1 +%patch14 -p1 mv ChangeLog ChangeLog.general -- 2.46.0