Issue 143454
Summary [libc][errno] Deprecate `LIBC_ERRNO_MODE_SYSTEM` in favor of `LIBC_ERRNO_MODE_SYSTEM_INLINE`.
Labels libc
Assignees
Reporter lntue
    In `LIBC_ERRNO_MODE_SYSTEM`, we still create a temporary global object `libc_errno` and then point it to the system libc `errno`.  To use system libc `errno`, it would be more efficient to make `libc_errno` a macro defined as `errno`, just as `LIBC_ERRNO_MODE_SYSTEM_INLINE`.  It also allow us to skip linking against `libc.src.errno.errno` target.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to