[PATCH] D60719: Demonstrate how to fix freestanding for memcpy

Tim Northover via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 17 03:33:14 PDT 2019


t.p.northover added a comment.

I think it'd be pretty unpopular with the people I know who use freestanding. They're mostly working on microcontrollers and compiling -Oz so the extra code size would be untenable; they also have memcpy implementations anyway because they use it in their own code.

If I was trying to solve this (and I'm also not 100% sure it needs solving), I think I'd instead generate a `linkonce` definition of `memcpy` whenever it's needed and leave CodeGen unmodified.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D60719





More information about the llvm-commits mailing list