Re: Seemingly wrong generated code for a function with inline assembly

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

 



_retval is marked in your asm as an output, therefore you have to set it in the assembly code. gcc knows the assignment to _retval is unused. If you
want to modify _retval, use "+rm", not "=rm".

Thanks! It works now, I knew I must have done something wrong.

- Mihai



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux