From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Benjamin Riefenstahl Newsgroups: gmane.emacs.bugs Subject: bug#41348: emacs compilation with clang10 fails in the file lib-src/etags.c Date: Sun, 17 May 2020 17:36:57 +0200 Message-ID: <871rnih8ti.fsf@turtle-trading.net> References: <83tv0ebn50.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="123687"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.91 (gnu/linux) Cc: Narayanan Nellayi , 41348@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 17 17:38:18 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jaLMn-000W4I-KY for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 May 2020 17:38:17 +0200 Original-Received: from localhost ([::1]:39698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jaLMm-00088C-MH for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 17 May 2020 11:38:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaLMY-000880-BY for bug-gnu-emacs@gnu.org; Sun, 17 May 2020 11:38:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:32789) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jaLMY-0002es-2g for bug-gnu-emacs@gnu.org; Sun, 17 May 2020 11:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jaLMY-00054x-12 for bug-gnu-emacs@gnu.org; Sun, 17 May 2020 11:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Benjamin Riefenstahl Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 17 May 2020 15:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41348 X-GNU-PR-Package: emacs Original-Received: via spool by 41348-submit@debbugs.gnu.org id=B41348.158972982819446 (code B ref 41348); Sun, 17 May 2020 15:38:01 +0000 Original-Received: (at 41348) by debbugs.gnu.org; 17 May 2020 15:37:08 +0000 Original-Received: from localhost ([127.0.0.1]:44334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLLg-00053a-0V for submit@debbugs.gnu.org; Sun, 17 May 2020 11:37:08 -0400 Original-Received: from odoacer.turtle-trading.net ([93.241.193.16]:45102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaLLd-00052r-1U for 41348@debbugs.gnu.org; Sun, 17 May 2020 11:37:05 -0400 Original-Received: from justinian.turtle-trading.net ([192.168.2.118]) by odoacer.turtle-trading.net with esmtp (Exim 4.80) (envelope-from ) id 1jaLLV-0007Sa-Oz; Sun, 17 May 2020 17:36:57 +0200 Original-Received: from benny by justinian.turtle-trading.net with local (Exim 4.92) (envelope-from ) id 1jaLLV-000859-LG; Sun, 17 May 2020 17:36:57 +0200 In-Reply-To: <83tv0ebn50.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 17 May 2020 18:24:11 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:180474 Archived-At: --=-=-= Content-Type: text/plain Eli Zaretskii writes: > Does this mean Clang doesn't support __attribute__ ((__fallthrough__))? It looks to like it does support it. But it complains, that there is a non-switch label "resetfvdef:" (for goto) between the annotation and the next "case". The correct fix is probably to move "resetfvdef:" after the "case" labels. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=patch diff --git a/lib-src/etags.c b/lib-src/etags.c index 174c33a7a5..5eb7504e67 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -4196,9 +4196,9 @@ C_entries (int c_ext, FILE *inf) break; } FALLTHROUGH; - resetfvdef: case '#': case '~': case '&': case '%': case '/': case '|': case '^': case '!': case '.': case '?': + resetfvdef: if (definedef != dnone) break; /* These surely cannot follow a function tag in C. */ --=-=-= Content-Type: text/plain benny --=-=-=--