~mirabilos/klibc/master

Viewing all changes in revision 2140.

  • Committer: Ben Hutchings
  • Date: 2020-07-25 20:44:14 UTC
  • Revision ID: git-v1:8c056cab6c8cce0b5dbc2c3141060f89a6ffc905
[klibc] stdio: Define all the _unlocked functions and macros

Clang 9.0 can optimise stdio function calls to use the _unlocked
variants, presumably based on escape analysis.  We don't define many
of them, and adding a lot of -fno-builtin-* options to inhibit this
seems like a losing battle.

Since we don't support multi-threaded programs or locking in stdio,
define the _unlocked function names as aliases.

For completeness, also define corresponding _unlocked macros for the
macro-only pseudo-functions, and for the inline functions in stdio.h.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: