summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndris Pavenis2020-05-17 02:26:59 +0300
committerAndris Pavenis2020-05-17 02:26:59 +0300
commit28aa3c00aabe753c9bb59b654f86f7716ff950af (patch)
tree0ac62ea34a2562595271360eaf8b28e412ab5f3d
parent491fb46cd55ca41518a666e6ab0ebd0be2771894 (diff)
downloadaur-28aa3c00aabe753c9bb59b654f86f7716ff950af.tar.gz
New revision for gcc-10.1 cross-compiler
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
-rw-r--r--gcc-djgpp.diff35
3 files changed, 39 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0acb3b5f623..8bcef36dda9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = djgpp-gcc
pkgdesc = GCC for the djgpp cross-compiler
pkgver = 10.1.0
- pkgrel = 1
+ pkgrel = 2
url = http://gcc.gnu.org
arch = i686
arch = x86_64
@@ -26,7 +26,7 @@ pkgbase = djgpp-gcc
sha256sums = b6898a23844b656f1b68691c5c012036c2e694ac4b53a8918d4712ad876e7ea2
sha256sums = b587e083eb65a8b394e833dea1744f21af3f0e413a448c17536b5549ae42a4c2
sha256sums = c03dbd61274e1ce14f84366abf348d75779bbd6e0bc32b9f4fd74f1ce54a5ef0
- sha256sums = 16da71754faa9a0a4113f6e4d0e3662f2307ad0258ef0e56a81318f2e5394143
+ sha256sums = ff8038e8feef213b9a79dfc604c37a267dbdd0c66f333547909f2af17c6d7a9d
pkgname = djgpp-gcc
diff --git a/PKGBUILD b/PKGBUILD
index eca5f89f4d9..e858a15b323 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ pkgver=10.1.0
_target="i686-pc-msdosdjgpp"
_islver=0.20
_djver=2.05
-pkgrel=1
+pkgrel=2
pkgdesc="GCC for the djgpp cross-compiler"
arch=('i686' 'x86_64')
url="http://gcc.gnu.org"
@@ -25,7 +25,7 @@ source=("https://ftp.gnu.org/gnu/gcc/gcc-$pkgver/gcc-$pkgver.tar.xz"
sha256sums=('b6898a23844b656f1b68691c5c012036c2e694ac4b53a8918d4712ad876e7ea2'
'b587e083eb65a8b394e833dea1744f21af3f0e413a448c17536b5549ae42a4c2'
'c03dbd61274e1ce14f84366abf348d75779bbd6e0bc32b9f4fd74f1ce54a5ef0'
- '16da71754faa9a0a4113f6e4d0e3662f2307ad0258ef0e56a81318f2e5394143')
+ 'ff8038e8feef213b9a79dfc604c37a267dbdd0c66f333547909f2af17c6d7a9d')
prepare() {
cd gcc-$pkgver
diff --git a/gcc-djgpp.diff b/gcc-djgpp.diff
index 8c1a5104781..7abfd525e4a 100644
--- a/gcc-djgpp.diff
+++ b/gcc-djgpp.diff
@@ -96,6 +96,19 @@ index 99406e9a77d..a35507806a6 100644
pragma Import (C, Current_Time, "__gnat_current_time");
pragma Import (C, Current_Process_Id, "__gnat_current_process_id");
+diff --git a/gcc/config/i386/djgpp.c b/gcc/config/i386/djgpp.c
+index ba6c2d4d3a4..88cf1e6506e 100644
+--- a/gcc/config/i386/djgpp.c
++++ b/gcc/config/i386/djgpp.c
+@@ -36,6 +36,8 @@ i386_djgpp_asm_named_section(const char *name, unsigned int flags,
+ *f++ = 'w';
+ if (flags & SECTION_CODE)
+ *f++ = 'x';
++ if (flags & SECTION_BSS)
++ *f++ = 'b';
+
+ /* LTO sections need 1-byte alignment to avoid confusing the
+ zlib decompression algorithm with trailing zero pad bytes. */
diff --git a/gcc/config/i386/xm-djgpp.h b/gcc/config/i386/xm-djgpp.h
index 299ef0a4810..a376a3f9146 100644
--- a/gcc/config/i386/xm-djgpp.h
@@ -484,6 +497,28 @@ index 32ebcec928c..96498b7c408 100644
#define L_(x) L##x
#else
#define L_(x) x
+diff --git a/libstdc++-v3/config/os/djgpp/ctype_configure_char.cc b/libstdc++-v3/config/os/djgpp/ctype_configure_char.cc
+index 8562c8f52b0..775756ede3f 100644
+--- a/libstdc++-v3/config/os/djgpp/ctype_configure_char.cc
++++ b/libstdc++-v3/config/os/djgpp/ctype_configure_char.cc
+@@ -45,7 +45,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
+ ctype<char>::ctype(__c_locale, const mask* __table, bool __del,
+ size_t __refs)
+ : facet(__refs), _M_del(__table != 0 && __del),
+- _M_toupper(__dj_ctype_toupper), _M_tolower(__dj_ctype_tolower),
++ _M_toupper(__dj_ctype_toupper+1), _M_tolower(__dj_ctype_tolower+1),
+ _M_table(__table ? __table : classic_table())
+ {
+ memset(_M_widen, 0, sizeof(_M_widen));
+@@ -56,7 +56,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
+
+ ctype<char>::ctype(const mask* __table, bool __del, size_t __refs)
+ : facet(__refs), _M_del(__table != 0 && __del),
+- _M_toupper(__dj_ctype_toupper), _M_tolower(__dj_ctype_tolower),
++ _M_toupper(__dj_ctype_toupper+1), _M_tolower(__dj_ctype_tolower+1),
+ _M_table(__table ? __table : classic_table())
+ {
+ memset(_M_widen, 0, sizeof(_M_widen));
diff --git a/libstdc++-v3/config/os/djgpp/error_constants.h b/libstdc++-v3/config/os/djgpp/error_constants.h
index e0a67bc8d6d..d6ccf4195d6 100644
--- a/libstdc++-v3/config/os/djgpp/error_constants.h