bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/18446] New: Compilation error left shift of negative value in g


From: darlingm at gmail dot com
Subject: [Bug gas/18446] New: Compilation error left shift of negative value in gas/read.c
Date: Thu, 21 May 2015 23:46:53 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=18446

            Bug ID: 18446
           Summary: Compilation error left shift of negative value in
                    gas/read.c
           Product: binutils
           Version: 2.26 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: darlingm at gmail dot com
  Target Milestone: ---

I compiled gcc trunk (6.0.0), and installed it.

I ran git clone git://sourceware.org/git/binutils-gdb.git binutils, to place it
in my gcc source directory.  (To build binutils along with gcc.)

I made a new out-of-source build directory, and run into:

Compiling using gcc trunk (6.0.0) :
gcc -DHAVE_CONFIG_H -I. -I../../../gcc.git/binutils/gas -I.
-I../../../gcc.git/binutils/gas -I../bfd -I../../../gcc.git/binutils/gas/config
-I../../../gcc.git/binutils/gas/..include -I../../../gcc.git/binutils/gas/..
-I../../../gcc.git/binutils/gas/../bfd
-DLOCALEDIR="\"/usr/local/share/locale\"" -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wshadow -Werror -I../../../gcc.git/binutils/gas/../zlib
-g -MT read.o -MD -MP -MF .deps/read.Tpo -c -o read.o
../../../gcc.git/binutils/gas/read.c
../../../gcc.git/binutils/gas/read.c: In function `output_big_sleb128':
../../../gcc.git/binutils/gas/read.c:5087:12: error: left shift of negative
value [-Werror=shift-negative-value]
  val |= ~0 << loaded;
            ^
cc1: all warnings being treated as errors

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]