Comment #14 on issue 1291 by [email protected]: V8 does not compile with
GCC 4.6 (various compiler warnings)
http://code.google.com/p/v8/issues/detail?id=1291
Today's bleeding edge (rev 8932) is getting close. I can compile ia32 and
x64 with the below patch:
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index e9bb4ea..0f1eef6 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1202,6 +1202,7 @@ void Genesis::InitializeExperimentalGlobal() {
InstallFunction(global, "WeakMap", JS_WEAK_MAP_TYPE,
JSWeakMap::kSize,
isolate->initial_object_prototype(),
Builtins::kIllegal, true);
+ (void) weakmap_fun;
}
}
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc
index 0056acc..6aa9142 100644
--- a/src/ia32/full-codegen-ia32.cc
+++ b/src/ia32/full-codegen-ia32.cc
@@ -4205,6 +4205,7 @@ void
FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) {
switch (op) {
case Token::EQ_STRICT:
strict = true;
+ (void) strict;
// Fall through
case Token::EQ:
cc = equal;
diff --git a/src/ia32/lithium-codegen-ia32.cc
b/src/ia32/lithium-codegen-ia32.cc
index f771c4e..01a3b97 100644
--- a/src/ia32/lithium-codegen-ia32.cc
+++ b/src/ia32/lithium-codegen-ia32.cc
@@ -3172,7 +3172,6 @@ void
LCodeGen::DoStoreKeyedFastElement(LStoreKeyedFastElement* instr) {
void LCodeGen::DoStoreKeyedFastDoubleElement(
LStoreKeyedFastDoubleElement* instr) {
XMMRegister value = ToDoubleRegister(instr->value());
- Register key = instr->key()->IsRegister() ? ToRegister(instr->key()) :
no_reg;
Label have_value;
__ ucomisd(value, value);
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev