================
@@ -113,6 +113,9 @@ latest release, please see the [Clang Web 
Site](https://clang.llvm.org) or the
 
 ### New Compiler Flags
 
+- New option `-fstable-pointer-subtraction` added to preserve stable semantics
----------------
eleviant wrote:

Yep, the main goal is to remove the `exact` qualifier from sdiv/ashr which may 
result in UB if pointer subtraction result is not aligned properly. MSVC can 
fold sdiv to ashr if type size is power of two, so you're right about rounding.

https://github.com/llvm/llvm-project/pull/196392
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to