bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/254] New: Unnecessary long jumps


From: daniel+redhatbugzilla at deadlock dot et dot tudelft dot nl
Subject: [Bug gas/254] New: Unnecessary long jumps
Date: 3 Jul 2004 20:06:14 -0000

If a label is declared global, gas generates long jumps to it, without any 
valid reason. 
 
I.e. suppose you feed gas this code: 
 
.text 
.globl target 
 
target: 
    nop 
    nop 
    jmp target 
 
 
... objdump --disassemble gives this output: 
 
Disassembly of section .text: 
 
00000000 <target>: 
   0:   90                      nop 
   1:   90                      nop 
   2:   e9 fc ff ff ff          jmp    3 <target+0x3> 
 
 
The GNU assembler has generated a long jump, even though it has all the 
information available to generate a short jump, the jump has a distance of 
just 2 bytes...

-- 
           Summary: Unnecessary long jumps
           Product: binutils
           Version: 2.15
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: daniel+redhatbugzilla at deadlock dot et dot tudelft dot
                    nl
                CC: bug-binutils at gnu dot org


http://sources.redhat.com/bugzilla/show_bug.cgi?id=254

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]