Re: Forgetting return values

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

 



Jamie Prescott wrote:
>> From: Adam Nemet <anemet@xxxxxxxxxxxxxxxxxx>

>>> Why is the memory clobber required, and why GCC does not understand to
>>> sync the value to memory when passing the address to a function?
>> Because you never inform GCC that you will use the value at
>> address *NAME.  Try to use "m"(*name) rather than "a1"(name) in the asm.
> 
> That's 'data', not 'name'. But OK, got it. unfortunately, I cannot use "m" since
> that value need to go into a specific register.

This is not appropriate for gcc@, which is for gcc development.

> Any other solution?

Clobber memory, as you discovered.

Andrew.

[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