11 ms·
Some of those cases have been fixed. For example, Clang used to reorder UB around volatile loads, but the latest version no longer does so.
by Georgelemental 14d ago
Some of those cases have been fixed. For example, Clang used to reorder UB around volatile loads, but the latest version no longer does so.
- uecker 14d agoThis is good news! Clang representatives were very basically the only ones against this clarification. Do you have a pointer?
- Georgelemental 14d agohttps://llvm.org/docs/LangRef.html#volatile-memory-accesses https://llvm.org/docs/LangRef.html#volatile-memory-accesses: > Volatile operations are permitted to trap. The compiler may not assume that execution will continue after a volatile operation.