From owner-freebsd-current@freebsd.org Sun Mar 11 23:56:39 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2BF29F31CB7 for ; Sun, 11 Mar 2018 23:56:39 +0000 (UTC) (envelope-from ian.freislich@capeaugusta.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id B6A1585A9E for ; Sun, 11 Mar 2018 23:56:38 +0000 (UTC) (envelope-from ian.freislich@capeaugusta.com) Received: by mailman.ysv.freebsd.org (Postfix) id 74999F31CB5; Sun, 11 Mar 2018 23:56:38 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 52635F31CB4 for ; Sun, 11 Mar 2018 23:56:38 +0000 (UTC) (envelope-from ian.freislich@capeaugusta.com) Received: from mail-ot0-x22e.google.com (mail-ot0-x22e.google.com [IPv6:2607:f8b0:4003:c0f::22e]) (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 CE38A85A9D for ; Sun, 11 Mar 2018 23:56:37 +0000 (UTC) (envelope-from ian.freislich@capeaugusta.com) Received: by mail-ot0-x22e.google.com with SMTP id h8so13622548oti.6 for ; Sun, 11 Mar 2018 16:56:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=capeaugusta-com.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=uwMuis0zrdPnZnAfHTsyS5Y/8z93ruSPz9j3toCX6OA=; b=oRjlWbHiEj+eEFof4F2XrkDdfLm1ykVNShI7oU3MPPwKNxP9Fx2+1aYwTLuVnOpjXL NwMrVnhD/GAfciTVHfCncPk7jPFUnfygJjdI3gJGr9xprBOuPAutcDLFZBVPG5Rs65wf /Yd3Usl1SEMgV0o8m19w1Ari2LlhrlRSkio8VIpHdb7U1rBjW1s2jaXUSFhYXj10QeZg R96BOU+XVfolhMRbQkb+ywyFHNrGaPwJCtzE2337ovdjFBu+7kayc0UuwGcB/zJ4yB0L 7egRI/C9e3HeXdzT0TmUcosxc3g6YuLzshBTFstMzBtS370DpMX+B/3omQCj6TOsPt+D SKQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=uwMuis0zrdPnZnAfHTsyS5Y/8z93ruSPz9j3toCX6OA=; b=abpiqj1k3rRi7xwKvtPy/WVvBrc56GxghSz+yIlbBJscErBuuSG/ESFeNnHVk//Be6 9JxdqUcLZ6rKJeIOTweU4UqKRUr9gMvIGhKbd+y4BI7R7jDepQ7+p4cuCJbJ8spoQjwZ s5c4dhJiir4HOcsWuHDUwCEJ7S1rXwYNP2AHJSUiVZgav7QAay9ARb9uZSHp7SxFJh6t WQF/nkl1FBwVC8EhU7d/EL4levMEII6KQ6TwPaaeGJvlRt2mqz7IMbvkLO4Rexd9nJ8K ibJsmRdMvVXNFrKl5/BbMI+klS1AltcumQwVBzaI25VEGJzx6PLbHdgGAL+zpyIdLmml fy5Q== X-Gm-Message-State: AElRT7EFdrp08t8cUhRQjTpzMRy/Yarojd0r/r+90sOi1yvDo444A3O/ XNtHI/CX8H9x/i/VyDYACSICk5BgMJGXSXwcVWmPq6aufuKlJBftZGKP/P8heA1SIDoL1iAUSO0 i4oav8KUa2Wt/GydYvZmhvWghnK9fjlHZ21RYZgKvHPeX0RpG+WSb4/LMfurYuzqUVdluJ/W2d+ ky X-Google-Smtp-Source: AG47ELv6PKGl97JyvB+d3tHCIWFMUgTCXMo2MlKZ9kbBZEoUI6eUleEkwMWVnzNamIMGK1GXgG3B9w== X-Received: by 10.157.48.153 with SMTP id s25mr3954782otc.148.1520812596605; Sun, 11 Mar 2018 16:56:36 -0700 (PDT) Received: from zen.clue.co.za (c-69-254-3-228.hsd1.ga.comcast.net. [69.254.3.228]) by smtp.gmail.com with ESMTPSA id j75sm3236463oiy.34.2018.03.11.16.56.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Mar 2018 16:56:36 -0700 (PDT) To: current From: Ian FREISLICH Subject: Clang-6 and GNUisms. Message-ID: <4ea06b48-d451-f2b3-4c20-4963f829333b@capeaugusta.com> Date: Sun, 11 Mar 2018 19:56:35 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Mar 2018 23:56:39 -0000 Hi There's been some fallout in ports land since clang-6 around null pointer arithmetic and casts.=C2=A0 I cannot think of a good reason for doi= ng the following but then I've not dabbled in the arcane much: # define __INT_TO_PTR(P) ((P) + (char *) 0) So far I've encountered these in lang/v8 and devel/avr-gcc.=C2=A0 I know it just generates warnings, but GNUisms and -Werror abound.=C2=A0 Adding -Wno-null-pointer-arithmetic and -Wno-vexing-parse to CFLAGS/CXXFLAGS provides some relief but V8 still fails: /usr/ports/lang/v8/work/v8-3.18.5/out/native/obj.target/v8_base.x64/src/typ= e-info.o../src/stub-cache.cc:1477:33: error: reinterpret_cast from 'nullptr_t' to 'char *' is not allowed =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 : GetCodeWithFlags(flags, reinterpret_cast(NULL)); =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I haven't got avr-gcc to compile yet. Ian --=20 Ian Freislich --=20