Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gcc-patches:master commit in: 11.4.0/musl/
Date: Mon, 02 Jan 2023 01:41:04
Message-Id: 1672621384.c6e054b9a653edf7d5f6e94ded6c3887c2f1ec60.sam@gentoo
1 commit: c6e054b9a653edf7d5f6e94ded6c3887c2f1ec60
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jan 2 01:03:04 2023 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 2 01:03:04 2023 +0000
6 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=c6e054b9
7
8 11.4.0: update calloc/musl patch
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 11.4.0/musl/50_all_calloc_libgccjit.patch | 50 +++++++++++++++++++++++++++++++
13 1 file changed, 50 insertions(+)
14
15 diff --git a/11.4.0/musl/50_all_calloc_libgccjit.patch b/11.4.0/musl/50_all_calloc_libgccjit.patch
16 index 5dec538..bbb6787 100644
17 --- a/11.4.0/musl/50_all_calloc_libgccjit.patch
18 +++ b/11.4.0/musl/50_all_calloc_libgccjit.patch
19 @@ -12,6 +12,36 @@ Subject: [PATCH] Fix attempt to use poisoned calloc error in libgccjit
20
21 This moves usages of pthread.h to above any usage of system.h as it
22 included #pragma GCC poison calloc
23 +--- a/gcc/cp/mapper-client.cc
24 ++++ b/gcc/cp/mapper-client.cc
25 +@@ -27,6 +27,7 @@ along with GCC; see the file COPYING3. If not see
26 + #define INCLUDE_STRING
27 + #define INCLUDE_VECTOR
28 + #define INCLUDE_MAP
29 ++#include <pthread.h>
30 + #include "system.h"
31 +
32 + #include "line-map.h"
33 +--- a/gcc/cp/mapper-resolver.cc
34 ++++ b/gcc/cp/mapper-resolver.cc
35 +@@ -25,6 +25,7 @@ along with GCC; see the file COPYING3. If not see
36 + #define INCLUDE_VECTOR
37 + #define INCLUDE_ALGORITHM
38 + #define INCLUDE_MAP
39 ++#include <pthread.h>
40 + #include "system.h"
41 +
42 + // We don't want or need to be aware of networking
43 +--- a/gcc/cp/module.cc
44 ++++ b/gcc/cp/module.cc
45 +@@ -204,6 +204,7 @@ Classes used:
46 + #include "config.h"
47 + #define INCLUDE_STRING
48 + #define INCLUDE_VECTOR
49 ++#include <pthread.h>
50 + #include "system.h"
51 + #include "coretypes.h"
52 + #include "cp-tree.h"
53 --- a/gcc/jit/jit-playback.c
54 +++ b/gcc/jit/jit-playback.c
55 @@ -18,6 +18,8 @@ You should have received a copy of the GNU General Public License
56 @@ -70,3 +100,23 @@ included #pragma GCC poison calloc
57
58 #include "libgccjit.h"
59 #include "jit-recording.h"
60 +--- a/libcc1/libcc1plugin.cc
61 ++++ b/libcc1/libcc1plugin.cc
62 +@@ -17,6 +17,7 @@
63 + along with GCC; see the file COPYING3. If not see
64 + <http://www.gnu.org/licenses/>. */
65 +
66 ++#include <pthread.h>
67 + #include <cc1plugin-config.h>
68 +
69 + #undef PACKAGE_NAME
70 +--- a/libcc1/libcp1plugin.cc
71 ++++ b/libcc1/libcp1plugin.cc
72 +@@ -18,6 +18,7 @@
73 + along with GCC; see the file COPYING3. If not see
74 + <http://www.gnu.org/licenses/>. */
75 +
76 ++#include <pthread.h>
77 + #include <cc1plugin-config.h>
78 +
79 + #undef PACKAGE_NAME