From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 693D83857B88; Wed, 5 Oct 2022 10:35:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 693D83857B88 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664966136; bh=JiiPAf/S4HTFdGF8c4JMTzeM8Djg4otr7LWSuAJLClw=; h=From:To:Subject:Date:From; b=oXbbXo5zcybQ6LgxEU8lGPY+L6cv7rxEOdB13Jf4TkHAMTm3ddChLhqZ2W7KlMlQ5 4+QMCZfEfEsq+NcaM9O8ujLkZXaeIE4oERGXkJoLlrV0INlGhTC2pbBqeqhVONNASV kSSu3aoV7iwXW4qI0WIwZOcNlWKHSjSMPPuXbk/E= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/marxin/heads/PR107156-allow-leading-dast-in-attr)] c: support attribs starting with '_' X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/users/marxin/heads/PR107156-allow-leading-dast-in-attr X-Git-Oldrev: 233c966dba5012938a1f84e14c26b52d507b2aae X-Git-Newrev: da2fbd413cd06b439b404368639ccbfdd9af6f21 Message-Id: <20221005103536.693D83857B88@sourceware.org> Date: Wed, 5 Oct 2022 10:35:36 +0000 (GMT) List-Id: https://gcc.gnu.org/g:da2fbd413cd06b439b404368639ccbfdd9af6f21 commit da2fbd413cd06b439b404368639ccbfdd9af6f21 Author: Martin Liska Date: Wed Oct 5 12:34:30 2022 +0200 c: support attribs starting with '_' PR c/107156 gcc/ChangeLog: * attribs.h (lookup_attribute_by_prefix): Support attributes starting with dash (like _noreturn, or __Noreturn). Diff: --- gcc/attribs.h | 2 -- 1 file changed, 2 deletions(-) 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;