summaryrefslogtreecommitdiff
path: root/gcc/c-parse.in
diff options
context:
space:
mode:
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-15 04:06:05 +0000
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2001-12-15 04:06:05 +0000
commit9d45592a7ce7917cfd2aa12242bd8714bbe07cc6 (patch)
tree174090deb0749cfb0ad32ae8786fe0323b1e04d1 /gcc/c-parse.in
parent1f4e851db93d5c665fd440b40828e9f252b07e73 (diff)
downloadgcc-9d45592a7ce7917cfd2aa12242bd8714bbe07cc6.tar.gz
* c-parse.in (typename): Do not split attributes.
Remove unsupported attributes warning. * c-decl.c (groktypename): Apply attributes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48032 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r--gcc/c-parse.in10
1 files changed, 3 insertions, 7 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index 4967a0939b2..5132b3f1d6b 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -669,6 +669,7 @@ primary:
{ $$ = build_function_call ($1, $3); }
| VA_ARG '(' expr_no_commas ',' typename ')'
{ $$ = build_va_arg ($3, groktypename ($5)); }
+
| CHOOSE_EXPR '(' expr_no_commas ',' expr_no_commas ',' expr_no_commas ')'
{
tree c;
@@ -1906,13 +1907,8 @@ enumerator:
typename:
declspecs_nosc
- { tree specs, attrs;
- pending_xref_error ();
- split_specs_attrs ($1, &specs, &attrs);
- /* We don't yet support attributes here. */
- if (attrs != NULL_TREE)
- warning ("attributes on type name ignored");
- $<ttype>$ = specs; }
+ { pending_xref_error ();
+ $<ttype>$ = $1; }
absdcl
{ $$ = build_tree_list ($<ttype>2, $3); }
;