Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp58579imm; Tue, 28 Aug 2018 16:03:01 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYaMZ86ca0D//w4y2sU0JcovN6/WbYxcSL2RSaMz0fGU/DVNw2ex9ZDAn3wYxgBvKn3Cj8C X-Received: by 2002:a63:a745:: with SMTP id w5-v6mr3368403pgo.374.1535497381137; Tue, 28 Aug 2018 16:03:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535497381; cv=none; d=google.com; s=arc-20160816; b=z8h/ZPJWU/qXVZDIGGnuF8taxOb39BeVBLOvIRCxTPJOnhzHbUF+4+yFT8V+w3KJvE r8MetJlTSij4bJ7PuLOw3G9LB6bAJI9vPNhhiqBxMkZ92+tlpjYz9MB3IPtUtczdfase wxqUJUT9ayuMZMQ0UavFsRAlCUr7My9+4GilLZhI9nJkifsXd5QwJoWuFqcxA4CfGFEJ 2J9jyuPZxPmZQ0XtgGEUNDjE4JQuMwALzIwF561QGk2+Kjp3Mv9FigOsutZmuZl11mvI RtG0P5aZ0SRNWyB0skZUc4tKQV+yZFlXsPBhhe1atoi3+oKlKv062oe9bsG3dM2BhGW3 PFaw== 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=bE9wJ9fEKlFzXrt1nBEEL+L9t4J/pFX7OB46Vh8MtIc=; b=foTXhSRGbiCHbSlJHGnUyXzW8BcyHzRB/MOFNdkW94lRC2dN7Ea+H88STP4dC9cspn NE+QoYwZR/ud81ZYibcpzRKQzKPwIWlOqDOZkION1LulKcX/TwBigRda/zbtFJAhzdz7 vsgyKx8gKuX3cpeh8VSDarRmlcK/7tgkFduYwFrHnwpcfoHcWmJUivOlrtMXWxv1WfkY MVzNW1zEYuhvFHJejXeB5CLNTVZ8hy2TqFf3xT8NjbTaYTJzOcnYS94eN8eoD6QDI7zK 2EWaFlNCrZ+YsRrezEmMsh8r48o/FSPyLUBDQ8NSwuyatGiQM7jlVgITxSOsZzx3KtsA 0vGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=FsdoKy5O; 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 s65-v6si1910499pfb.271.2018.08.28.16.02.45; Tue, 28 Aug 2018 16:03:01 -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=FsdoKy5O; 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 S1727658AbeH2Cy7 (ORCPT + 99 others); Tue, 28 Aug 2018 22:54:59 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:46941 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727067AbeH2Cy7 (ORCPT ); Tue, 28 Aug 2018 22:54:59 -0400 Received: by mail-pg1-f195.google.com with SMTP id b129-v6so1406744pga.13 for ; Tue, 28 Aug 2018 16:01:07 -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=bE9wJ9fEKlFzXrt1nBEEL+L9t4J/pFX7OB46Vh8MtIc=; b=FsdoKy5OoI0YgLR/VrTG8WN2fCMsmI02bV79cuQfti0KWxpJSwWnqPti6xj2AG4tVK zsjIpFUj47RTKlpNwYeflQOmLkwJxSrrkB75y32vfQtY9KHgalvdZpt26YlWtAd4OCMX BucUTNNSSRrJTIUtxRHNxKHXRL+MIrbMA+7jqpG97bsoVO/YvBP9Mz1TvbZ4dgv9DHNk IRJJ3BjpK1SOBiIYN1uyD/VtN4AAw9vkmuBvhLIvpqKvdJyevOh4G1sKG95UA7xgA8GP peDujpJ68cKVUs2v8KZMOV3dwmAiJhStw/u2+Nv86h87fAGJUiyuyAbA/IjbROgv0brj BqYg== 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=bE9wJ9fEKlFzXrt1nBEEL+L9t4J/pFX7OB46Vh8MtIc=; b=qyNmzNkyOweUemtB0c31LxT4g5+Y280+azbNqjma57og3FL1WmD4am33oSrH4etno2 wIezgqRhFcqLX866hXgoi/oMPc1bbZR980CNR/l966a0Ebq7k1PNu4x0z3mHZnEsZgZ5 TRZEGOIqOkFFe0GqUKp1o+dP/J/NiGz3YibFv1i0f1P/83dJIzJSciDxeJI4oUGwUdnV 6pwii4s2Ej73Fkn8k52f2cExpprgLR5O9VppOycyK2jYSb+9amzIbzLDUCSSEgigRNMh kgKa+RzocgBr8c2hrlGiPrVWAHewdDtNSmu2xgM0Dqga660kIAi+ALSlTmlyDPPnIgRL Hz5A== X-Gm-Message-State: APzg51BfRQk3w5N/wvpXItInt9rzZB5jp1VaXFShQJapx0hwiWogauhv PkzlTKk27IC2Jm52d2eMPT7+i5fnlKiRpueGyBcIgA== X-Received: by 2002:a63:1e11:: with SMTP id e17-v6mr3225377pge.225.1535497266867; Tue, 28 Aug 2018 16:01:06 -0700 (PDT) MIME-Version: 1.0 References: <1535220989-27645-1-git-send-email-yamada.masahiro@socionext.com> <84cf6ae0-97c8-6b73-ca86-b3d3b3daba5b@pobox.com> <8d5cf8c6-556a-96a1-610d-c92355783a9f@pobox.com> In-Reply-To: <8d5cf8c6-556a-96a1-610d-c92355783a9f@pobox.com> From: Nick Desaulniers Date: Tue, 28 Aug 2018 16:00:55 -0700 Message-ID: Subject: Re: [PATCH v2] compiler.h: give up __compiletime_assert_fallback() To: daniel.santos@pobox.com Cc: Masahiro Yamada , Linus Torvalds , Kees Cook , sparse@chrisli.org, linux-sparse@vger.kernel.org, LKML 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 Mon, Aug 27, 2018 at 1:42 PM Daniel Santos wrote: > > Hello Nick, > > On 08/27/2018 03:09 PM, Nick Desaulniers wrote: > >>> Let's give up __compiletime_assert_fallback(). This commit does not > >>> change the current behavior since it just rips off the useless code. > >> Clang is not the only target audience of > >> __compiletime_assert_fallback(). Instead of ripping out something that > >> may benefit builds with gcc 4.2 and earlier, why not override its > > Note that with commit cafa0010cd51 ("Raise the minimum required gcc > > version to 4.6") that gcc < 4.6 is irrelevant. > > Ah, I guess I'm not keeping up, that's wonderful news! Considering that > I guess I would be OK with its removal, but I still think it would be > better if a similar mechanism to break the Clang build could be found. I'm consulting with our best language lawyers to see what combinations of _Static_assert and __builtin_constant_p would do the trick.