diff options
author | Valery Ushakov <uwe@stderr.spb.ru> | 2017-01-15 05:19:09 +0300 |
---|---|---|
committer | Valery Ushakov <uwe@stderr.spb.ru> | 2017-01-15 05:19:09 +0300 |
commit | c12c42236c5882afe34356ec8e4088a6ac9c3629 (patch) | |
tree | 8fa566189ea0970d3b259345df2dfff05594df47 | |
parent | 6ef960c035e6b7abd2f34f5c95329ed481da8c57 (diff) |
Use explicit -fno-strict-aliasing to be on the safer side of things.
While -O is ok, gcc -O2 enables strict aliasing by default and
miscompiles at least dtoa.c on powerpc.
-rw-r--r-- | mkfiles/mkfile-NetBSD-386 | 1 | ||||
-rw-r--r-- | mkfiles/mkfile-NetBSD-power | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/mkfiles/mkfile-NetBSD-386 b/mkfiles/mkfile-NetBSD-386 index 46d633d9..99ae6687 100644 --- a/mkfiles/mkfile-NetBSD-386 +++ b/mkfiles/mkfile-NetBSD-386 @@ -14,6 +14,7 @@ ASFLAGS= CC= cc -c CFLAGS= -g\ -O\ + -fno-strict-aliasing\ -Wno-deprecated-declarations -Wuninitialized -Wunused -Wreturn-type -Wimplicit\ -I$ROOT/NetBSD/386/include\ -I$ROOT/include\ diff --git a/mkfiles/mkfile-NetBSD-power b/mkfiles/mkfile-NetBSD-power index 1c6d1949..1ac7e58e 100644 --- a/mkfiles/mkfile-NetBSD-power +++ b/mkfiles/mkfile-NetBSD-power @@ -14,6 +14,7 @@ ASFLAGS= CC= cc -c CFLAGS= -g\ -O\ + -fno-strict-aliasing\ -Wno-deprecated-declarations -Wuninitialized -Wunused -Wreturn-type -Wimplicit\ -I$ROOT/NetBSD/power/include\ -I$ROOT/include\ |