This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/34177] Inline assembly uses wrong register
- From: "pete at highdesertsoftware dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Nov 2007 21:01:07 -0000
- Subject: [Bug inline-asm/34177] Inline assembly uses wrong register
- References: <bug-34177-15405@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from pete at highdesertsoftware dot net 2007-11-21 21:01 -------
Subject: Re: Inline assembly uses wrong register
Thank you so much. That fixed it. Sorry to bother you with user error.
It worked in 3.4.6, the last version of WinAVR I installed, that is why
I assumed a bug.
I've read and re-read about inline assembler and I just don't get it.
Is there a place with tons and tons of examples?
Thanks again.
-Pete
pinskia at gcc dot gnu dot org wrote:
> ------- Comment #7 from pinskia at gcc dot gnu dot org 2007-11-21 20:42 -------
> Oh you are not storing to RunTsk but to r25 so your constraints are incorrect
> still.
> Try:
> asm volatile("mov r25, %0" : : "r" (RunTsk):"r25");
>
> This still makes the bug invalid.
>
>
>
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34177