This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug inline-asm/15306] Spurious "use of memory input without lvalue" warning


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]