[LTP] [PATCH v1] syscalls/signal06: add volatile to loop variable

Edward Liaw edliaw@google.com
Thu Aug 11 17:24:45 CEST 2022


> > It looks to me like the compiler actually forgets about the volatility
> > of D for some reason and then assumes that the loop does LOOPS
> > iterations.

Hey Cyril,
I think I finally understand what you mean by this now; it is rather
strange that the volatility of D does not protect loop from being
optimized away by the compiler.  I don't have a good explanation as to
why it's happening but I'm not sure how to evaluate what's going on
either.  Should I do anything to move this patch forward?

Thanks,
Edward


More information about the ltp mailing list