Comment #15 on issue 615 by [email protected]: "instanceof" operator broken
in V8 v2.0.6.4
http://code.google.com/p/v8/issues/detail?id=615
~]scons arch=x64 library=shared sample=shell mode=debug
libv8_g.so, shell_g<<<
~]./shell_g -e "print([] instanceof Array)"
true
------
~]gcc --version
gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
OK, made the changes to SConstruct. However, I got an error:
~]scons arch=x64 library=shared
gcc -o obj/release/dtoa-config.os -c -Werror -Wno-uninitialized -m64 -O3
-fomit-
frame-pointer -fdata-sections -ffunction-sections -ansi
--fno-strict-aliasing -fPIC -
DV8_TARGET_ARCH_X64 -DV8_SHARED -DENABLE_DEBUGGER_SUPPORT
-DV8_NATIVE_REGEXP -
DENABLE_LOGGING_AND_PROFILING -Isrc src/dtoa-config.c
cc1: error: unrecognized command line option "-ffno-strict-aliasing"
scons: *** [obj/release/dtoa-config.os] Error 1
scons: building terminated because of errors.
I double checked, I didn't mistype as -ffno. So then I observed that the
other
options in SConstruct already had "-fno-strict-aliasing" instead
of "--fno-strict-
aliasing" (one - instead of --). So I changed the two entries you suggested
to use
the one - version of the flag and retried the scons compile.
The relevant lines in SConstruct now look like:
if os.environ.get('GCC_VERSION') == '44':
GCC_EXTRA_CCFLAGS = ['-fno-tree-vrp', '-fno-strict-aliasing']
GCC_DTOA_EXTRA_CCFLAGS = ['-fno-strict-aliasing']
else:
GCC_EXTRA_CCFLAGS = ['-fno-strict-aliasing']
GCC_DTOA_EXTRA_CCFLAGS = []
~]scons arch=x64 library=shared
libv8.so<<<
~]scons arch=x64 library=shared sample=shell
shell<<<
~]./shell -e "print([] instanceof Array)"
false
:( :( :(
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev