X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=nesc.git;a=blobdiff_plain;f=src%2FAST_types.c;fp=src%2FAST_types.c;h=c7f95f665e10328599fc92502a9ae5d894023f34;hp=1e07059884b898cd6fe848c7946117788ab2ede2;hb=7b54393e237ed8f23c0c74f0a6cbc8de26c5bf98;hpb=57d4530c4d6814fa25338a00cc65b95938c723b6 diff --git a/src/AST_types.c b/src/AST_types.c index 1e07059..c7f95f6 100644 --- a/src/AST_types.c +++ b/src/AST_types.c @@ -1947,6 +1947,18 @@ nx_union_ref new_nx_union_ref(region r, location location, word word1, attribute return obj; } +target_attribute new_target_attribute(region r, location location, word word1, expression args) +{ + target_attribute obj = ralloc(r, struct AST_gcc_attribute); + + obj->kind = kind_target_attribute; + obj->location = location; + obj->word1 = word1; + obj->args = args; + + return obj; +} + AST_kind AST_parent_kind[] = { @@ -2072,6 +2084,7 @@ AST_kind AST_parent_kind[] = { kind_type_element, kind_type_element, kind_attribute, + kind_gcc_attribute, kind_attribute, kind_type_element, kind_type_element, @@ -2232,6 +2245,7 @@ AST_kind AST_post_kind[] = { postkind_typeof_type, postkind_attribute, postkind_gcc_attribute, + postkind_target_attribute, postkind_nesc_attribute, postkind_rid, postkind_qualifier, @@ -2392,6 +2406,7 @@ size_t AST_sizeof[] = { sizeof(struct AST_typeof_type), sizeof(struct AST_attribute), sizeof(struct AST_gcc_attribute), + sizeof(struct AST_gcc_attribute), sizeof(struct AST_nesc_attribute), sizeof(struct AST_rid), sizeof(struct AST_qualifier), @@ -2552,6 +2567,7 @@ type_t AST_typeof[] = { rctypeof(struct AST_typeof_type), rctypeof(struct AST_attribute), rctypeof(struct AST_gcc_attribute), + rctypeof(struct AST_gcc_attribute), rctypeof(struct AST_nesc_attribute), rctypeof(struct AST_rid), rctypeof(struct AST_qualifier),