forked from spack/spack
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
patches to apply to gdbm and m4 when using oneapi compiler (spack#21740)
- Loading branch information
1 parent
8e3ac85
commit 3364e55
Showing
3 changed files
with
20 additions
and
0 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,18 @@ | ||
--- a/lib/xalloc-oversized.h 2020-08-07 11:04:56.154698639 -0700 | ||
+++ b/lib/xalloc-oversized.h 2020-08-07 11:06:11.667997389 -0700 | ||
@@ -46,13 +46,13 @@ | ||
positive and N must be nonnegative. This is a macro, not a | ||
function, so that it works correctly even when SIZE_MAX < N. */ | ||
|
||
-#if 7 <= __GNUC__ || __has_builtin (__builtin_add_overflow_p) | ||
+#if ((7 <= __GNUC__ || __has_builtin (__builtin_add_overflow_p)) && !defined __INTEL_LLVM_COMPILER) | ||
# define xalloc_oversized(n, s) \ | ||
__builtin_mul_overflow_p (n, s, (__xalloc_count_type) 1) | ||
#elif ((5 <= __GNUC__ \ | ||
|| (__has_builtin (__builtin_mul_overflow) \ | ||
&& __has_builtin (__builtin_constant_p))) \ | ||
- && !__STRICT_ANSI__) | ||
+ && !__STRICT_ANSI__ && !defined __INTEL_LLVM_COMPILER) | ||
# define xalloc_oversized(n, s) \ | ||
(__builtin_constant_p (n) && __builtin_constant_p (s) \ | ||
? __xalloc_oversized (n, s) \ |
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