[PATCH] D115440: Provide __builtin_alloca*_uninitialized variants

Marco Elver via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 14 02:45:49 PST 2021


melver added a subscriber: tstellar.
melver added a comment.

@tstellar , we were told maybe you have some input.

TLDR;

- Clang and GCC appear to behave differently wrt `-ftrivial-auto-var-init=` on `__builtin_alloca()` (and VLAs?)
- Clang's behavior is (per @jfb above) correct;
- How to document that better, so that this confusion can be avoided, and GCC can match Clang's behaviour.

Thanks.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D115440



More information about the cfe-commits mailing list