Message ID | 6876baac-15f9-0450-72ec-1f0b85348392@suse.cz |
---|---|
State | New, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp555711wrs; Wed, 5 Oct 2022 04:43:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7IixTRifHPODrwB25iS9Y5CvYaWj9llXeb2wtO/37vg/bDA/kBIJ7gXTzFWAK7203057Zn X-Received: by 2002:a17:907:3f26:b0:78d:1b32:bf85 with SMTP id hq38-20020a1709073f2600b0078d1b32bf85mr5875860ejc.628.1664970201322; Wed, 05 Oct 2022 04:43:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664970201; cv=none; d=google.com; s=arc-20160816; b=ibzqMTm4bMnv8Z4r/vKSlgESf/nylkaE9JiUSgtkxrQgKYSfhw/Bn9hvldlID0XOci 4wG38W5i9i6WkOa5p0MSYbozSn/NYdcG00RWUxrlj9HMODm3N1Ymcw+M+z8/SeOC6lzz P2fV8tbA0lnIuu9i2vqZOm4Tf8RNaSlsakixPU1dkK0g2u95jfT6FJhA1KdB7WT+rtQU aW97lFpJjfEVjh+o8EZEFXtZAEah3yo0nXL/XHNWFcFt4ZUgQ02v9CIa5PighNVWNqYu 0QNC6vyW2deMPsY0hfAaXaQ6BQzNE+1eNBPUsmdpQ1dbZFey2xep/fFTMEEsex9xze/P oGTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :content-language:to:subject:from:user-agent:mime-version:date :message-id:dkim-signature:dkim-signature:dmarc-filter:delivered-to; bh=ASzfij00OGJlAkoszCT5Z8g+hvNYBHzjhvrdli2wHwo=; b=a8vM6w9k93SOF17Ur0SxLcWPXBAghg29nSI9OQY4pJEzLvo2tcJfFtYmrDda2pPcEa u6pyaepL6AWFd3s7frj6P0+1iF9v+iQM8QZy1EiOtcYZasGAHYs0Rx46Rb9jFvGo6Fd1 i9/xmCI2Yq/9oUqPWhpG1zB0AaB+usVwAHL3LqeWXTHsrS5NpPbByRQ4BUi/AqjlhY6U iP9+/nxFV2OZUxC//5NRbCVp7qgXlC1XfrtmiVUOO5sLs6Y2Yr9xIsLJ0Bq2r0+VSJmK Dx+8E16aokRAifP9ER3y2OFlbeAeM7MJJUelwsOuSYe4nQ/yaj9cLKEN4uvZfVqhhpAL miig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="G/U+sb/R"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=2CZXShRH; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id g12-20020a1709065d0c00b0078aeb7747c0si8713667ejt.640.2022.10.05.04.43.21 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Oct 2022 04:43:21 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="G/U+sb/R"; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=2CZXShRH; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id ED8E0385742E for <ouuuleilei@gmail.com>; Wed, 5 Oct 2022 11:43:14 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by sourceware.org (Postfix) with ESMTPS id 4E8EB3858010 for <gcc-patches@gcc.gnu.org>; Wed, 5 Oct 2022 11:42:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4E8EB3858010 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=suse.cz Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 82B951F8C6 for <gcc-patches@gcc.gnu.org>; Wed, 5 Oct 2022 11:42:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1664970171; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ASzfij00OGJlAkoszCT5Z8g+hvNYBHzjhvrdli2wHwo=; b=G/U+sb/RANxyy4CYDNciTS/A405aplX6PJX1U+xK6VUgOtg19ELsyTkRYqZaRNbl0txNlE b36ZmNAGdvGim4ljh/iClupreiZczEayjvvGU+A3ZfH17+fGYXCtwjvuU5c81bG7nASzqv 9HB65vSxAf0EphWim44/KkZKMwvpgm8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1664970171; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ASzfij00OGJlAkoszCT5Z8g+hvNYBHzjhvrdli2wHwo=; b=2CZXShRH20Hvp+S8azLBFJ7gj01QxfxIiyhWtGSKrDWi/r4vypnbWXUmPOmg27Lod6Igck WYxe6sruHqo1yGAw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 74F9C13345 for <gcc-patches@gcc.gnu.org>; Wed, 5 Oct 2022 11:42:51 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id +damG7ttPWNpVQAAMHmgww (envelope-from <mliska@suse.cz>) for <gcc-patches@gcc.gnu.org>; Wed, 05 Oct 2022 11:42:51 +0000 Message-ID: <6876baac-15f9-0450-72ec-1f0b85348392@suse.cz> Date: Wed, 5 Oct 2022 13:42:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 From: =?utf-8?q?Martin_Li=C5=A1ka?= <mliska@suse.cz> Subject: [PATCH] c: support attribs starting with '_' To: gcc-patches@gcc.gnu.org Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-11.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1745847793885340023?= X-GMAIL-MSGID: =?utf-8?q?1745847793885340023?= |
Series |
c: support attribs starting with '_'
|
|
Commit Message
Martin Liška
Oct. 5, 2022, 11:42 a.m. UTC
Support attributes starting with dash (like _noreturn, or __Noreturn). Note the only consumer of lookup_attribute_by_prefix comes from IPA ICF. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin PR c/107156 gcc/ChangeLog: * attribs.h (lookup_attribute_by_prefix): Support attributes starting with dash (like _noreturn, or __Noreturn). --- gcc/attribs.h | 2 -- 1 file changed, 2 deletions(-)
Comments
On Okt 05 2022, Martin Liška wrote: > * attribs.h (lookup_attribute_by_prefix): Support attributes > starting with dash (like _noreturn, or __Noreturn). s/dash/underscore/
diff --git a/gcc/attribs.h b/gcc/attribs.h index b2836560fc2..706d35e63d8 100644 --- a/gcc/attribs.h +++ b/gcc/attribs.h @@ -274,8 +274,6 @@ lookup_attribute_by_prefix (const char *attr_name, tree list) } const char *p = IDENTIFIER_POINTER (name); - gcc_checking_assert (attr_len == 0 || p[0] != '_'); - if (strncmp (attr_name, p, attr_len) == 0) break;