diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-02-05 16:01:42 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-02-05 16:01:42 +0200 |
commit | 511dcf67322ad87fb32f97d1cf7725c129e83898 (patch) | |
tree | cfcbf8705fc208d101b8adbd270a425e7466d518 /odb/parser.cxx | |
parent | d1b34452618d36eb486ff18b16f5d94acc6eeb07 (diff) |
Initial work to make ODB compatible with GCC 6
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 275da33..842611f 100644 --- a/odb/parser.cxx +++ b/odb/parser.cxx @@ -1070,14 +1070,14 @@ emit_type_decl (tree decl) // says that in typedef struct {} S; S becomes struct's // name. // - if (ANON_AGGRNAME_P (decl_name)) + if (anon_aggrname_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))) + !anon_aggrname_p (DECL_NAME (d))) { decl = d; decl_name = DECL_NAME (decl); @@ -1694,7 +1694,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 || anon_aggrname_p (DECL_NAME (d))) { if (tc == RECORD_TYPE) r = &emit_class<class_> (t, file, line, clmn); @@ -1791,7 +1791,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 || anon_aggrname_p (DECL_NAME (d))) { r = &emit_enum (t, access, file, line, clmn); } |