• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/gcc/7.3.0/0860-cilk-fix-build-without-wchar.patch
Romain NaourRomain Naour committed e9ec7ae71ce27 Jan 2018
Raw file
Source viewDiff to previous
 
1
From 714739e69ead1d9823233af40645277f6d4633ea Mon Sep 17 00:00:00 2001
2
From: Peter Korsgaard <peter@korsgaard.com>
3
Date: Tue, 2 May 2017 23:21:46 +0200
4
Subject: [PATCH] cilk: fix build without wchar
5
​
6
When building against uClibc with wchar support disabled, WCHAR_MIN and
7
WCHAR_MAX are not defined leading to compilation errors.
8
​
9
Fix it by only including the wchar code if available.
10
​
11
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
12
[Romain: convert to git patch]
13
Signed-off-by: Romain Naour <romain.naour@gmail.com>
14
---
15
 libcilkrts/include/cilk/reducer_min_max.h | 8 ++++++++
16
 1 file changed, 8 insertions(+)
17
​
18
diff --git a/libcilkrts/include/cilk/reducer_min_max.h b/libcilkrts/include/cilk/reducer_min_max.h
19
index 641aa82..4f8e010 100644
20
--- a/libcilkrts/include/cilk/reducer_min_max.h
21
+++ b/libcilkrts/include/cilk/reducer_min_max.h
22
@@ -3289,7 +3289,9 @@ __CILKRTS_BEGIN_EXTERN_C
23
 CILK_C_REDUCER_MAX_INSTANCE(char,               char,       CHAR_MIN)
24
 CILK_C_REDUCER_MAX_INSTANCE(unsigned char,      uchar,      0)
25
 CILK_C_REDUCER_MAX_INSTANCE(signed char,        schar,      SCHAR_MIN)
26
+#ifdef WCHAR_MIN
27
 CILK_C_REDUCER_MAX_INSTANCE(wchar_t,            wchar_t,    WCHAR_MIN)
28
+#endif
29
 CILK_C_REDUCER_MAX_INSTANCE(short,              short,      SHRT_MIN)
30
 CILK_C_REDUCER_MAX_INSTANCE(unsigned short,     ushort,     0)
31
 CILK_C_REDUCER_MAX_INSTANCE(int,                int,        INT_MIN)
32
@@ -3441,7 +3443,9 @@ __CILKRTS_BEGIN_EXTERN_C
33
 CILK_C_REDUCER_MAX_INDEX_INSTANCE(char,               char,       CHAR_MIN)
34
 CILK_C_REDUCER_MAX_INDEX_INSTANCE(unsigned char,      uchar,      0)
35
 CILK_C_REDUCER_MAX_INDEX_INSTANCE(signed char,        schar,      SCHAR_MIN)
36
+#ifdef WCHAR_MIN
37
 CILK_C_REDUCER_MAX_INDEX_INSTANCE(wchar_t,            wchar_t,    WCHAR_MIN)
38
+#endif
39
 CILK_C_REDUCER_MAX_INDEX_INSTANCE(short,              short,      SHRT_MIN)
40
 CILK_C_REDUCER_MAX_INDEX_INSTANCE(unsigned short,     ushort,     0)
41
 CILK_C_REDUCER_MAX_INDEX_INSTANCE(int,                int,        INT_MIN)
42
@@ -3567,7 +3571,9 @@ __CILKRTS_BEGIN_EXTERN_C
43
 CILK_C_REDUCER_MIN_INSTANCE(char,               char,       CHAR_MAX)
44
 CILK_C_REDUCER_MIN_INSTANCE(unsigned char,      uchar,      CHAR_MAX)
45
 CILK_C_REDUCER_MIN_INSTANCE(signed char,        schar,      SCHAR_MAX)
46
+#ifdef WCHAR_MAX
47
 CILK_C_REDUCER_MIN_INSTANCE(wchar_t,            wchar_t,    WCHAR_MAX)
48
+#endif
49
 CILK_C_REDUCER_MIN_INSTANCE(short,              short,      SHRT_MAX)
50
 CILK_C_REDUCER_MIN_INSTANCE(unsigned short,     ushort,     USHRT_MAX)
51
 CILK_C_REDUCER_MIN_INSTANCE(int,                int,        INT_MAX)
52
@@ -3719,7 +3725,9 @@ __CILKRTS_BEGIN_EXTERN_C
53
 CILK_C_REDUCER_MIN_INDEX_INSTANCE(char,               char,       CHAR_MAX)
54
 CILK_C_REDUCER_MIN_INDEX_INSTANCE(unsigned char,      uchar,      CHAR_MAX)
55
 CILK_C_REDUCER_MIN_INDEX_INSTANCE(signed char,        schar,      SCHAR_MAX)
56
+#ifdef WCHAR_MAX
57
 CILK_C_REDUCER_MIN_INDEX_INSTANCE(wchar_t,            wchar_t,    WCHAR_MAX)
58
+#endif
59
 CILK_C_REDUCER_MIN_INDEX_INSTANCE(short,              short,      SHRT_MAX)
60
 CILK_C_REDUCER_MIN_INDEX_INSTANCE(unsigned short,     ushort,     USHRT_MAX)
61
 CILK_C_REDUCER_MIN_INDEX_INSTANCE(int,                int,        INT_MAX)
62
-- 
63
2.9.3
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.