This is the mail archive of the gcc-help@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]

Re: gcc optimises out test of value in register-only loop


On 10/13/2011 01:14 PM, MikeW wrote:
> 
> I would certainly like there to be some way to ensure that an
> expression in a loop gets (re) evaluated, in a 'volatile' context.

For this, or something else?  We already know that solving
this particular problem only involves replacing a register
variable declaration with a trivial asm that reads from the
register.

Andrew.


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