bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/28791] New: [z80-unknown-elf-as]: new unexpected overflow


From: petemoore at gmx dot net
Subject: [Bug binutils/28791] New: [z80-unknown-elf-as]: new unexpected overflow warning in v2.37
Date: Tue, 18 Jan 2022 12:14:57 +0000

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

            Bug ID: 28791
           Summary: [z80-unknown-elf-as]: new unexpected overflow warning
                    in v2.37
           Product: binutils
           Version: 2.37
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: petemoore at gmx dot net
                CC: sergey.belyashov at gmail dot com
  Target Milestone: ---
             Build: 2.37

Unexpected assembly warning in z80-unknown-elf-as 2.37, that isn't present in
z80-unknown-elf-as 2.36.1.

Test file:

```
pmoore@Petes-iMac:~/tmp $ cat test.s
ld e, ~0xe6
```

Using z80-unknown-elf-as 2.36.1:

```
pmoore@Petes-iMac:~/tmp $ z80-unknown-elf-as test.s
pmoore@Petes-iMac:~/tmp $ 
```

Using z80-unknown-elf-as 2.37:

```
pmoore@Petes-iMac:~/tmp $ z80-unknown-elf-as test.s
test.s:1: Warning: 8-bit overflow (-231)
pmoore@Petes-iMac:~/tmp $ 
```

The assembly is successful in both cases and produce identical (valid) elf
files:

```
pmoore@Petes-iMac:~/tmp $ shasum -a 256 *.o
056fce58bb02a205e07f1d36ee945afb00017195988fc22325cbbdf5318d9d1d 
test-with-binutils-2.36.1.o
056fce58bb02a205e07f1d36ee945afb00017195988fc22325cbbdf5318d9d1d 
test-with-binutils-2.37.o
pmoore@Petes-iMac:~/tmp $ z80-unknown-elf-objdump -d test-with-binutils-2.37.o 

test-with-binutils-2.37.o:     file format elf32-z80


Disassembly of section .text:

00000000 <.text>:
   0:   1e 19           ld e,0x19
pmoore@Petes-iMac:~/tmp $ 
```

I don't believe this should be reported as an overflow.

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