summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/binutils-libiberty-endianness-bug.patch
diff options
context:
space:
mode:
authorMarius Bakke <[email protected]>2021-07-19 20:44:27 +0200
committerMarius Bakke <[email protected]>2021-07-23 17:26:45 +0200
commit2fa26446a186664c6364de0536380e43113dc95f (patch)
tree8c1df47980c29544c7cb1b221c115dc150a8c22d /gnu/packages/patches/binutils-libiberty-endianness-bug.patch
parente045fd7ce22fb0c098db8317e4e06b68c543ba60 (diff)
gnu: binutils: Update to 2.37.
* gnu/packages/patches/binutils-loongson-workaround.patch: Adjust for upstream changes. * gnu/packages/patches/binutils-libiberty-endianness-bug.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/base.scm (binutils): Update to 2.37. [source](patches): Remove obsolete patch.
Diffstat (limited to 'gnu/packages/patches/binutils-libiberty-endianness-bug.patch')
-rw-r--r--gnu/packages/patches/binutils-libiberty-endianness-bug.patch36
1 files changed, 0 insertions, 36 deletions
diff --git a/gnu/packages/patches/binutils-libiberty-endianness-bug.patch b/gnu/packages/patches/binutils-libiberty-endianness-bug.patch
deleted file mode 100644
index e6c82f704e..0000000000
--- a/gnu/packages/patches/binutils-libiberty-endianness-bug.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-This patch fixes a bug exposed when running the libiberty test suite on
-big-endian machines.
-
-Original bug report:
-https://sourceware.org/bugzilla/show_bug.cgi?id=27751
-Follow-ups:
-https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100177
-https://gcc.gnu.org/pipermail/gcc-patches/2021-April/568314.html
-
----
- libiberty/rust-demangle.c | 9 ++++++---
- 1 file changed, 6 insertions(+), 3 deletions(-)
-
-diff --git a/libiberty/rust-demangle.c b/libiberty/rust-demangle.c
-index 6fd8f6a4db0..848563fa3c3 100644
---- a/libiberty/rust-demangle.c
-+++ b/libiberty/rust-demangle.c
-@@ -1253,9 +1253,12 @@ demangle_const_char (struct rust_demangler *rdm)
- else if (value == '\n')
- PRINT ("\\n");
- else if (value > ' ' && value < '~')
-- /* Rust also considers many non-ASCII codepoints to be printable, but
-- that logic is not easily ported to C. */
-- print_str (rdm, (char *) &value, 1);
-+ {
-+ /* Rust also considers many non-ASCII codepoints to be printable, but
-+ that logic is not easily ported to C. */
-+ char c = value;
-+ print_str (rdm, &c, 1);
-+ }
- else
- {
- PRINT ("\\u{");
---
-2.31.1
-