Title: [294861] trunk/Source/WTF/wtf/CheckedArithmetic.h
- Revision
- 294861
- Author
- [email protected]
- Date
- 2022-05-25 18:56:09 -0700 (Wed, 25 May 2022)
Log Message
Build fix: Don't use __builtin_mul_overflow on PLATFORM(IOS_FAMILY_SIMULATOR).
https://bugs.webkit.org/show_bug.cgi?id=240937
Reviewed by Saam Barati and Alex Christensen.
The __mulodi4 symbol used by clang for __builtin_mul_overflow is not available.
* Source/WTF/wtf/CheckedArithmetic.h:
Canonical link: https://commits.webkit.org/250993@main
Modified Paths
Diff
Modified: trunk/Source/WTF/wtf/CheckedArithmetic.h (294860 => 294861)
--- trunk/Source/WTF/wtf/CheckedArithmetic.h 2022-05-26 01:52:56 UTC (rev 294860)
+++ trunk/Source/WTF/wtf/CheckedArithmetic.h 2022-05-26 01:56:09 UTC (rev 294861)
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011-2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2011-2022 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -34,7 +34,7 @@
/* On Linux with clang, libgcc is usually used instead of compiler-rt, and it does
* not provide the __mulodi4 symbol used by clang for __builtin_mul_overflow
*/
-#if COMPILER(GCC) || (COMPILER(CLANG) && !(CPU(ARM) && OS(LINUX)))
+#if COMPILER(GCC) || (COMPILER(CLANG) && !(CPU(ARM) && OS(LINUX))) && !PLATFORM(IOS_FAMILY_SIMULATOR)
#define USE_MUL_OVERFLOW 1
#endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes