[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


            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.

In member function '__int64_t _Unwind::LocalAddressSpace::getSLEB128(_Unwind::
LocalAddressSpace::pint_t&, _Unwind::LocalAddressSpace::pint_t)':
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