<p dir="ltr">I was suggesting to add it to the function, like<br>
volatile void func(..);<br>
Theoretically, this would tell the compiler not to omit seemingly superfluous calls to func.</p>
<div class="gmail_quot<blockquote class=" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
On Jun 4, 2013, at 4:23 PM, Tyler Hardin <<a href="mailto:tghardin1@catamount.wcu.edu">tghardin1@catamount.wcu.edu</a>> wrote:<br>
<br>
> If this were a problem with an omitted statement involving a normal variable, I'd guess you're missing a volatile qualifier. I'm not 100% sure volatile is a valid qualifier for functions, but try it.<br>

<br>
Well, yes, if I change the signature to:<br>
<br>
        void test(char * volatile x)<br>
<br>
It works, but that's because I'm hamstringing the optimizers.  I don't really see how that has anything to do with the question, though.  If I change the signature to:<br>
<br>
        void test(int x)<br>
<br>
It works too... what's special about 'char *'?<br>
<br>
> If RTOS stands for real time OS, then reading up on volatile would be a really good idea.<br>
<br>
I'm familiar with 'volatile' semantics, thanks.<br>
<br>
> P.S. Sorry Carl, you're going to receive this twice. I forget to CC the list.<br>
<br>
No problem.<br>
<br>
-- Carl<br>
<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div>