You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clang/docs/ReleaseNotes.rst
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -259,7 +259,7 @@ New Compiler Flags
259
259
------------------
260
260
- New option ``-fno-sanitize-debug-trap-reasons`` added to disable emitting trap reasons into the debug info when compiling with trapping UBSan (e.g. ``-fsanitize-trap=undefined``).
261
261
- New option ``-fsanitize-debug-trap-reasons=`` added to control emitting trap reasons into the debug info when compiling with trapping UBSan (e.g. ``-fsanitize-trap=undefined``).
262
-
262
+
- New option ``-foverflow-behavior-types`` added to enable parsing of the ``overflow_behavior`` type attribute and type specifiers.
263
263
264
264
Lanai Support
265
265
^^^^^^^^^^^^^^
@@ -284,6 +284,11 @@ Attribute Changes in Clang
284
284
- New format attributes ``gnu_printf``, ``gnu_scanf``, ``gnu_strftime`` and ``gnu_strfmon`` are added
285
285
as aliases for ``printf``, ``scanf``, ``strftime`` and ``strfmon``. (#GH16219)
286
286
287
+
- Introduced a new type attribute ``__attribute__((overflow_behavior))`` which
288
+
currently accepts either ``wrap`` or ``trap`` as an argument, enabling
289
+
type-level control over overflow behavior. There is also an accompanying type
290
+
specifier for each behavior kind via `__ob_wrap` and `__ob_trap`.
291
+
287
292
Improvements to Clang's diagnostics
288
293
-----------------------------------
289
294
- Added a separate diagnostic group ``-Wfunction-effect-redeclarations``, for the more pedantic
0 commit comments