From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 9CA8E1F4B4 for ; Wed, 20 Jan 2021 17:55:32 +0000 (UTC) Received: from localhost ([::1]:37712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l2HhV-0003dg-EO for normalperson@yhbt.net; Wed, 20 Jan 2021 12:55:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53558) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2HYa-0001wD-Ca for bug-gnulib@gnu.org; Wed, 20 Jan 2021 12:46:13 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:43460) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2HYW-0003z4-4b for bug-gnulib@gnu.org; Wed, 20 Jan 2021 12:46:11 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 0DC211600E2; Wed, 20 Jan 2021 09:46:05 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id dvS2nIY8qKgq; Wed, 20 Jan 2021 09:46:04 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 479ED160108; Wed, 20 Jan 2021 09:46:04 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id XprZQ1hqg-Gw; Wed, 20 Jan 2021 09:46:04 -0800 (PST) Received: from [192.168.1.9] (cpe-23-243-218-95.socal.res.rr.com [23.243.218.95]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 169F71600E2; Wed, 20 Jan 2021 09:46:04 -0800 (PST) Subject: Re: [PATCH 1/5] posix: Sync regex code with gnulib To: Adhemerval Zanella References: <20201230201507.2755086-1-adhemerval.zanella@linaro.org> <909632B5-141E-4567-8E62-3DAF91CB8E33@arm.com> <74ac97a1-2186-1937-4595-ab7409d663d0@linaro.org> <2108975.lN1YhbmyTB@omega> <05f5e913-f1d1-b2f9-beb7-f226588733c0@cs.ucla.edu> <10cb3123-40a4-931f-c658-99382367db6b@linaro.org> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: Date: Wed, 20 Jan 2021 09:46:03 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <10cb3123-40a4-931f-c658-99382367db6b@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=131.179.128.68; envelope-from=eggert@cs.ucla.edu; helo=zimbra.cs.ucla.edu X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.094, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bug-gnulib@gnu.org, "libc-alpha@sourceware.org" , Vaseeharan Vinayagamoorthy Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" On 1/20/21 3:27 AM, Adhemerval Zanella wrote: >> #if defined __STDC_VERSION__ && 201710L < __STDC_VERSION__ >> # define __attribute_fallthrough__ [[__fallthrough__]] >> #elif __GNUC_PREREQ (7, 0) || __glibc_has_attribute (__fallthrough__) >> # define __attribute_fallthrough__ __attribute__ ((__fallthrough__)) >> #else >> # define __attribute_fallthrough__ ((void) 0) >> #endif > Yes, for 2.34 I will send some patches to sync the remaining gnulib > files and document from our part the shared files. On thinking about it more (for 2.34), I find that I would prefer the current Gnulib practice of using 'FALLTHROUGH;' to using '__attribute_fallthrough__;' in code, and so suggest Gnulib's approach of having an attribute.h file (purely for internal glibc use) that has "#define FALLTHROUGH __attribute__ (__fallthrough__)' etc.