Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp2151461ybh; Sun, 4 Aug 2019 19:02:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEoi1XLSbuzUxH7v9783KKOUvG9Q/S0rofV/ZN8o7wzCD7qGqUC+N8JZ5N6dNttAfeY/1I X-Received: by 2002:a17:902:3103:: with SMTP id w3mr18733560plb.84.1564970526812; Sun, 04 Aug 2019 19:02:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564970526; cv=none; d=google.com; s=arc-20160816; b=n3PySqXT0yOiW1lKkii50k3cq0iZ9GKiOJz7dVUItzUI58x2uMyyh9dlqnZWwvm+wY TS9uiNGxEazcuEXo0TebtKzzjjdz/Qn06Ol/VwKcs5jXeu+zHi+uQjyq5gZ0oP+J4U+Y Jzo0mRa4dWCjjxIxvTFeJ9SKtMN3ZwDLNu/UAfMYHq+2DjAQ1oAZdwfnDXXnhZjHeNOa ig3I9KW5ZhXyYF6M/PLOjSf6KE4zEzBkBc9fhf/poF+hNqEkQD623to2ipTzbG8VZj4I CL/Q54geqUGfSTzVp4i9HdJa+gzVgGQ3XFSACoDia7hACsPE5Olg/hTXIUQrRE2/ROTf pwfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=XfPQrOfLAzLkJHKufgqPnE5EfZvz2eBdWLlH29Zxpe0=; b=H+LBZlc5kIiWWklYgaQLf9050ngNxC2gKy4FM6nYN6xnH9g14CbyNT8wulgiwHb+0I ZutBrD4QZqFCE8d6cQ4lX22WKe0vSa3L5PpTl4ZSqD/8Yhl/B4H6Naj8uNSuNOAshS3C YXTw04Axd5rHXk4s6kc3drbkYriEWabAv75I0jQE99ZGciLLebtsru2J4aenpju4rtZt bGEOsnP79U1RORQgLq6UmEh6S6AP6K6HDzWmkrz5mgAMv+VZtxSQbCah9AcMizHp/UX0 1KZDVTEacNLERfwcOnbZR8yeKr1KRUHbEULckioRPs1Pbnv6cOxQU0xW+YWDdFb9fguG cZjA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q13si12731266pgq.317.2019.08.04.19.01.51; Sun, 04 Aug 2019 19:02:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726888AbfHECBN (ORCPT + 99 others); Sun, 4 Aug 2019 22:01:13 -0400 Received: from smtprelay0147.hostedemail.com ([216.40.44.147]:45321 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726561AbfHECBN (ORCPT ); Sun, 4 Aug 2019 22:01:13 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay03.hostedemail.com (Postfix) with ESMTP id 660668368EF8; Mon, 5 Aug 2019 02:01:11 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::::::::::::::::::::::::,RULES_HIT:41:355:379:599:967:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2110:2393:2525:2553:2559:2564:2682:2685:2828:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3871:3872:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:5007:6117:6120:6742:6743:7903:8957:9025:10004:10400:10848:11232:11658:11914:12043:12114:12297:12438:12555:12740:12760:12895:12986:13069:13071:13255:13311:13357:13439:14180:14181:14659:14721:21060:21080:21366:21451:21627:21740:21809:21881:30054:30090:30091,0,RBL:23.242.196.136:@perches.com:.lbl8.mailshell.net-62.8.0.180 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: leaf55_441906b845118 X-Filterd-Recvd-Size: 3022 Received: from XPS-9350.home (cpe-23-242-196-136.socal.res.rr.com [23.242.196.136]) (Authenticated sender: joe@perches.com) by omf15.hostedemail.com (Postfix) with ESMTPA; Mon, 5 Aug 2019 02:01:07 +0000 (UTC) Message-ID: <281d938d3d50efd75d5ec927c393c936c78f9d75.camel@perches.com> Subject: Re: [RFC PATCH] compiler_attributes.h: Add 'fallthrough' pseudo keyword for switch/case use From: Joe Perches To: Nathan Chancellor Cc: Linus Torvalds , Miguel Ojeda , Kees Cook , Peter Zijlstra , Borislav Petkov , "H . Peter Anvin" , Thomas Gleixner , Ingo Molnar , Pavel Machek , "Gustavo A . R . Silva" , Arnaldo Carvalho de Melo , Kan Liang , Namhyung Kim , Jiri Olsa , Alexander Shishkin , Shawn Landden , the arch/x86 maintainers , Linux List Kernel Mailing , Neil Horman , David Miller , Nick Desaulniers , clang-built-linux@googlegroups.com Date: Sun, 04 Aug 2019 19:01:06 -0700 In-Reply-To: <20190805011815.GA110280@archlinux-threadripper> References: <1d2830aadbe9d8151728a7df5b88528fc72a0095.1564549413.git.joe@perches.com> <49b659d8f88f67c736881224203418f59a5d29ac.camel@perches.com> <20190805011815.GA110280@archlinux-threadripper> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.5-0ubuntu0.18.10.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2019-08-04 at 18:18 -0700, Nathan Chancellor wrote: > On Sun, Aug 04, 2019 at 05:39:28PM -0700, Joe Perches wrote: > Hi Joe, Hi Nathan. > This patch resolves that while adding support for the attribute. > https://reviews.llvm.org/D64838 [] > > The __has_attribute use is at least clang compatible. > > https://releases.llvm.org/3.7.0/tools/clang/docs/LanguageExtensions.html > > even if it doesn't (seem to?) work. > > I was trying to follow along with this thread through the web interface > and kind of got lost, how does it not work? It does not work in llvm/clang mainline through commit 305b961f64b75e73110e309341535f6d5a48ed72. > If I apply your compiler attributes patch with D64838, > I see fallthrough get expanded to > __attribute__((__fallthrough__)) by the preprocessor. Well, great. I hope D64838 or something like it gets applied soon. But all I could and did test was the current version. cheers, Joe