output number %0 not restored to memory - what does it mean?

Jeffrey A Law law@cygnus.com
Mon Jun 19 11:08:00 GMT 2000


  In message < 49256903.0004B410.00@hq.scei.sony.co.jp >you write:
  > 
  > Hi there,
  > 
  > I get the above error message when using the "+" restraint in an asm statem
  > ent
  > with a TImode type.
  > 
  > How do I get it to work?
  > 
  > The code goes as follows:
  > 
  > void Test( int128& value )
  > {
  >      asm( "bla bla" : "+r" (value) );
  > }
  > 
  > It works fine for regular SI (int), or DI (long) mode types.
int128& is going to be passed by reference I believe (ie it lives in
memory).

Your asm specifies that the value should be loaded into a register and
potentially modified.

The warning says that the memory location isn't going to have the new
value after the asm completes.. 

jeff



More information about the Gcc-help mailing list