diff options
author | H. Peter Anvin (Intel) <hpa@zytor.com> | 2020-07-06 11:30:22 -0700 |
---|---|---|
committer | H. Peter Anvin (Intel) <hpa@zytor.com> | 2020-07-06 11:30:22 -0700 |
commit | 70f0d04ee50a18e78c30ce6c6fc4f32427724793 (patch) | |
tree | 8ccfa2a6d6905ea7e44853ef7ed567eacd077821 | |
parent | e2040291ec7c07b7c7604440d725a8d5973f763f (diff) | |
download | nasm-70f0d04ee50a18e78c30ce6c6fc4f32427724793.tar.gz |
configure.ac: -enable-... breaks other compilers, so hope for clang 10
The -enable-... option to enable -ftrivial-auto-var-init=zero breaks
linking not just on clang but on other compilers (gcc) too. Drop it;
this feature is enabled by default in clang 10.
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
-rw-r--r-- | configure.ac | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index a6ee5d3f..b101f46c 100644 --- a/configure.ac +++ b/configure.ac @@ -86,18 +86,12 @@ dnl specified first. Enable this so this script can actually discover dnl which -W options are possible for this compiler. PA_ADD_CFLAGS([-Werror=unknown-warning-option]) -dnl Without this option, clang sometimes fail to link if LDFLAGS is -dnl a superset of CFLAGS, which is the normal thing... -PA_ADD_CFLAGS([-Wno-unused-command-line-argument]) - dnl Force gcc and gcc-compatible compilers treat signed integers dnl as 2's complement PA_ADD_CFLAGS([-fwrapv]) dnl Force clang to behave in a predictable manner, in order to make bugs dnl possible to track down. gcc appears to have this behavior by default. -dnl Needing the -enable-... option is kind of a bizarre thing. -PA_ADD_CFLAGS([-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang]) PA_ADD_CFLAGS([-ftrivial-auto-var-init=zero]) dnl Some environments abuse __STRICT_ANSI__ to disable some |