This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/15306] Spurious "use of memory input without lvalue" warning
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 May 2004 02:03:03 -0000
- Subject: [Bug inline-asm/15306] Spurious "use of memory input without lvalue" warning
- References: <20040506051145.15306.pgonzalez@bluel.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-07 02:03 -------
Try this:
__attribute__((naked))
void thunk() {
register int i __asm__("r1");
asm volatile(
" stmfd sp!, {r0, r1, r2, r3, ip, lr, pc}\n"
);
i = exampleFunction;
asm volatile(
" b overlayLoader\n"
: : "r"(i) : "cc"
);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15306