-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #743 from maleadt/tb/libigc_musl
[libigc] Add musl support.
- Loading branch information
Showing
6 changed files
with
93 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/IGC/AdaptorOCL/Upgrader/llvm9/BitcodeReader.cpp b/IGC/AdaptorOCL/Upgrader/llvm9/BitcodeReader.cpp | ||
index 406fd86c..ebc601f1 100644 | ||
--- a/IGC/AdaptorOCL/Upgrader/llvm9/BitcodeReader.cpp | ||
+++ b/IGC/AdaptorOCL/Upgrader/llvm9/BitcodeReader.cpp | ||
@@ -38,6 +38,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
#pragma warning(disable:4624) | ||
#pragma warning(disable:4800) | ||
|
||
+#define __STDC_FORMAT_MACROS 1 | ||
+ | ||
#include "common/LLVMWarningsPush.hpp" | ||
|
||
#include "llvm/Bitcode/BitcodeReader.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
diff --git a/IGC/AdaptorOCL/OCL/sp/sp_types.h b/IGC/AdaptorOCL/OCL/sp/sp_types.h | ||
index 1fa2d560..3df6b5bd 100644 | ||
--- a/IGC/AdaptorOCL/OCL/sp/sp_types.h | ||
+++ b/IGC/AdaptorOCL/OCL/sp/sp_types.h | ||
@@ -46,7 +46,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
typedef unsigned int ULONG; | ||
|
||
#ifndef C_ASSERT | ||
- #define __UNIQUENAME( a1, a2 ) __CONCAT( a1, a2 ) | ||
+ #define __CONCATING( a1, a2 ) a1 ## a2 | ||
+ #define __UNIQUENAME( a1, a2 ) __CONCATING( a1, a2 ) | ||
#define UNIQUENAME( __text ) __UNIQUENAME( __text, __COUNTER__ ) | ||
|
||
#define STATIC_ASSERT(e) typedef char UNIQUENAME(STATIC_ASSERT_)[(e)?1:-1] | ||
diff --git a/inc/common/UFO/portable_compiler.h b/inc/common/UFO/portable_compiler.h | ||
index 81777765..d03fc69c 100644 | ||
--- a/inc/common/UFO/portable_compiler.h | ||
+++ b/inc/common/UFO/portable_compiler.h | ||
@@ -125,7 +125,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
/* compile-time ASSERT */ | ||
|
||
#ifndef C_ASSERT | ||
- #define __UNIQUENAME( a1, a2 ) __CONCAT( a1, a2 ) | ||
+ #define __CONCATING( a1, a2 ) a1 ## a2 | ||
+ #define __UNIQUENAME( a1, a2 ) __CONCATING( a1, a2 ) | ||
#define UNIQUENAME( __text ) __UNIQUENAME( __text, __COUNTER__ ) | ||
|
||
|
||
diff --git a/visa/BinaryEncodingCNL.h b/visa/BinaryEncodingCNL.h | ||
index e301dc07..07c90cfd 100644 | ||
--- a/visa/BinaryEncodingCNL.h | ||
+++ b/visa/BinaryEncodingCNL.h | ||
@@ -46,8 +46,8 @@ typedef uint64_t QWORD; | ||
#define BITFIELD_RANGE( startbit, endbit ) ((endbit)-(startbit)+1) | ||
#define BITFIELD_BIT( bit ) 1 | ||
|
||
-#define __CONCAT(x,y) x ## y | ||
-#define __UNIQUENAME( a1, a2 ) __CONCAT( a1, a2 ) | ||
+#define __CONCATING( a1, a2 ) a1 ## a2 | ||
+#define __UNIQUENAME( a1, a2 ) __CONCATING( a1, a2 ) | ||
#define UNIQUENAME( __text ) __UNIQUENAME( __text, __COUNTER__ ) | ||
#define STATIC_ASSERT(e) typedef char UNIQUENAME(STATIC_ASSERT_)[(e)?1:-1] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/visa/CISA.y b/visa/CISA.y | ||
index 6ab28ee3..25e08b04 100644 | ||
--- a/visa/CISA.y | ||
+++ b/visa/CISA.y | ||
@@ -29,6 +29,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
#include <math.h> | ||
#include <string> | ||
#include <vector> | ||
+#include <inttypes.h> | ||
|
||
#include "visa_igc_common_header.h" | ||
#include "Common_ISA.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- mm_malloc.h | ||
+++ mm_malloc.h | ||
@@ -31,7 +31,7 @@ | ||
#ifndef __cplusplus | ||
extern int posix_memalign (void **, size_t, size_t); | ||
#else | ||
-extern "C" int posix_memalign (void **, size_t, size_t) throw (); | ||
+extern "C" int posix_memalign (void **, size_t, size_t); | ||
#endif | ||
|
||
static __inline void * |
File renamed without changes.