projects
/
platform
/
upstream
/
gcc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
c: C2x noreturn attribute
[platform/upstream/gcc.git]
/
gcc
/
c-family
/
c-lex.cc
diff --git
a/gcc/c-family/c-lex.cc
b/gcc/c-family/c-lex.cc
index
4d2252f
..
d4e448a
100644
(file)
--- a/
gcc/c-family/c-lex.cc
+++ b/
gcc/c-family/c-lex.cc
@@
-389,6
+389,9
@@
c_common_has_attribute (cpp_reader *pfile, bool std_syntax)
result = 202003;
else if (is_attribute_p ("maybe_unused", attr_name))
result = 202106;
+ else if (is_attribute_p ("noreturn", attr_name)
+ || is_attribute_p ("_Noreturn", attr_name))
+ result = 202202;
}
if (result)
attr_name = NULL_TREE;