diff options
author | Ross Burton <ross.burton@arm.com> | 2022-09-08 11:45:30 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-09-09 14:09:01 +0100 |
commit | f2688a7e63cdc4dbaafe46f602874cefb499051a (patch) | |
tree | 94a97ee570661b75e8f11cb59ff03391ea1fb826 /meta/recipes-devtools/gcc | |
parent | ecb9f7ee6d92b77cd54c0423447bd01d41561c49 (diff) | |
download | poky-f2688a7e63cdc4dbaafe46f602874cefb499051a.tar.gz |
gcc: remove obsolete poisoned calloc workaround
This was fixed upstream in de6f402a, as part of 12.2.
(From OE-Core rev: d5e6768f30579abc8559aab60429a292a4c49f3d)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-12.2.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/gcc/gcc/0025-Move-sched.h-include-ahead-of-user-headers.patch | 56 |
2 files changed, 0 insertions, 57 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-12.2.inc b/meta/recipes-devtools/gcc/gcc-12.2.inc index 7cc34b2621..02dc59db63 100644 --- a/meta/recipes-devtools/gcc/gcc-12.2.inc +++ b/meta/recipes-devtools/gcc/gcc-12.2.inc | |||
@@ -61,7 +61,6 @@ SRC_URI = "${BASEURI} \ | |||
61 | file://0022-mingw32-Enable-operation_not_supported.patch \ | 61 | file://0022-mingw32-Enable-operation_not_supported.patch \ |
62 | file://0023-libatomic-Do-not-enforce-march-on-aarch64.patch \ | 62 | file://0023-libatomic-Do-not-enforce-march-on-aarch64.patch \ |
63 | file://0024-Fix-install-path-of-linux64.h.patch \ | 63 | file://0024-Fix-install-path-of-linux64.h.patch \ |
64 | file://0025-Move-sched.h-include-ahead-of-user-headers.patch \ | ||
65 | file://0026-rust-recursion-limit.patch \ | 64 | file://0026-rust-recursion-limit.patch \ |
66 | file://prefix-map-realpath.patch \ | 65 | file://prefix-map-realpath.patch \ |
67 | file://hardcoded-paths.patch \ | 66 | file://hardcoded-paths.patch \ |
diff --git a/meta/recipes-devtools/gcc/gcc/0025-Move-sched.h-include-ahead-of-user-headers.patch b/meta/recipes-devtools/gcc/gcc/0025-Move-sched.h-include-ahead-of-user-headers.patch deleted file mode 100644 index d4aeacfed5..0000000000 --- a/meta/recipes-devtools/gcc/gcc/0025-Move-sched.h-include-ahead-of-user-headers.patch +++ /dev/null | |||
@@ -1,56 +0,0 @@ | |||
1 | From 7422adfb471f4b4f2ec870124064632d55f72e50 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 11 Apr 2022 15:46:18 -0700 | ||
4 | Subject: [PATCH] Move sched.h include ahead of user headers | ||
5 | |||
6 | Fix attempt to use poisoned calloc error, this moves the sched.h before | ||
7 | using system.h from gcc headers which includes #pragma GCC poison calloc | ||
8 | |||
9 | Fixes | ||
10 | In file included from /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux-musl/gcc/12.0.1-r0/recipe-sysroot/usr/include/pthread.h:30, | ||
11 | from /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux-musl/gcc/12.0.1-r0/recipe-sysroot/usr/include/c++/12.0.1/aarch64-yoe-linux-musl/bits/gthr-default.h:35, | ||
12 | from /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux-musl/gcc/12.0.1-r0/recipe-sysroot/usr/include/c++/12.0.1/aarch64-yoe-linux-musl/bits/gthr.h:148, | ||
13 | from /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux-musl/gcc/12.0.1-r0/recipe-sysroot/usr/include/c++/12.0.1/ext/atomicity.h:35, | ||
14 | from /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux-musl/gcc/12.0.1-r0/recipe-sysroot/usr/include/c++/12.0.1/bits/shared_ptr_base.h:61, | ||
15 | from /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux-musl/gcc/12.0.1-r0/recipe-sysroot/usr/include/c++/12.0.1/bits/shared_ptr.h:53, | ||
16 | from /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux-musl/gcc/12.0.1-r0/recipe-sysroot/usr/include/c++/12.0.1/memory:77, | ||
17 | from ../../../../../../../work-shared/gcc-12.0.1-r0/gcc-12-20220410/libcc1/deleter.hh:23, | ||
18 | from ../../../../../../../work-shared/gcc-12.0.1-r0/gcc-12-20220410/libcc1/rpc.hh:25, | ||
19 | from ../../../../../../../work-shared/gcc-12.0.1-r0/gcc-12-20220410/libcc1/libcc1plugin.cc:67: | ||
20 | /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux-musl/gcc/12.0.1-r0/recipe-sysroot/usr/include/sched.h:84:7: error: attempt to use poisoned "calloc" | ||
21 | 84 | void *calloc(size_t, size_t); | ||
22 | | ^ | ||
23 | /mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux-musl/gcc/12.0.1-r0/recipe-sysroot/usr/include/sched.h:124:36: error: attempt to use poisoned "calloc" | ||
24 | 124 | #define CPU_ALLOC(n) ((cpu_set_t *)calloc(1,CPU_ALLOC_SIZE(n))) | ||
25 | |||
26 | Upstream-Status: Pending | ||
27 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
28 | --- | ||
29 | libcc1/libcc1plugin.cc | 1 + | ||
30 | libcc1/libcp1plugin.cc | 1 + | ||
31 | 2 files changed, 2 insertions(+) | ||
32 | |||
33 | diff --git a/libcc1/libcc1plugin.cc b/libcc1/libcc1plugin.cc | ||
34 | index 12ab5a57c8d..fff9bfab18b 100644 | ||
35 | --- a/libcc1/libcc1plugin.cc | ||
36 | +++ b/libcc1/libcc1plugin.cc | ||
37 | @@ -17,6 +17,7 @@ | ||
38 | along with GCC; see the file COPYING3. If not see | ||
39 | <http://www.gnu.org/licenses/>. */ | ||
40 | |||
41 | +#include <sched.h> | ||
42 | #include <cc1plugin-config.h> | ||
43 | |||
44 | #undef PACKAGE_NAME | ||
45 | diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc | ||
46 | index 83dab7f58b1..0b83ce7a09d 100644 | ||
47 | --- a/libcc1/libcp1plugin.cc | ||
48 | +++ b/libcc1/libcp1plugin.cc | ||
49 | @@ -18,6 +18,7 @@ | ||
50 | along with GCC; see the file COPYING3. If not see | ||
51 | <http://www.gnu.org/licenses/>. */ | ||
52 | |||
53 | +#include <sched.h> | ||
54 | #include <cc1plugin-config.h> | ||
55 | |||
56 | #undef PACKAGE_NAME | ||