title: Is it ever useful to apply restrict to a single pointer parameter?
body: <p>Suppose I have some function which takes only one pointer parameter, doesn't access global variables, and does not generate another pointer in a "fishy" way (i.e. it might take the address of a local but not generate an address or get it from another thread etc.). Does it ever help to mark the pointer with <code>restrict</code>, or is it useless? In other words, do compilers treat such pointer parameters as implicitly <code>restrict</code>ed?</p>
  
  <p>Also, the same question when the function may use <code>malloc()</code> or something similar (so there could maybe, possibly, sort of be a fear of aliasing).</p>