https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125463
Bug ID: 125463
Summary: errno not picked up for wasi-libc
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: analyzer
Assignee: dmalcolm at gcc dot gnu.org
Reporter: feedabl3 at gmail dot com
Target Milestone: ---
gcc/testsuite/c-c++-common/analyzer/errno-1.c is failing on wasm32
The issue seems to be caused by wasi-libc using
```
extern _Thread_local int errno;
#define errno errno
```
as their implementation of errno.
See https://forge.sourceware.org/gcc/gcc-TEST/pulls/160/files#issuecomment-6046
for further details.