unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob aa7b3edf853513b2ead12eee8a70fd6f72dafe5e 1243 bytes (raw)
name: gnu/packages/patches/glibc-2-26-0084.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
 
From a546080d517c8833ce1d6abdb86a9293c8d29bae Mon Sep 17 00:00:00 2001
From: Wilco Dijkstra <wdijkstr@arm.com>
Date: Wed, 18 Oct 2017 12:20:55 +0100
Subject: [PATCH 84/90] Fix build failure on tilepro due to unsupported atomics

        * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
        not all targets support atomics on bool.

(cherry-picked from 2c2245b92ccf6344b324d17d8f94ccd3b8c559c6)

diff --git a/ChangeLog b/ChangeLog
index 67d3503afe..d67ad031bc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-10-18  Wilco Dijkstra  <wdijkstr@arm.com>
+
+	* malloc/malloc.c (malloc_state): Use int for have_fastchunks since
+	not all targets support atomics on bool.
+
 2017-10-17  Wilco Dijkstra  <wdijkstr@arm.com>
 
 	* malloc/malloc.c (FASTCHUNKS_BIT): Remove.
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 37e3c44e72..dd9f699d97 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -1689,7 +1689,8 @@ struct malloc_state
   int flags;
 
   /* Set if the fastbin chunks contain recently inserted free blocks.  */
-  bool have_fastchunks;
+  /* Note this is a bool but not all targets support atomics on booleans.  */
+  int have_fastchunks;
 
   /* Fastbins */
   mfastbinptr fastbinsY[NFASTBINS];

debug log:

solving aa7b3edf8 ...
found aa7b3edf8 in https://yhetil.org/guix-patches/87ine0pjiu.fsf@fastmail.com/ ||
	https://yhetil.org/guix-patches/87d148pe57.fsf@fastmail.com/

applying [1/1] https://yhetil.org/guix-patches/87ine0pjiu.fsf@fastmail.com/
diff --git a/gnu/packages/patches/glibc-2-26-0084.patch b/gnu/packages/patches/glibc-2-26-0084.patch
new file mode 100644
index 000000000..aa7b3edf8

1:28: trailing whitespace.
 
1:29: space before tab in indent.
 	* malloc/malloc.c (FASTCHUNKS_BIT): Remove.
1:36: trailing whitespace.
 
1:41: trailing whitespace.
 
Checking patch gnu/packages/patches/glibc-2-26-0084.patch...
Applied patch gnu/packages/patches/glibc-2-26-0084.patch cleanly.
warning: 4 lines add whitespace errors.

skipping https://yhetil.org/guix-patches/87d148pe57.fsf@fastmail.com/ for aa7b3edf8
index at:
100644 aa7b3edf853513b2ead12eee8a70fd6f72dafe5e	gnu/packages/patches/glibc-2-26-0084.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).