bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/12132] New: AVR gs() operator does not work directly on jmp or


From: mschulze at ivs dot cs.ovgu.de
Subject: [Bug gas/12132] New: AVR gs() operator does not work directly on jmp or rjmp
Date: Mon, 18 Oct 2010 18:37:59 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=12132

           Summary: AVR gs() operator does not work directly on jmp or
                    rjmp
           Product: binutils
           Version: 2.20
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
        AssignedTo: address@hidden
        ReportedBy: address@hidden
                CC: address@hidden
            Target: avr-*-*


The following code compiled with avr-gcc 4.5 results in an assembler file that
gas is not able translate correctly.

void function() {}

int main(void) {
    asm volatile (
        "rjmp %[Function]\n"
        :
        : [Function] "i" (function)
    );
}

The rjmp could be also a jmp, call or something similar. The compiler
translates this to

rjmp gs(_Z8functionv)

which is in my eyes correct. However, this line is rejected by gas with the
message

/tmp/cc6RG14B.s: Assembler messages:
/tmp/cc6RG14B.s:39: Error: garbage at end of line

Maybe it is a bug in the parser component of gas and the bug may be related to
Bug #11102.

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



reply via email to

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