From owner-freebsd-toolchain@freebsd.org Fri Oct 9 23:58:24 2015 Return-Path: Delivered-To: freebsd-toolchain@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 C2D5C9D3DBB; Fri, 9 Oct 2015 23:58:24 +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 6D5737E5; Fri, 9 Oct 2015 23:58:24 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: by ykba192 with SMTP id a192so89197438ykb.3; Fri, 09 Oct 2015 16:58:23 -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=NfNNSEcRBkcapgrf4FZXsvn1oGYeLkhOhouENzg1D9w=; b=ILxIyeSj41G2biZHMBKfnX9rTqE/892JylDv00SfpBlOgmIm54lk6HQVRoLZdgej02 IunF+CRvJOvwTs+EiQJAgzlKJKbFp5IULG1qb4MOs76fMWsVHoFoxqGem1CGAsEYFqGd v12bjuaIbnNihh2WoaAvIBvc03tzaIUiQ1me9ViXSVZoc46QgQWcMHRYmJl+s3f8tZnr pIKiEmfVS0kSK4cpH8FyzO4yuB5xTMCf/dvBYtWMO6xMaltPtEBn/R5PYHMhwh3KifUm bMBz7hjJcoOTAllV+fQ/8jvgE2kLOrCfP1JbSnCZfHuexJzwG/VtW+8djUnCeeC2tb4M xpIg== MIME-Version: 1.0 X-Received: by 10.13.200.134 with SMTP id k128mr11257266ywd.172.1444435103554; Fri, 09 Oct 2015 16:58:23 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.37.111.214 with HTTP; Fri, 9 Oct 2015 16:58:23 -0700 (PDT) In-Reply-To: <191CDC2D-7A74-41D2-B433-B6D9F6D87D32@dsl-only.net> References: <191CDC2D-7A74-41D2-B433-B6D9F6D87D32@dsl-only.net> Date: Fri, 9 Oct 2015 16:58:23 -0700 X-Google-Sender-Auth: uGWDTAl-JCAkd6gk7GMZT5NKuqc Message-ID: Subject: Re: bt_split.c error: dereferencing type-punned pointer will break strict-aliasing rules (powerpc64-xtoolchain use) From: Craig Rodrigues To: Mark Millard Cc: FreeBSD PowerPC ML , FreeBSD Toolchain Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Oct 2015 23:58:24 -0000 On Sun, Oct 4, 2015 at 4:06 AM, Mark Millard wrote: > > /usr/src/lib/libc/db/btree/bt_split.c:548:7: error: dereferencing > type-punned pointer will break strict-aliasing rules > [-Werror=strict-aliasing] > bt_preserve(t, *(pgno_t *)bl->bytes) == RET_ERROR) > You will get many of these warnings all over the codebase. You should add NO_WERROR= to your make invocation, or put NO_WERROR= in make.conf. That's what I do here: https://jenkins.freebsd.org/job/FreeBSD_HEAD_amd64_gcc4.9/631/consoleFull -- Craig