From owner-freebsd-stable@FreeBSD.ORG Sat Jul 5 12:50:27 2014 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 426D2D0; Sat, 5 Jul 2014 12:50:27 +0000 (UTC) Received: from theravensnest.org (theraven.freebsd.your.org [216.14.102.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cloud.theravensnest.org", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 08B482679; Sat, 5 Jul 2014 12:50:26 +0000 (UTC) Received: from [192.168.0.7] (cpc14-cmbg15-2-0-cust307.5-4.cable.virginm.net [82.26.1.52]) (authenticated bits=0) by theravensnest.org (8.14.7/8.14.7) with ESMTP id s65Cnmus032573 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sat, 5 Jul 2014 12:49:51 GMT (envelope-from theraven@theravensnest.org) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: [HEADS-UP] Problem with clang in 9-stable [was: r268244 (stable/9) seems to break "sysctl hw.ncpu"] From: David Chisnall In-Reply-To: <20140704181831.GV6056@albert.catwhisker.org> Date: Sat, 5 Jul 2014 13:49:44 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <909248A4-1B7C-4836-ADAA-F81A70A8AC3C@theravensnest.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> To: David Wolfskill X-Mailer: Apple Mail (2.1878.6) Cc: Hans Petter Selasky , stable@freebsd.org, "current@freebsd.org" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jul 2014 12:50:27 -0000 On 4 Jul 2014, at 19:18, David Wolfskill 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