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: [email protected]
ReportedBy: [email protected]
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-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils