Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jul 2014 13:49:44 +0100
From:      David Chisnall <theraven@theravensnest.org>
To:        David Wolfskill <david@catwhisker.org>
Cc:        Hans Petter Selasky <hps@selasky.org>, stable@freebsd.org, "current@freebsd.org" <current@freebsd.org>
Subject:   Re: [HEADS-UP] Problem with clang in 9-stable [was: r268244 (stable/9) seems to break "sysctl hw.ncpu"]
Message-ID:  <909248A4-1B7C-4836-ADAA-F81A70A8AC3C@theravensnest.org>
In-Reply-To: <20140704181831.GV6056@albert.catwhisker.org>
References:  <20140704123901.GR6056@albert.catwhisker.org> <53B6E218.5070009@selasky.org> <20140704174705.GS6056@albert.catwhisker.org> <53B6EDD1.8030506@selasky.org> <20140704181831.GV6056@albert.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 4 Jul 2014, at 19:18, David Wolfskill <david@catwhisker.org> wrote:

> clang -O2 -pipe  -std=3Dgnu99 -Qunused-arguments  -fstack-protector =
-Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter =
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith =
-Wno-uninitialized -Wno-pointer-sign -Wno-empty-body =
-Wno-string-plus-int -Wno-unused-const-variable =
-Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality =
-Wno-unused-function -Wno-enum-conversion  -o sysctl sysctl.o=20

This compile line is turning off a lot of warnings.  In particular, =
-Wno-uninitialized and -Wno-parentheses-equality are likely to hide =
warnings that refer to real errors.  It sounds like this case was one of =
them - if these warnings were on then we'd have got a build failure =
rather than an executable that depended on undefined behaviour.

David




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?909248A4-1B7C-4836-ADAA-F81A70A8AC3C>