v8: fix "pure virtual method called" runtime error

Fixes #2912.
This commit is contained in:
Ben Noordhuis 2012-04-20 01:28:54 +02:00
parent e67a0f80e0
commit c21c51a6fc

View File

@ -271,6 +271,14 @@
}],
[ 'v8_no_strict_aliasing==1', {
'cflags': [ '-fno-strict-aliasing' ],
}, {
# gcc 4.4.6 has a regression in non-strict aliasing mode that
# makes a lookup in CodeStub::FindCodeInCache() abort with a
# "pure virtual method called" runtime error.
#
# This bites node.js because it sets -fno-strict-aliasing in its
# cflags, which then leak into our cflags.
'cflags!': [ '-fno-strict-aliasing' ],
}],
], # conditions
}],