public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/ARM/heads/morello)] Restore some grokdeclarator code
@ 2022-05-05 12:07 Matthew Malcomson
0 siblings, 0 replies; only message in thread
From: Matthew Malcomson @ 2022-05-05 12:07 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:2d4829319d27485a96d9935446c47e91ee0fca40
commit 2d4829319d27485a96d9935446c47e91ee0fca40
Author: Richard Sandiford <richard.sandiford@arm.com>
Date: Tue Apr 26 15:05:03 2022 +0100
Restore some grokdeclarator code
Restore some grokdeclarator code lost in the previous patch.
This restores bootstrap and fixes some attribute testsuite
regressions.
Diff:
---
gcc/c/c-decl.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c
index 0c6722d95e8..0dfcf5ed4ae 100644
--- a/gcc/c/c-decl.c
+++ b/gcc/c/c-decl.c
@@ -7054,6 +7054,10 @@ grokdeclarator (const struct c_declarator *declarator,
&& deprecated_capability_uses > 1
&& !POINTER_TYPE_P (declspecs->type))
error_at (input_location, "use of %<__capability%> is ambiguous");
+
+ *decl_attrs = chainon (returned_attrs, *decl_attrs);
+ *decl_attrs = chainon (decl_id_attrs, *decl_attrs);
+
/* Now TYPE has the actual type, apart from any qualifiers in
TYPE_QUALS. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-05 12:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-05 12:07 [gcc(refs/vendors/ARM/heads/morello)] Restore some grokdeclarator code Matthew Malcomson
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).