[llvm-bugs] [Bug 33358] New: libunwind left-shifts negative number
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jun 8 07:41:44 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33358
Bug ID: 33358
Summary: libunwind left-shifts negative number
Product: libc++abi
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: unassignedbugs at nondot.org
Reporter: liuw at liuw.name
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
While building the rumprun project, which contains a copy of NetBSD source
code, which contains a copy of LLVM libunwind, I encountered the following
error with gcc 6.3 on Debian Stretch.
/local/work/Rump-kernels/rumprun/src-netbsd/sys/lib/libunwind/AddressSpace.hpp:
In member function '__int64_t _Unwind::LocalAddressSpace::getSLEB128(_Unwind::
LocalAddressSpace::pint_t&, _Unwind::LocalAddressSpace::pint_t)':
/local/work/Rump-kernels/rumprun/src-netbsd/sys/lib/libunwind/AddressSpace.hpp:143:27:
error: left shift of negative value [-Werror=shift-negative-value]
result |= (-1LL) << bit;
^~~
cc1plus: all warnings being treated as errors
*** Failed target: libunwind.o
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170608/63708453/attachment.html>
More information about the llvm-bugs
mailing list