[PATCH] D144889: [C2x] Support <string.h> in freestanding

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 27 15:32:58 PST 2023


efriedma added a comment.

> perhaps because they did char buf[256] = {0} though

Right, we need memcpy and memset to emit reasonable code for struct/array initialization and assignment.

We don't provide any library that includes memcpy/memset/memmove because of a combination of legacy, and that writing well-optimized versions is hard.  Ideally, it probably makes sense.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D144889



More information about the cfe-commits mailing list