Skip to content

Commit 8dcf07b

Browse files
committed
Update release notes
1 parent adf7326 commit 8dcf07b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,17 @@ Non-comprehensive list of changes in this release
471471
``__builtin_elementwise_sub_sat``, ``__builtin_reduce_min`` (For integral element type),
472472
``__builtin_reduce_max`` (For integral element type).
473473

474+
- The builtin macros ``__INT8_C``, ``__INT16_C``, ``__INT32_C``, ``__INT64_C``,
475+
``__INTMAX_C``, ``__UINT8_C``, ``__UINT16_C``, ``__UINT32_C``, ``__UINT64_C``
476+
and ``__UINTMAX_C`` have been introduced to ease the implementaton of section
477+
7.18.4 of ISO/IEC 9899:1999. These macros are also defined by GCC and should
478+
be used instead of others that need to expand and paste the suffixes provided
479+
by ``__INT8_C_SUFFIX__``, ``__INT16_C_SUFFIX__``, ``__INT32_C_SUFFIX__``,
480+
``__INT64_C_SUFFIX__``, ``__INTMAX_C_SUFFIX__``, ``__UINT8_C_SUFFIX__``,
481+
``__UINT16_C_SUFFIX__``, ``__UINT32_C_SUFFIX__``, ``__UINT64_C_SUFFIX__`` and
482+
``__UINTMAX_C_SUFFIX__``. Pasting suffixes is unsafe, as users can define them
483+
as macros.
484+
474485
- Clang now rejects ``_BitInt`` matrix element types if the bit width is less than ``CHAR_WIDTH`` or
475486
not a power of two, matching preexisting behaviour for vector types.
476487

0 commit comments

Comments
 (0)