[libc-commits] [PATCH] D94195: [libc] Switch to use a macro which does not insert a section for every libc function.

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Jan 6 14:38:57 PST 2021


michaelrj created this revision.
michaelrj added reviewers: mcgrathr, sivachandra.
Herald added subscribers: libc-commits, ecnelises, tschuett, mgorny.
Herald added a reviewer: alexshap.
Herald added a project: libc-project.
michaelrj requested review of this revision.

The new macro also inserts the C alias for the C++ implementations
without needing an objcopy based post processing step. The CMake
rules have been updated to reflect this. More CMake cleanup can be
taken up in future rounds and appropriate TODOs have been added for them.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94195

Files:
  libc/cmake/modules/LLVMLibCObjectRules.cmake
  libc/src/__support/common.h.def
  libc/src/assert/__assert_fail.cpp
  libc/src/ctype/isalnum.cpp
  libc/src/ctype/isalpha.cpp
  libc/src/ctype/isblank.cpp
  libc/src/ctype/iscntrl.cpp
  libc/src/ctype/isdigit.cpp
  libc/src/ctype/isgraph.cpp
  libc/src/ctype/islower.cpp
  libc/src/ctype/isprint.cpp
  libc/src/ctype/ispunct.cpp
  libc/src/ctype/isspace.cpp
  libc/src/ctype/isupper.cpp
  libc/src/ctype/isxdigit.cpp
  libc/src/ctype/tolower.cpp
  libc/src/ctype/toupper.cpp
  libc/src/errno/__errno_location.cpp
  libc/src/fenv/feclearexcept.cpp
  libc/src/fenv/fegetround.cpp
  libc/src/fenv/feraiseexcept.cpp
  libc/src/fenv/fesetround.cpp
  libc/src/fenv/fetestexcept.cpp
  libc/src/math/ceil.cpp
  libc/src/math/ceilf.cpp
  libc/src/math/ceill.cpp
  libc/src/math/copysign.cpp
  libc/src/math/copysignf.cpp
  libc/src/math/copysignl.cpp
  libc/src/math/cosf.cpp
  libc/src/math/exp2f.cpp
  libc/src/math/expf.cpp
  libc/src/math/fabs.cpp
  libc/src/math/fabsf.cpp
  libc/src/math/fabsl.cpp
  libc/src/math/fdim.cpp
  libc/src/math/fdimf.cpp
  libc/src/math/fdiml.cpp
  libc/src/math/floor.cpp
  libc/src/math/floorf.cpp
  libc/src/math/floorl.cpp
  libc/src/math/fmax.cpp
  libc/src/math/fmaxf.cpp
  libc/src/math/fmaxl.cpp
  libc/src/math/fmin.cpp
  libc/src/math/fminf.cpp
  libc/src/math/fminl.cpp
  libc/src/math/frexp.cpp
  libc/src/math/frexpf.cpp
  libc/src/math/frexpl.cpp
  libc/src/math/hypot.cpp
  libc/src/math/hypotf.cpp
  libc/src/math/ilogb.cpp
  libc/src/math/ilogbf.cpp
  libc/src/math/ilogbl.cpp
  libc/src/math/ldexp.cpp
  libc/src/math/ldexpf.cpp
  libc/src/math/ldexpl.cpp
  libc/src/math/llrint.cpp
  libc/src/math/llrintf.cpp
  libc/src/math/llrintl.cpp
  libc/src/math/llround.cpp
  libc/src/math/llroundf.cpp
  libc/src/math/llroundl.cpp
  libc/src/math/logb.cpp
  libc/src/math/logbf.cpp
  libc/src/math/logbl.cpp
  libc/src/math/lrint.cpp
  libc/src/math/lrintf.cpp
  libc/src/math/lrintl.cpp
  libc/src/math/lround.cpp
  libc/src/math/lroundf.cpp
  libc/src/math/lroundl.cpp
  libc/src/math/modf.cpp
  libc/src/math/modff.cpp
  libc/src/math/modfl.cpp
  libc/src/math/nearbyint.cpp
  libc/src/math/nearbyintf.cpp
  libc/src/math/nearbyintl.cpp
  libc/src/math/nextafter.cpp
  libc/src/math/nextafterf.cpp
  libc/src/math/nextafterl.cpp
  libc/src/math/remainder.cpp
  libc/src/math/remainderf.cpp
  libc/src/math/remainderl.cpp
  libc/src/math/remquo.cpp
  libc/src/math/remquof.cpp
  libc/src/math/remquol.cpp
  libc/src/math/rint.cpp
  libc/src/math/rintf.cpp
  libc/src/math/rintl.cpp
  libc/src/math/round.cpp
  libc/src/math/roundf.cpp
  libc/src/math/roundl.cpp
  libc/src/math/sincosf.cpp
  libc/src/math/sinf.cpp
  libc/src/math/sqrt.cpp
  libc/src/math/sqrtf.cpp
  libc/src/math/sqrtl.cpp
  libc/src/math/trunc.cpp
  libc/src/math/truncf.cpp
  libc/src/math/truncl.cpp
  libc/src/signal/linux/raise.cpp
  libc/src/signal/linux/sigaction.cpp
  libc/src/signal/linux/sigaddset.cpp
  libc/src/signal/linux/sigdelset.cpp
  libc/src/signal/linux/sigemptyset.cpp
  libc/src/signal/linux/sigfillset.cpp
  libc/src/signal/linux/signal.cpp
  libc/src/signal/linux/sigprocmask.cpp
  libc/src/stdlib/abort.cpp
  libc/src/stdlib/abs.cpp
  libc/src/stdlib/labs.cpp
  libc/src/stdlib/linux/_Exit.cpp
  libc/src/stdlib/llabs.cpp
  libc/src/string/bzero.cpp
  libc/src/string/memchr.cpp
  libc/src/string/memcmp.cpp
  libc/src/string/memcpy.cpp
  libc/src/string/memrchr.cpp
  libc/src/string/memset.cpp
  libc/src/string/strcat.cpp
  libc/src/string/strchr.cpp
  libc/src/string/strcmp.cpp
  libc/src/string/strcpy.cpp
  libc/src/string/strcspn.cpp
  libc/src/string/strlen.cpp
  libc/src/string/strncpy.cpp
  libc/src/string/strnlen.cpp
  libc/src/string/strpbrk.cpp
  libc/src/string/strrchr.cpp
  libc/src/string/strspn.cpp
  libc/src/string/strstr.cpp
  libc/src/string/strtok.cpp
  libc/src/string/strtok_r.cpp
  libc/src/string/x86/memcpy.cpp
  libc/src/sys/mman/linux/mmap.cpp
  libc/src/sys/mman/linux/munmap.cpp
  libc/src/threads/linux/call_once.cpp
  libc/src/threads/linux/mtx_init.cpp
  libc/src/threads/linux/mtx_lock.cpp
  libc/src/threads/linux/mtx_unlock.cpp
  libc/src/threads/linux/thrd_create.cpp
  libc/src/threads/linux/thrd_join.cpp
  libc/src/time/mktime.cpp
  libc/src/unistd/linux/write.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94195.314991.patch
Type: text/x-patch
Size: 68188 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20210106/dd710a01/attachment-0001.bin>


More information about the libc-commits mailing list