[clang] [clang] Ignore GCC 11 `[[malloc(x)]]` attribute (PR #68059)

Alois Klink via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 1 13:31:03 PDT 2023


================
@@ -289,6 +289,11 @@ Bug Fixes to Compiler Builtins
 Bug Fixes to Attribute Support
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
+- Clang now emits a warning instead of an error when using the one or two
+  argument form of GCC 11's ``__attribute__((malloc(deallocator)))``
+  or ``__attribute__((malloc(deallocator, ptr-index)))``
+  (`#51607 <https://github.com/llvm/llvm-project/issues/51607>`).
----------------
aloisklink wrote:

Sorry! That's my fault for being lazy and skipping build the docs! Fixed in 5f6f893c867e73a2a8e04e94a2fa6e2104b9b85e

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


More information about the cfe-commits mailing list