From owner-freebsd-hackers@FreeBSD.ORG Wed May 20 00:50:31 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2800AADA for ; Wed, 20 May 2015 00:50:31 +0000 (UTC) Received: from mail-qk0-x231.google.com (mail-qk0-x231.google.com [IPv6:2607:f8b0:400d:c09::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DA9591EF2 for ; Wed, 20 May 2015 00:50:30 +0000 (UTC) Received: by qkgw4 with SMTP id w4so22073928qkg.3 for ; Tue, 19 May 2015 17:50:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=9Fnu40AYTar0lzt39GC3U09Tc0Zfdy8lme1bVNobG5o=; b=R6NFConwGVF0idmwpJRurDpsUEw4Lqyxq24SeaIRj5bwZPXMw53/lQV2rBwIEClUwd pe7NZgEB5tk4OcGZDQbzkISPvSle3At+0c+NlP2DK9kBCJ1iVsMS8DylLIF+odArtzRt OZ8Ubpn/ALeQCQD3yu7qT7ogWQHuOjh19M4r4WP96uSvgDhOIonhvNHqdaeVC7p3m8T3 aWnNGQ0+M7qLSxlXxv0H6tDrLgTM3QF98eqdH2y4hFUsfz+OrgT+IP+QHJQgMXfu9GF4 N+Qrfv9cjj2KlvclX0UXTJGn0IunfEq0SRgvAHstVWnIsEu1abbLa7VGgHCetF2uTBHR kKCA== MIME-Version: 1.0 X-Received: by 10.141.18.136 with SMTP id u130mr39449983qhd.54.1432083029858; Tue, 19 May 2015 17:50:29 -0700 (PDT) Received: by 10.140.98.73 with HTTP; Tue, 19 May 2015 17:50:29 -0700 (PDT) In-Reply-To: References: Date: Tue, 19 May 2015 17:50:29 -0700 Message-ID: Subject: Re: Trying to use clang/head and XCC From: NGie Cooper To: dave@sopwith.solgatos.com Cc: "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Wed, 20 May 2015 00:50:31 -0000 On Tue, May 19, 2015 at 1:35 PM, Dave Seifert wrote: > sean typed: >> No documentation of what CFLAGS are required to build and ignore warnings. > > Are you *sure* that ignoring those warnings is a good idea? The problem is that clang emits a *lot* of warnings with -Wall that gcc doesn't, which causes failures if -Werror is enabled in the build (annoying, but I've run into this at work...). Please see my earlier reply about 10.0-RELEASE builds being broken on 11.0-CURRENT with clang 3.6.0. 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). Thanks, -NGie