Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1946733 - Ignore -Walloc-size-larger-than= in `operator new[](not…
…hrow)`. r=firefox-build-system-reviewers,sergesanspaille,sylvestre Unfortunately, GCC-14 appears to be generating this warning due to its own frontend/codegen [interactions?]. This is https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85783, which was WONTFIX'd. Comment #3 admits: > The excessive constant argument is introduced by the C++ front-end, in > cp/build_operator_new_call(), which emits a call to operator new[](size_t). > The code was added in r190546 as a solution to prevent unsigned wrapping > (when array new expression must compute the amount of space to allocate as a > product of the number of elements and element size). When the replacement > operator new[] is inlined the excessive argument is propagated to malloc() > and ultimately triggers the warning. Differential Revision: https://phabricator.services.mozilla.com/D239424
- Loading branch information