public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/PR107156-allow-leading-dast-in-attr)] c: support attribs starting with '_'
@ 2022-10-05 10:35 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-10-05 10:35 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:da2fbd413cd06b439b404368639ccbfdd9af6f21

commit da2fbd413cd06b439b404368639ccbfdd9af6f21
Author: Martin Liska <mliska@suse.cz>
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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-10-05 10:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-05 10:35 [gcc(refs/users/marxin/heads/PR107156-allow-leading-dast-in-attr)] c: support attribs starting with '_' Martin Liska

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).