bug-binutils
[Top][All Lists]
Advanced

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

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


From: gjl at gcc dot gnu.org
Subject: [Bug gas/12132] AVR gs() operator does not work directly on jmp or rjmp
Date: Sun, 29 Jan 2012 18:29:31 +0000

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

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |gjl at gcc dot gnu.org
         Resolution|                            |INVALID

--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2012-01-29 
18:29:31 UTC ---
(In reply to comment #0)
> 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)

A gs() makes no sense here. Write "rjmp %x[Function]"

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