[PATCH] D118804: Revert "[Clang] Propagate guaranteed alignment for malloc and others"

Mauricio Collares via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 2 09:32:51 PST 2022


collares added a comment.

It is worth noting that GCC started assuming 16-byte alignment for small objects in 2016, before N2293 was written and accepted into C2x; see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90569#c8 and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90569#c9 for more recent (informal) statements from GCC developers. Other malloc implementations, such as tcmalloc (see https://google.github.io/tcmalloc/reference.html) also seem to be planning on relaxing the alignment assumptions once C2x compliance is widespread. It might be worth filing a GCC bug as well.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D118804



More information about the cfe-commits mailing list