From owner-freebsd-testing@freebsd.org Sun Jul 12 02:29:41 2015 Return-Path: Delivered-To: freebsd-testing@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CC6829E7B for ; Sun, 12 Jul 2015 02:29:41 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: from mail-yk0-x230.google.com (mail-yk0-x230.google.com [IPv6:2607:f8b0:4002:c07::230]) (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 9335CFA1 for ; Sun, 12 Jul 2015 02:29:41 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: by ykay190 with SMTP id y190so15152608yka.3 for ; Sat, 11 Jul 2015 19:29:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=3SJVRRBg8HfPx2lO8ETEFLXwXV1pljrwiKm+N3U/Xnw=; b=RdQzN0h+z6AlWfs/cNX9OPKIegj7HS/8WDqqcVZF6WRjgr58BQp83LjWKzZJEqetoT TlcLoBL0KFBD/vfNCfUirMSk7IVkH28G3p78dEmj0+pQpeENRim52JEYlLoPzQABEgdb k1o0LOq+fHvEyTyOyaBDm2yVtOjCfnz4MnDAdpcGhYp1hFxwT2chJ1Nc6Epnn8LoflO2 EH4xRBoPTPIdlfvGf4iJW5EmaRtimYiC3WL48gE01q3H1uNg7n74HeZR0CZYlB2kIj1c Uwrek1/wuLcjNyaLJjFYalWwM6/D6XlXvYQvHKzZ2/ha7rchjj+XXtQqm21bL98UHw/T WbvQ== MIME-Version: 1.0 X-Received: by 10.170.110.82 with SMTP id c79mr31308116ykb.113.1436668178936; Sat, 11 Jul 2015 19:29:38 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.37.11.70 with HTTP; Sat, 11 Jul 2015 19:29:38 -0700 (PDT) In-Reply-To: References: Date: Sat, 11 Jul 2015 22:29:38 -0400 X-Google-Sender-Auth: K4iM7ufmB3LpPNg-FEaoctxgXMU Message-ID: Subject: Re: Need help reducing gcc compiler warnings in BSD From: Craig Rodrigues To: "users@dragonflybsd.org" Cc: "freebsd-testing@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jul 2015 02:29:41 -0000 Hi, Yes, I agree that formal collaboration is overkill for this stuff, but I thought I would inform the DragonFlyBSD community, because I have been benefiting by taking good fixes done to the DragonFlyBSD tree. One advantage of the Jenkins build is that it enumerates the compiler warnings in a table, so it is easy to track over time if compiler warnings increase or decrease as code changes are made, so DragonFlyBSD users can monitor that if they wish. One item I could use help with is that gcc 4.9 compiles FreeBSD's i386/boot2 to greater than 8192 bytes, so it is unusable: https://lists.freebsd.org/pipermail/freebsd-testing/2015-March/000887.html I see that DragonFlyBSD has changed a lot of the boot code compared to FreeBSD. I'm not familiar with all the changes. Are there fixes done in this area for DragonFlyBSD that could be pushed back to FreeBSD? -- Craig On Fri, Jul 10, 2015 at 3:56 PM, Matthew Dillon wrote: > I'm not sure the work load is high enough to require a formal > collaboration. We just fix things as they come up for the most part. > Sascha has been doing WARNS related cleanups on the codebase and slowly > bumping up the WARNS level for various parts of the build for years, which > reduces problems going forwards. It's mostly a matter of being proactive > about it. > > -Matt > > > On Fri, Jul 10, 2015 at 7:52 AM, Craig Rodrigues > wrote: > >> Hi, >> >> I set up this Jenkins job which builds FreeBSD with gcc 4.9, and reports >> all the compiler warnings here: >> >> >> https://jenkins.freebsd.org/job/FreeBSD_HEAD_amd64_gcc4.9/177/warnings17Result/ >> >> I have been working with other people like Marcelo Araujo to >> reduce the gcc compiler warnings on FreeBSD, even though >> the default system compiler for FreeBSD is clang. >> I have noticed that a lot of fixes to the problems have been down >> in DragonFlyBSD. I have imported some of these fixes, especially ones >> done by >> Sascha Wildner, such as this one: >> >> https://lists.freebsd.org/pipermail/svn-src-head/2015-May/072562.html >> >> Is there a way that we can collaborate across the FreeBSD and DragonFlyBSD >> projects to reduce gcc compiler warnings? That it would be quite nice. >> It would make code easier to share, and improve the code overall. >> >> Thanks. >> -- >> Craig >> >> >