• jochen@chromium.org's avatar
    Improve x32 detection macro. · 02213097
    jochen@chromium.org authored
    When targeting the Microsoft ABI in 64bit mode, clang defines __x86_64__ but
    doesn't define __LP64__ (Microsoft uses LLP64), so it would fall down the x32
    path. cl.exe doesn't define __x86_64__ in the first place, so it didn't have
    this problem.
    
    Rather than trying to guess pointer size by looking at __x86_64__ and __LP64__,
    check for pointer size directly using __POINTER_SIZE__. This is defined by both
    gcc and clang, and eliminiates this problem.
    
    This should fix hundreds of "error(clang): unknown type name 'Atomic64'" when
    compiling v8 on Windows with clang for 64 bit.
    
    BUG=chromium:82385
    LOG=n
    R=haitao.feng@intel.com, jochen@chromium.org
    
    Review URL: https://codereview.chromium.org/560903002
    
    Patch from Nico Weber <thakis@chromium.org>.
    
    git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23855 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    02213097
Name
Last commit
Last update
..
platform Loading commit data...
utils Loading commit data...
DEPS Loading commit data...
atomicops.h Loading commit data...
atomicops_internals_arm64_gcc.h Loading commit data...
atomicops_internals_arm_gcc.h Loading commit data...
atomicops_internals_atomicword_compat.h Loading commit data...
atomicops_internals_mac.h Loading commit data...
atomicops_internals_mips64_gcc.h Loading commit data...
atomicops_internals_mips_gcc.h Loading commit data...
atomicops_internals_tsan.h Loading commit data...
atomicops_internals_x86_gcc.cc Loading commit data...
atomicops_internals_x86_gcc.h Loading commit data...
atomicops_internals_x86_msvc.h Loading commit data...
base.gyp Loading commit data...
bits-unittest.cc Loading commit data...
bits.cc Loading commit data...
bits.h Loading commit data...
build_config.h Loading commit data...
compiler-specific.h Loading commit data...
cpu-unittest.cc Loading commit data...
cpu.cc Loading commit data...
cpu.h Loading commit data...
division-by-constant-unittest.cc Loading commit data...
division-by-constant.cc Loading commit data...
division-by-constant.h Loading commit data...
flags-unittest.cc Loading commit data...
flags.h Loading commit data...
lazy-instance.h Loading commit data...
logging.cc Loading commit data...
logging.h Loading commit data...
macros.h Loading commit data...
once.cc Loading commit data...
once.h Loading commit data...
qnx-math.h Loading commit data...
safe_conversions.h Loading commit data...
safe_conversions_impl.h Loading commit data...
safe_math.h Loading commit data...
safe_math_impl.h Loading commit data...
sys-info-unittest.cc Loading commit data...
sys-info.cc Loading commit data...
sys-info.h Loading commit data...
win32-headers.h Loading commit data...
win32-math.cc Loading commit data...
win32-math.h Loading commit data...