Changeset 280689 in webkit
- Timestamp:
- Aug 5, 2021, 8:27:03 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 16 edited
-
ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/b3/air/AirAllocateRegistersByGraphColoring.cpp (modified) (3 diffs)
-
Source/JavaScriptCore/jit/JITCall.cpp (modified) (1 diff)
-
Source/WTF/ChangeLog (modified) (1 diff)
-
Source/WTF/wtf/Bitmap.h (modified) (1 diff)
-
Source/WTF/wtf/Compiler.h (modified) (1 diff)
-
Source/WTF/wtf/Packed.h (modified) (2 diffs)
-
Source/WTF/wtf/RefPtr.h (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/CSSValue.h (modified) (1 diff)
-
Source/WebCore/css/StyleRule.h (modified) (1 diff)
-
Source/WebCore/dom/Node.h (modified) (1 diff)
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/WebProcess/Plugins/PluginView.cpp (modified) (2 diffs)
-
Source/cmake/WebKitCompilerFlags.cmake (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r280469 r280689 1 2021-08-05 Michael Catanzaro <mcatanzaro@gnome.org> 2 3 GCC 11 builds should use -Wno-array-bounds, -Wno-nonnull 4 https://bugs.webkit.org/show_bug.cgi?id=228601 5 6 Reviewed by Carlos Garcia Campos. 7 8 Prior to GCC 11, these were good warnings that could catch serious errors. But GCC 11 has 9 just become too sensitive and it's flagging what appear to be harmless cases, and not 10 providing enough feedback to know why. This has resulted in me littering our code with 11 pragmas to suppress GCC's false positives, and I think it's reached the point where it's 12 nicer to just turn off the warnings until such time that GCC gets this under control, and 13 rely on Clang instead in the meantime. 14 15 The GCC developers have indicated that these warnings will *always* produce false positives 16 in some circumstances, but with GCC 11 it's just too become too much IMO. 17 18 * Source/cmake/WebKitCompilerFlags.cmake: 19 1 20 2021-07-30 Adrian Perez de Castro <aperez@igalia.com> 2 21 -
trunk/Source/JavaScriptCore/ChangeLog
r280687 r280689 1 2021-08-05 Michael Catanzaro <mcatanzaro@gnome.org> 2 3 GCC 11 builds should use -Wno-array-bounds, -Wno-nonnull 4 https://bugs.webkit.org/show_bug.cgi?id=228601 5 6 Reviewed by Carlos Garcia Campos. 7 8 * b3/air/AirAllocateRegistersByGraphColoring.cpp: 9 * jit/JITCall.cpp: 10 (JSC::JIT::compileOpCall): 11 1 12 2021-08-05 Zan Dobersek <zdobersek@igalia.com> 2 13 -
trunk/Source/JavaScriptCore/b3/air/AirAllocateRegistersByGraphColoring.cpp
r278878 r280689 1467 1467 dataLog("FATAL: No color for ", tmp, "\n"); 1468 1468 dataLog("Code:\n"); 1469 // https://bugs.webkit.org/show_bug.cgi?id=2247821470 IGNORE_ARRAY_BOUNDS_WARNINGS_BEGIN1471 1469 dataLog(m_code); 1472 IGNORE_ARRAY_BOUNDS_WARNINGS_END1473 1470 RELEASE_ASSERT_NOT_REACHED(); 1474 1471 } … … 1485 1482 void initializePrecoloredTmp() 1486 1483 { 1487 // https://bugs.webkit.org/show_bug.cgi?id=2247821488 IGNORE_ARRAY_BOUNDS_WARNINGS_BEGIN1489 1484 m_coloredTmp.resize(m_lastPrecoloredRegisterIndex + 1); 1490 1485 for (unsigned i = 1; i <= m_lastPrecoloredRegisterIndex; ++i) { … … 1493 1488 m_coloredTmp[i] = tmp.reg(); 1494 1489 } 1495 IGNORE_ARRAY_BOUNDS_WARNINGS_END1496 1490 } 1497 1491 -
trunk/Source/JavaScriptCore/jit/JITCall.cpp
r278816 r280689 254 254 } 255 255 256 IGNORE_ERRONEOUS_GCC_NULL_CHECK_WARNINGS_BEGIN257 256 auto slowPaths = info->emitFastPath(*this, regT0, regT2, CallLinkInfo::UseDataIC::Yes); 258 IGNORE_ERRONEOUS_GCC_NULL_CHECK_WARNINGS_END259 257 auto doneLocation = label(); 260 258 addSlowCase(slowPaths); -
trunk/Source/WTF/ChangeLog
r280683 r280689 1 2021-08-05 Michael Catanzaro <mcatanzaro@gnome.org> 2 3 GCC 11 builds should use -Wno-array-bounds, -Wno-nonnull 4 https://bugs.webkit.org/show_bug.cgi?id=228601 5 6 Reviewed by Carlos Garcia Campos. 7 8 * wtf/Bitmap.h: 9 (WTF::WordType>::clear): 10 * wtf/Compiler.h: 11 * wtf/Packed.h: 12 (WTF::PackedAlignedPtr::get const): 13 * wtf/RefPtr.h: 14 (WTF::DefaultRefDerefTraits::derefIfNotNull): 15 1 16 2021-08-05 Zan Dobersek <zdobersek@igalia.com> 2 17 -
trunk/Source/WTF/wtf/Bitmap.h
r280544 r280689 235 235 inline void Bitmap<bitmapSize, WordType>::clear(size_t n) 236 236 { 237 IGNORE_ARRAY_BOUNDS_WARNINGS_BEGIN238 237 bits[n / wordSize] &= ~(one << (n % wordSize)); 239 IGNORE_ARRAY_BOUNDS_WARNINGS_END240 238 } 241 239 -
trunk/Source/WTF/wtf/Compiler.h
r279073 r280689 514 514 #define IGNORE_NULL_CHECK_WARNINGS_END IGNORE_WARNINGS_END 515 515 516 #define IGNORE_ARRAY_BOUNDS_WARNINGS_BEGIN IGNORE_WARNINGS_BEGIN("array-bounds")517 #define IGNORE_ARRAY_BOUNDS_WARNINGS_END IGNORE_WARNINGS_END518 519 /* https://bugs.webkit.org/show_bug.cgi?id=224452 */520 #define IGNORE_ERRONEOUS_GCC_NULL_CHECK_WARNINGS_BEGIN IGNORE_GCC_WARNINGS_BEGIN("nonnull")521 #define IGNORE_ERRONEOUS_GCC_NULL_CHECK_WARNINGS_END IGNORE_GCC_WARNINGS_END522 523 516 /* NO_UNIQUE_ADDRESS */ 524 517 -
trunk/Source/WTF/wtf/Packed.h
r279028 r280689 143 143 uintptr_t value = 0; 144 144 145 IGNORE_ARRAY_BOUNDS_WARNINGS_BEGIN146 145 #if CPU(LITTLE_ENDIAN) 147 146 memcpy(&value, m_storage.data(), storageSize); … … 149 148 memcpy(bitwise_cast<uint8_t*>(&value) + (sizeof(void*) - storageSize), m_storage.data(), storageSize); 150 149 #endif 151 IGNORE_ARRAY_BOUNDS_WARNINGS_END152 150 153 151 if (isAlignmentShiftProfitable) -
trunk/Source/WTF/wtf/RefPtr.h
r276332 r280689 39 39 static ALWAYS_INLINE void derefIfNotNull(T* ptr) 40 40 { 41 IGNORE_ERRONEOUS_GCC_NULL_CHECK_WARNINGS_BEGIN42 41 if (LIKELY(ptr != nullptr)) 43 42 ptr->deref(); 44 IGNORE_ERRONEOUS_GCC_NULL_CHECK_WARNINGS_END45 43 } 46 44 }; -
trunk/Source/WebCore/ChangeLog
r280686 r280689 1 2021-08-05 Michael Catanzaro <mcatanzaro@gnome.org> 2 3 GCC 11 builds should use -Wno-array-bounds, -Wno-nonnull 4 https://bugs.webkit.org/show_bug.cgi?id=228601 5 6 Reviewed by Carlos Garcia Campos. 7 8 * css/CSSValue.h: 9 (WebCore::CSSValue::deref): 10 * css/StyleRule.h: 11 (WebCore::StyleRuleBase::deref const): 12 * dom/Node.h: 13 (WebCore::Node::deref const): 14 1 15 2021-08-05 Rob Buis <rbuis@igalia.com> 2 16 -
trunk/Source/WebCore/css/CSSValue.h
r278540 r280689 71 71 unsigned tempRefCount = m_refCount - refCountIncrement; 72 72 if (!tempRefCount) { 73 IGNORE_ERRONEOUS_GCC_NULL_CHECK_WARNINGS_BEGIN74 73 destroy(); 75 IGNORE_ERRONEOUS_GCC_NULL_CHECK_WARNINGS_END76 74 return; 77 75 } -
trunk/Source/WebCore/css/StyleRule.h
r276332 r280689 278 278 { 279 279 if (derefBase()) 280 IGNORE_ERRONEOUS_GCC_NULL_CHECK_WARNINGS_BEGIN281 280 const_cast<StyleRuleBase&>(*this).destroy(); 282 IGNORE_ERRONEOUS_GCC_NULL_CHECK_WARNINGS_END283 281 } 284 282 -
trunk/Source/WebCore/dom/Node.h
r279866 r280689 796 796 m_inRemovedLastRefFunction = true; 797 797 #endif 798 IGNORE_ERRONEOUS_GCC_NULL_CHECK_WARNINGS_BEGIN799 798 const_cast<Node&>(*this).removedLastRef(); 800 IGNORE_ERRONEOUS_GCC_NULL_CHECK_WARNINGS_END801 799 return; 802 800 } -
trunk/Source/WebKit/ChangeLog
r280681 r280689 1 2021-08-05 Michael Catanzaro <mcatanzaro@gnome.org> 2 3 GCC 11 builds should use -Wno-array-bounds, -Wno-nonnull 4 https://bugs.webkit.org/show_bug.cgi?id=228601 5 6 Reviewed by Carlos Garcia Campos. 7 8 * WebProcess/Plugins/PluginView.cpp: 9 (WebKit::PluginView::Stream::~Stream): 10 1 11 2021-08-05 Imanol Fernandez <ifernandez@igalia.com> 2 12 -
trunk/Source/WebKit/WebProcess/Plugins/PluginView.cpp
r278516 r280689 146 146 }; 147 147 148 IGNORE_ERRONEOUS_GCC_NULL_CHECK_WARNINGS_BEGIN149 148 PluginView::Stream::~Stream() 150 149 { … … 153 152 ASSERT(!m_pluginView); 154 153 } 155 IGNORE_ERRONEOUS_GCC_NULL_CHECK_WARNINGS_END156 154 157 155 void PluginView::Stream::start() -
trunk/Source/cmake/WebKitCompilerFlags.cmake
r276129 r280689 137 137 endif () 138 138 139 # Since GCC 11, these warnings produce too many false positives to be useful. We'll rely on 140 # developers who build with Clang to notice these warnings. 141 if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER_EQUAL "11.0") 142 WEBKIT_PREPEND_GLOBAL_CXX_FLAGS(-Wno-array-bounds) 143 WEBKIT_PREPEND_GLOBAL_CXX_FLAGS(-Wno-nonnull) 144 endif () 145 139 146 # -Wexpansion-to-defined produces false positives with GCC but not Clang 140 147 # https://bugs.webkit.org/show_bug.cgi?id=167643#c13 141 if (CMAKE_C OMPILER_IS_GNUCXX)148 if (CMAKE_CXX_COMPILER_ID MATCHES "GNU") 142 149 WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-Wno-expansion-to-defined) 143 150 endif ()
Note:
See TracChangeset
for help on using the changeset viewer.