In the initial code I missed one level of pointer indirection. Instead of storing errno in impure_data, _impure_ptr was corrupted. Only simulator is impacted. Real targets have no OS and no syscalls. This resolves a bunch of stdio cases from the GCC testsuite: FAIL->PASS: gcc.c-torture/execute/printf-2.c -O0 execution test Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu> |
||
|---|---|---|
| .. | ||
| device-specs | ||
| ldscripts | ||
| Makefile.in | ||
| aclocal.m4 | ||
| configure | ||
| configure.in | ||
| crt0.S | ||
| do_global_dtors.c | ||
| gettimeofday.c | ||
| inbyte.c | ||
| isatty.c | ||
| outbyte.c | ||
| print.c | ||
| putnum.c | ||
| raise.c | ||
| sbrk.c | ||
| stat.c | ||
| syscalls.S | ||