Make gdtoa less tunable (#104)

The -fno-math-errno flag shouldn't impact libraries since it's mostly
intended for permitting the compiler to generate sqrt() instructions.
This commit is contained in:
Justine Tunney 2021-03-07 16:34:16 -08:00
parent 8a6ac6dd63
commit a8945714e8
8 changed files with 485 additions and 124 deletions

View file

@ -58,8 +58,8 @@ syscon errno ESPIPE 29 29 29 29 29 25 # unix consensus & kNtErro
syscon errno EROFS 30 30 30 30 30 6009 # unix consensus & kNtErrorFileReadOnly
syscon errno EMLINK 31 31 31 31 31 4 # unix consensus & kNtErrorTooManyLinks
syscon errno EPIPE 32 32 32 32 32 109 # unix consensus & kNtErrorBrokenPipe
syscon errno EDOM 33 33 33 33 33 0 # bsd consensus
syscon errno ERANGE 34 34 34 34 34 0 # bsd consensus
syscon errno EDOM 33 33 33 33 33 33 # bsd consensus & fudged on NT
syscon errno ERANGE 34 34 34 34 34 34 # bsd consensus & fudged on NT
syscon errno EDEADLK 35 11 11 11 11 1131 # bsd consensus & kNtErrorPossibleDeadlock
syscon errno ENAMETOOLONG 36 63 63 63 63 0x274f # bsd consensus & WSAENAMETOOLONG
syscon errno ENOLCK 37 77 77 77 77 0 # bsd consensus

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon errno,EDOM,33,33,33,33,33,0
.syscon errno,EDOM,33,33,33,33,33,33

View file

@ -1,2 +1,2 @@
#include "libc/sysv/consts/syscon.internal.h"
.syscon errno,ERANGE,34,34,34,34,34,0
.syscon errno,ERANGE,34,34,34,34,34,34