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: unassig...@sources.redhat.com
        ReportedBy: mschu...@ivs.cs.ovgu.de
                CC: mschu...@ivs.cs.ovgu.de
            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.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to