Skip to content

Commit 500de8b

Browse files
LeszekSwirskiV8 LUCI CQ
authored andcommitted
[gcc] Fix gcc / bazel build
Add <iomanip> includes to fix gcc/blaze builds. Also ignore a dangling pointer warning introduced in newer gcc, since it has false positives on some uses of scope classes. Change-Id: Ib86a2437ffc34b5497a5b8619013d6d5b4ea30fe Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5380192 Auto-Submit: Leszek Swirski <[email protected]> Reviewed-by: Adam Klein <[email protected]> Reviewed-by: Michael Achenbach <[email protected]> Commit-Queue: Michael Achenbach <[email protected]> Cr-Commit-Position: refs/heads/main@{#92977}
1 parent 065b323 commit 500de8b

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

BUILD.gn

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1714,6 +1714,10 @@ config("toolchain") {
17141714

17151715
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108517
17161716
"-Wno-nonnull",
1717+
1718+
# Disable dangling pointer warnings, which are often false positives when
1719+
# using scopes.
1720+
"-Wno-dangling-pointer",
17171721
]
17181722
}
17191723

src/compiler/turboshaft/assembler.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#define V8_COMPILER_TURBOSHAFT_ASSEMBLER_H_
77

88
#include <cstring>
9+
#include <iomanip>
910
#include <iterator>
1011
#include <limits>
1112
#include <memory>

src/wasm/wasm-disassembler.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
#include "src/wasm/wasm-disassembler.h"
66

7+
#include <iomanip>
8+
79
#include "src/debug/debug-interface.h"
810
#include "src/numbers/conversions.h"
911
#include "src/wasm/module-decoder-impl.h"

0 commit comments

Comments
 (0)