Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
v8: fix "pure virtual method called" runtime error
Browse files Browse the repository at this point in the history
Fixes #2912.
  • Loading branch information
bnoordhuis committed Apr 19, 2012
1 parent e67a0f8 commit c21c51a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions deps/v8/build/common.gypi
Expand Up @@ -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
}],
Expand Down

0 comments on commit c21c51a

Please sign in to comment.