3 ms·
> have they actually said this? If the latter, can you link to where they did? They have said it face-to-face, in person. It is possible that, with enough pu
by ncmncm 5y ago
> have they actually said this? If the latter, can you link to where they did?
They have said it face-to-face, in person. It is possible that, with enough pushback, they have since disabled the optimization. (They all work at large corporations, nowadays, and must obey management direction.) Or, more likely, disabled certain cases of it. I will ask again.
For documentary evidence, you may consult the definition of C11 memset_s, which is specified not to permit the optimization. It is hard to imagine such a requirement being perceived as needed, absent cases where calls to memset have actually been elided.
I will also experiment further with Godbolt. You might have failed to tickle the compilers in just the right way.
- josephcsible 5y ago> They have said it face-to-face, in person. [...] I will ask again. If you do ask again, can you do so somewhere like a public mailing list, so I can read their response myself? > For documentary evidence, you may consult the definition of C11 memset_s, which is specified not to permit the optimization. It is hard to imagine such a requirement being perceived as needed, absent cases where calls to memset have actually been elided. The point of memset_s is to prohibit the optimization when the object isn't volatile.