[clang] [clang] Add flag for relaxed pointer subtraction (PR #196392)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 20 09:50:24 PDT 2026


================
@@ -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
----------------
efriedma-quic wrote:

I guess `-fdefined-pointer-subtraction` is fine, then.

https://github.com/llvm/llvm-project/pull/196392


More information about the cfe-commits mailing list