dallen-osr

Results 6 comments of dallen-osr

I caught it with a tool - I don't remember if it was tsan (thread sanitizer) or one of valgrind's tools, but I was combing through with both of them....

> have you noticed any incorrect behavior when compiled with that option? I have not. I think currently analysis fails because of the amount of indirection and SB and ES...

Minimal example on godbolt where icc is available: https://godbolt.org/z/183oKP483 icc considers this practice to violate aliasing rules. gcc and clang do not report it as violating the rules.

gcc actually does complain about it, when called with the flag `-Wstrict-aliasing=1` or `-Wstrict-aliasing=2`. By gcc's man page, 1 is the most aggressive, and least accurate, 2 is aggressive and...

I'll preface this by saying that I don't think any compiler today is doing anything to break the expectations of CFS as it is written, and that I doubt it...

Functions like `read` and stdlib calls like `memcpy` get special privilege by virtue of being implemented through system calls and assembly. Also for `memcpy`, it's completely fine to alias any...