]> oss.titaniummirror.com Git - nesc.git/blobdiff - src/AST_types.c
Merge branch 'upstream' (nesc-1.3.2)
[nesc.git] / src / AST_types.c
index 1e07059884b898cd6fe848c7946117788ab2ede2..c7f95f665e10328599fc92502a9ae5d894023f34 100644 (file)
@@ -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),