diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-06-17 11:22:11 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-06-17 11:22:11 +0200 |
commit | 060bb7eb4d008fbd4a9fa8ef7c5e33c9e483eb52 (patch) | |
tree | b0802cb55d5f7bf2cdea8b9158ec8281e184dfe9 /odb/parser.cxx | |
parent | 1ca3ce471906f08d23f9163cdb8da884175ed331 (diff) |
Adjust to changes in GCC 10
Diffstat (limited to 'odb/parser.cxx')
-rw-r--r-- | odb/parser.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/odb/parser.cxx b/odb/parser.cxx index 69d9b28..58388c9 100644 --- a/odb/parser.cxx +++ b/odb/parser.cxx @@ -1103,14 +1103,14 @@ emit_type_decl (tree decl) // says that in typedef struct {} S; S becomes struct's // name. // - if (anon_aggrname_p (decl_name)) + if (IDENTIFIER_ANON_P (decl_name)) { tree d (TYPE_NAME (t)); if (d != NULL_TREE && !DECL_ARTIFICIAL (d) && DECL_NAME (d) != NULL_TREE && - !anon_aggrname_p (DECL_NAME (d))) + !IDENTIFIER_ANON_P (DECL_NAME (d))) { decl = d; decl_name = DECL_NAME (decl); @@ -1727,7 +1727,7 @@ create_type (tree t, ts << "start anon/stub " << gcc_tree_code_name(tc) << " at " << file << ":" << line << endl; - if (d == NULL_TREE || anon_aggrname_p (DECL_NAME (d))) + if (d == NULL_TREE || IDENTIFIER_ANON_P (DECL_NAME (d))) { if (tc == RECORD_TYPE) r = &emit_class<class_> (t, file, line, clmn); @@ -1824,7 +1824,7 @@ create_type (tree t, ts << "start anon/stub " << gcc_tree_code_name(tc) << " at " << file << ":" << line << endl; - if (d == NULL_TREE || anon_aggrname_p (DECL_NAME (d))) + if (d == NULL_TREE || IDENTIFIER_ANON_P (DECL_NAME (d))) { r = &emit_enum (t, access, file, line, clmn); } |