https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88576
Harald van Dijk <harald at gigawatt dot nl> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |harald at gigawatt dot nl
--- Comment #19 from Harald van Dijk <harald at gigawatt dot nl> ---
See also https://git.kernel.org/pub/scm/utils/dash/dash.git/tree/src/main.c,
dash takes the address of errno once at program startup and stores it in a
global, for efficiency. I think this is not as unheard of as you'd hoped.