Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3156505imm; Sun, 19 Aug 2018 13:38:10 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxUlOmtlvgVQOxnahvJOAlSbA3EGhyAzBTt8EJuTfhyIkHyceryJi1genBXeTpzL9YQj4AN X-Received: by 2002:a62:938e:: with SMTP id r14-v6mr21244424pfk.55.1534711090047; Sun, 19 Aug 2018 13:38:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534711090; cv=none; d=google.com; s=arc-20160816; b=AIvv3Wv9qkhfUvoK/IzX3ezueyW4+K8O5xWfXlCiefMI53FLugnOxqg2b5/2u/VmAk udG+oFvVdKoqlwwznLgSnFCv4S+x5XYeSoEsGxZ+63IwXlRmEDo0JMST1lifVHRwRyMA PHFVGfC8R1sw3M/fVKboxvjDoz3qSmX7v6M0MQCa032MtDSswFGD7tTSi2pHnKTNPC5V YEft3hQVSCF+tfqVBylh+tOcdJWQBfQJdqmBCAqyd3JgoEHUMau1shI65UxHw/q2S+TL EEPS8NXJFNOkKItxiGdssXIQvMpWVhyRxHVd1yPcBO+LGfb5FaLwaDmhweNXnKeuUUk1 /diA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=oRjLZRZgU1pwG7gLg8cPx6Tq10JlSBo0YCD9HXxKZhI=; b=hvTRP7rTGA9h5+VadsEhv14utX8egjF6Izsf/9XO0YGsxcD2BYdUBAOZnMymU0nEJW EViSWNMpxKTel4PYLMiE6miiHBffwJuIAeupDt9/CoBUWJ/HIAeB3eR8V6ttQLp6rGJ4 jDf9RJY1EruZGD1nGF7FkpapEvIIZEKBkF+RcjmYx58jBdr4kEuIJLQI7rtIpgVbUKTK Cr9toUaABGRzWLM0J9uipNn8002ToKONAzSsWiykbXiaWDprdim8mc769kO3XUrYLew2 eJt3aCkugswlpm6NRsnQMMNufzx10pjnvpwqGyEr3DkZGDPQiWLY8Ktqe5xGOejf1XN1 gzhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=WCZw+8e+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s12-v6si8077729plp.464.2018.08.19.13.37.54; Sun, 19 Aug 2018 13:38:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=WCZw+8e+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726508AbeHSXtg (ORCPT + 99 others); Sun, 19 Aug 2018 19:49:36 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:33521 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726405AbeHSXtf (ORCPT ); Sun, 19 Aug 2018 19:49:35 -0400 Received: by mail-pg1-f194.google.com with SMTP id r64-v6so4573916pgr.0 for ; Sun, 19 Aug 2018 13:36:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oRjLZRZgU1pwG7gLg8cPx6Tq10JlSBo0YCD9HXxKZhI=; b=WCZw+8e+awtesT7LDl+mufhIjd7HZjHfIUC1GTSvjgomta7Sqd135xOn8KRpWJR1uN mMnLEDqWSGVahW3JRUWUO2obFyRMvaNsZLkb9gdbVq5alwkf8qhKimMZHhHGYZyxT8PZ Zar/v4kQCb89fRT2HZF3foWqE8ooAxNmY+Fr4+62QTXlNUFLG/hAXry6dwZ/kInMkcvq jsyTujsVqtHZ+/CCpx0M904PnJdBFGeKabN41RL7JG4rWo1jLfnkIPdbmnf9x1DUc6IZ Kj+13Js8V+dvx7Rl1R5akiNhYSxCzYwRzG7lcGF6SQamI3a8blEkpo2LPawvAHqFInfC SyFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oRjLZRZgU1pwG7gLg8cPx6Tq10JlSBo0YCD9HXxKZhI=; b=VXcUW8Sxt2qmS+WswoRPSo2UeOVtCTfGmseiNRsA3RfigI4d5Lv88ljquNr0zIJs1l 6uREJgL2AlcF0hKCiczM6KBH3hjUVikHRYSyFFSVkV/dcLw2h2miEL0mFi/R3yZd23vB tmf+3/9mCqzVf5TjNd3gbWDMuOv9WZdNhZ3X1iClnXMYdcunYmaeUebsUNfZld5OtQgx NyetliYVophUVIDALd3eBD+ZLaTID73vXBWoDyOJiBCNKju7/qDvvdygOSQ1Q+vIUMzi 0Xu/mvZu5vVoJuMG99kSrGq5YX8CA+h5p+/ZouQUORdLGWYgK140ld++whlfaeaj6USq 3L2Q== X-Gm-Message-State: AOUpUlE9Wz0cD7HuPQUkBKr/8vijRazAr++T4cg49ljRUrb1rdcY/9Jt qej4H1SwwoLuq13QH1SPShxb4+33+4MheJuDaPyhyQ== X-Received: by 2002:a63:190e:: with SMTP id z14-v6mr4116185pgl.302.1534711010612; Sun, 19 Aug 2018 13:36:50 -0700 (PDT) MIME-Version: 1.0 References: <1534657880-11573-1-git-send-email-yamada.masahiro@socionext.com> In-Reply-To: From: Nick Desaulniers Date: Sun, 19 Aug 2018 13:36:39 -0700 Message-ID: Subject: Re: [RFC PATCH] compiler.h: give up __compiletime_assert_fallback() To: Linus Torvalds Cc: Kees Cook , Masahiro Yamada , Andrew Morton , james.hogan@imgtec.com, joe@ovn.org, daniel.santos@pobox.com, Rusty Russell , Arnd Bergmann , sparse@chrisli.org, linux-sparse@vger.kernel.org, LKML , George Burgess , James Y Knight Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 19, 2018 at 1:28 PM Linus Torvalds wrote: > > On Sun, Aug 19, 2018 at 1:25 PM Nick Desaulniers > wrote: > > > > + gbiv who wrote this cool paste (showing alternatives to > > _Static_assert, which is supported by both compilers in -std=gnu89, > > but not until gcc 4.6): https://godbolt.org/g/DuLsxu > > > > I can't help but think that BUILD_BUG_ON_MSG should use > > _Static_assert, then have fallbacks for gcc < 4.6. > > Well, it turns out that we effectively stopped supporting gcc < 4.6 > during this merge window for other reasons, so.. For the whole kernel (or just a particular arch)? Which commit? Do we keep track of minimal versions somewhere? Documentation/process/changes.rst mentions gcc 3.2 (eek), but I assume there's a compiler version check somewhere (if you're using gcc and it's version is less than X, abort. Ditto for clang.) -- Thanks, ~Nick Desaulniers