[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/3433] New: Incorrect line numbers with certain branches
From: |
andrew dot stubbs at st dot com |
Subject: |
[Bug gas/3433] New: Incorrect line numbers with certain branches |
Date: |
30 Oct 2006 14:55:40 -0000 |
Given the following example:
--------------------------------
.file 1 "test.c"
.text
.loc 1 2
nop
.loc 1 1000
bt 0f
nop
.align 9, 0
0:
--------------------------------
The SH assembler produces an object file with the wrong line numbers in the
debug info.
In this case the offset is too large for the 'bt' instruction so it is converted
to two branches. In examples where this is not the case the line numbering is
fine.
$ ./gas/as-new -o test2.o test2.s
test2.s: Assembler messages:
test2.s:6: Warning: overflow in branch to L1; converted into longer instruction
sequence
$ ./binutils/objdump -dl test2.o
test2.o: file format elf32-sh
Disassembly of section .text:
00000000 <.text>:
blah/test.c:2
0: 00 09 nop
2: 8b 01 bf 0x8
4: a0 fc bra 0x200
blah/test.c:1000
6: 00 09 nop
8: 00 09 nop
...
Note that line 1000 is supposed to start two instructions earlier; before the
'bf'.
--
Summary: Incorrect line numbers with certain branches
Product: binutils
Version: 2.18 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: gas
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: andrew dot stubbs at st dot com
CC: bug-binutils at gnu dot org
GCC target triplet: sh-*-*
http://sourceware.org/bugzilla/show_bug.cgi?id=3433
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug gas/3433] New: Incorrect line numbers with certain branches,
andrew dot stubbs at st dot com <=