[PATCH] D126864: [clang] Introduce -fstrict-flex-arrays for stricter handling of flexible arrays

Kees Cook via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 8 11:48:58 PDT 2022


kees added a comment.

In D126864#3567647 <https://reviews.llvm.org/D126864#3567647>, @nickdesaulniers wrote:

> @kees maybe we should think about what would be needed for toolchains that don't yet support `-fstrict-flex-arrays` in kernel sources? Does this become a toolchain portability issue for older released toolchains we still intend to support?

Gaining this for the kernel is just to make sure all the trailing arrays are actually getting found and handled. The kernel will handle this fine either way. (It already has to treat UAPI 1-element array conversions very carefully...)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126864/new/

https://reviews.llvm.org/D126864



More information about the cfe-commits mailing list