[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/13509] New: branch target to the wrong location
From: |
pinskia at gcc dot gnu.org |
Subject: |
[Bug gas/13509] New: branch target to the wrong location |
Date: |
Fri, 16 Dec 2011 03:40:39 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=13509
Bug #: 13509
Summary: branch target to the wrong location
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: gas
AssignedTo: address@hidden
ReportedBy: address@hidden
Classification: Unclassified
Take:
.align 2
.global main
.ent main
main:
beqz $5, .L1
nop
addi $5, $5, 1
b .L2
nop
.L1:
# .L3=.
.align 3
.L2:
la $5, .L3
jr $31
nop
.end main
--- CUT ---
The two branches will take you to L2.
If we uncomment the assignment to .L3, we get something different, where one is
before the .align and the other is after. This causes in the end causes a
miscompare inside GCC when comparing with and without debugging info.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
- [Bug gas/13509] New: branch target to the wrong location,
pinskia at gcc dot gnu.org <=
- [Bug gas/13509] branch target to the wrong location, amodra at gmail dot com, 2011/12/16
- [Bug gas/13509] branch target to the wrong location, pinskia at gcc dot gnu.org, 2011/12/16
- [Bug gas/13509] branch target to the wrong location, pinskia at gcc dot gnu.org, 2011/12/16
- [Bug gas/13509] branch target to the wrong location, pinskia at gcc dot gnu.org, 2011/12/16
- [Bug gas/13509] branch target to the wrong location, pinskia at gcc dot gnu.org, 2011/12/16
- [Bug gas/13509] branch target to the wrong location, pinskia at gcc dot gnu.org, 2011/12/16
- [Bug gas/13509] branch target to the wrong location, pinskia at gcc dot gnu.org, 2011/12/16
- [Bug gas/13509] branch target to the wrong location, pinskia at gcc dot gnu.org, 2011/12/16