bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/18765] New: gas/config/tc-arm.c: result of ‘15 << 28’ requires


From: dilyan.palauzov at aegee dot org
Subject: [Bug gas/18765] New: gas/config/tc-arm.c: result of ‘15 << 28’ requires 33 bits to represent, but ‘int’ only has 32 bits
Date: Mon, 03 Aug 2015 11:39:27 +0000

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

            Bug ID: 18765
           Summary: gas/config/tc-arm.c: result of ‘15 << 28’ requires 33
                    bits to represent, but ‘int’ only has 32 bits
           Product: binutils
           Version: 2.26 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: dilyan.palauzov at aegee dot org
  Target Milestone: ---

Comiling gas for ARM with GCC 6.0 fails with:


armv6kz-hardfloat-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I/git/binutils-gdb/gas
 -I. -I/git/binutils-gdb/gas -I../bfd -I/git/binutils-gdb/gas/config
-I/git/binutils-gdb/gas/../include -I/git/binutils-gdb/gas/..
-I/git/binutils-gdb/gas/../bfd -DLOCALEDIR="\"/usr/share/locale\""  -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror  -pipe -O3 -flto
-fno-fat-lto-objects -MT tc-arm.o -MD -MP -MF .deps/tc-arm.Tpo -c -o tc-arm.o
`test -f 'config/tc-arm.c' || echo '/git/binutils-gdb/gas/'`config/tc-arm.c
/git/binutils-gdb/gas/config/tc-arm.c: In function ‘move_or_literal_pool’:
/git/binutils-gdb/gas/config/tc-arm.c:8003:32: error: result of ‘7 << 29’
requires 33 bits to represent, but ‘int’ only has 32 bits
[-Werror=shift-overflow=]
       inst.instruction |= (0x7 << 29) | (0xF << 24);
                                ^
/git/binutils-gdb/gas/config/tc-arm.c:8005:32: error: result of ‘15 << 28’
requires 33 bits to represent, but ‘int’ only has 32 bits
[-Werror=shift-overflow=]
       inst.instruction |= (0xF << 28) | (0x1 << 25);
                                ^
/git/binutils-gdb/gas/config/tc-arm.c: In function ‘do_iwmmxt_wldstd’:
/git/binutils-gdb/gas/config/tc-arm.c:9977:32: error: result of ‘15 << 28’
requires 33 bits to represent, but ‘int’ only has 32 bits
[-Werror=shift-overflow=]
       inst.instruction |= (0xf << 28);
                                ^
/git/binutils-gdb/gas/config/tc-arm.c: In function ‘do_iwmmxt_wrwrwr_or_imm5’:
/git/binutils-gdb/gas/config/tc-arm.c:10056:30: error: result of ‘15 << 28’
requires 33 bits to represent, but ‘int’ only has 32 bits
[-Werror=shift-overflow=]
     inst.instruction |= (0xf << 28) | ((inst.operands[2].imm & 0x10) << 4) |
(inst.operands[2].imm & 0xf);
                              ^
/git/binutils-gdb/gas/config/tc-arm.c: In function ‘md_assemble’:
/git/binutils-gdb/gas/config/tc-arm.c:17978:26: error: result of ‘15 << 28’
requires 33 bits to represent, but ‘int’ only has 32 bits
[-Werror=shift-overflow=]
  inst.instruction |= 0xF << 28;
                          ^
cc1: all warnings being treated as errors
Makefile:972: recipe for target 'tc-arm.o' failed

-- 
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]