Re: How to avoid code elimination

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

 



On Sun, 2017-11-26 at 12:08 +0100, phi gcc wrote:
> .
> .
> if(cond)
> { e=e;
> }
> .
> ....
> 
> I tried to compile with -O0 but to no joy gcc always remove my 'NOP'
> intruction knowing better than me what I could do with it.
> 
> Is there any other idioms I should use, may be an asm("nop") or the
> like I guess ?

Try declaring e "volatile".

Cheers,
Oleg



[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