New issue
Advanced search Search tips

Issue 820303 link

Starred by 2 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

v8 compilation fails with recent LLVM

Reported by awill...@redhat.com, Mar 9 2018

Issue description

Compiling v8 with recent LLVM fails:

../../src/base/macros.h:290:43: error: arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Werror,-Wnull-pointer-arithmetic]
  return static_cast<T>(static_cast<T>(0) + x);
                        ~~~~~~~~~~~~~~~~~ ^

this appears to be a warning fairly recently added to LLVM, being treated as an error due to the use of -Werror. See https://reviews.llvm.org/D38186 for the patch which adds it to the LLVM docs, and http://releases.llvm.org/6.0.0/tools/clang/docs/ReleaseNotes.html for the actual llvm 6 release notes which include that text.
 
Components: Blink>JavaScript
Components: -Blink>JavaScript Blink>JavaScript>API
Owner: yangguo@chromium.org
Status: Assigned (was: Unconfirmed)
Yang, how relevant is this?

Sign in to add a comment