From owner-freebsd-hackers@FreeBSD.ORG Thu May 21 13:05:10 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6F4BA6CB for ; Thu, 21 May 2015 13:05:10 +0000 (UTC) Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.smtp.rzone.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0AAF819C1 for ; Thu, 21 May 2015 13:05:09 +0000 (UTC) X-RZG-AUTH: :JiIXek6mfvEEUpFQdo7Fj1/zg48CFjWjQv0cW+St/nW/afgnrylsiW+3ZjV+pQsJ X-RZG-CLASS-ID: mo00 Received: from britannica.bec.de (ip-109-45-119-232.web.vodafone.de [109.45.119.232]) by smtp.strato.de (RZmta 37.6 DYNA|AUTH) with ESMTPSA id h058dar4LD4qVqn (using TLSv1 with cipher AES256-SHA (256 bits)) (Client did not present a certificate) for ; Thu, 21 May 2015 15:04:52 +0200 (CEST) Received: by britannica.bec.de (sSMTP sendmail emulation); Thu, 21 May 2015 15:04:51 +0200 Date: Thu, 21 May 2015 15:04:51 +0200 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Subject: Re: Trying to use clang/head and XCC Message-ID: <20150521130451.GA2096@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 May 2015 13:05:10 -0000 On Tue, May 19, 2015 at 05:50:29PM -0700, NGie Cooper wrote: > Also, gcc emits different warnings because (IIRC) it analyzes code > that's been optimized whereas I believe clang does it beforehand > (please correct me if I'm wrong). More like "clang provides the same set of warnings independent of the optimizer" vs "gcc warnings trigger depending on the phase of the moon". Joerg